-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action that closes new issues in favor of the new tracker
- Loading branch information
Niklas Stoffers
committed
Oct 1, 2024
1 parent
8afae88
commit f9e86e5
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Close new issues due to new tracker | ||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
close-issues-new-tracker: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'Thanks for reporting your issue! Unfortunately this issue tracker is no longer supported. Please use [our website](https://whitebeet.sevenstax.de/wiki/) from now on to report new issues. Thanks, and best regards!' | ||
}); | ||
github.rest.issues.lock({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo | ||
}); | ||
github.rest.issues.update({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
state: 'closed' | ||
}); | ||