Skip to content

Commit

Permalink
Add GitHub templates and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MuTsunTsai committed Jan 8, 2025
1 parent f3e1957 commit de68308
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.json]
[{*.json,src/lib/*}]
insert_final_newline = false

[*.md]
trim_trailing_whitespace = false

[lib/*]
insert_final_newline = false

[.clang-*]
[{.clang-*,*.{yml,yaml}}]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ['https://bpstudio.abstreamace.com/donate.htm']
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: 🐛 Bug report
about: Create a report to help improving ReferenceFinder
title: ''
labels: bug
assignees: MuTsunTsai

---

**Describe the bug**
<!-- A clear and concise description of what the bug is. -->

**To Reproduce**
Steps to reproduce the behavior:
1. Go to ...
2. Click on ...
4. See error

**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->

**Screenshots**
<!-- If applicable, add screenshots to help explain your problem. -->

**Please complete the following information:**
- Device: <!-- [e.g. iPhone6, PC] -->
- Browser: <!-- [e.g. Safari 13.0, Chrome 89] -->

**Additional context**
<!-- Add any other context about the problem here. -->
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: 💡 Feature request
about: Suggest an idea for ReferenceFinder
title: ''
labels: enhancement
assignees: MuTsunTsai

---

**Is your feature request related to a problem? Please describe.**
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->

**Describe the solution you'd like**
<!-- A clear and concise description of what you want to happen. -->

**Describe alternatives you've considered**
<!-- A clear and concise description of any alternative solutions or features you've considered. -->

**Additional context**
<!-- Add any other context or screenshots about the feature request here. -->
20 changes: 20 additions & 0 deletions .github/workflows/reject-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Reject PR to main
on:
pull_request_target:
branches:
- main
jobs:
reject-pr:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- run: gh pr close "$NUMBER" --comment "$COMMENT"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.number }}
COMMENT: >
Do not submit PR against the main branch directly.
See [Contributing Guidelines](../blob/main/CONTRIBUTING.md#submitting-pull-requests).

0 comments on commit de68308

Please sign in to comment.