Skip to content

Commit

Permalink
Close BTools and/or invalid tickets automatically (#1639)
Browse files Browse the repository at this point in the history
* Fix trello label and mark F3X tickets as invalid

* Add BTools to dropdown labels

* Add BTools and Trello to dropdown labels

* Create close_issues.yml

* Remove joke
  • Loading branch information
ccuser44 authored Oct 26, 2024
1 parent bedaf7e commit 0087c05
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
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 }}

0 comments on commit 0087c05

Please sign in to comment.