Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close BTools and/or invalid tickets automatically #1639

Merged
merged 5 commits into from
Oct 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/Bug_Report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ body:
- GitHub Repository
- Anti-Exploit
- Trello
- F3X/Building Tools
- Other
validations:
required: true
Expand Down
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/Feature_Request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ body:
- Documentation
- GitHub Repository
- Anti-Exploit
- Trello
- F3X/Building Tools
- Other
validations:
required: true
Expand All @@ -29,4 +31,4 @@ body:
placeholder: ex. Add a new command that does XYZ
validations:
required: true


4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@
- '### What part of Adonis is this related to\?\s+GitHub Repository'
'🖇️ loader':
- '### What part of Adonis is this related to\?\s+Loader/Settings'
'trello':
- '### What part of Adonis is this related to\?\s+Trello'
'❌ invalid'
- '### What part of Adonis is this related to\?\s+F3X/Building Tools'
'🎏 miscellaneous':
- '### What part of Adonis is this related to\?\s+Other'
23 changes: 23 additions & 0 deletions .github/workflows/close_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Close invalid issues

on:
issues:
types: [labeled]

jobs:
close-issue:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.1

- name: Close issue
if: github.event.label.name == '❌ invalid' && !(contains(github.event.issue.body, 'F3X/Building Tools')) &&
run: gh issue close --comment "This issue has been closed as invalid. Please look at our [contribution guide](https://github.com/Epix-Incorporated/Adonis/blob/master/CONTRIBUTING.md)" --reason "not planned" "1"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Close BTools issue
if: github.event.label.name == '❌ invalid' && (contains(github.event.issue.body, 'F3X/Building Tools')) &&
run: gh issue close --comment "We use F3X for our building tools system. Please [make an issue ticket](https://github.com/F3XTeam/RBX-Building-Tools/issues/new) on the F3X Team BTools repository." --reason "not planned" "1"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading