-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add auto close issue workflow on master branch (#5243)
- Loading branch information
Showing
1 changed file
with
35 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,35 @@ | ||
name: Auto Close Issue | ||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
jobs: | ||
auto-close: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Close Outdate issue | ||
if: ${{ github.event.label.name == 'Outdate' }} | ||
uses: peter-evans/close-issue@v1 | ||
with: | ||
comment: | | ||
This issue has been closed because **it has been outdate for a long time**. | ||
Please open a new issue if you still need help. | ||
这个 issue 已经被关闭,因为 **它已经过期很久了**。 | ||
如果你仍然需要帮助,请创建一个新的 issue。 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Close Duplicate issue | ||
if: ${{ github.event.label.name == 'Duplicate' }} | ||
uses: peter-evans/close-issue@v1 | ||
with: | ||
comment: | | ||
This issue has been closed because **it is duplicated**. | ||
这个 issue 已经被关闭,因为 **它是一个重复的 issue**。 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Close Invalid issue | ||
if: ${{ github.event.label.name == 'Invalid' }} | ||
uses: peter-evans/close-issue@v1 | ||
with: | ||
comment: | | ||
This issue has been closed because **it is invalid**. | ||
这个 issue 已经被关闭,因为 **它是无效的**。 | ||
token: ${{ secrets.GITHUB_TOKEN }} |