-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add actions to auto-close issue and auto-comment on issues (#357)
- Loading branch information
1 parent
41656d4
commit 8aec163
Showing
3 changed files
with
73 additions
and
3 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,24 @@ | ||
# Usage: | ||
# Close the issue automatically when the issue is inactive for a period of time, | ||
# including the ones labelled as "Reproduction Needed" or "More Info Needed". | ||
|
||
name: Issue Auto Close | ||
|
||
on: | ||
schedule: | ||
- cron: "0 10 * * *" # scan the issues at 10:00 every day | ||
|
||
jobs: | ||
close-issues: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Needs more info | ||
uses: actions-cool/issues-helper@main | ||
with: | ||
actions: 'close-issues' | ||
labels: 'More Info Needed' | ||
inactive-day: 15 | ||
body: | | ||
Since this issue was labeled as "More Info Needed" but no response has been received for 15 days. Now the issue is closed. Please feel free to create a new one with more info if you have more questions. | ||
由于该 issue 被标记为需要更多信息,却 15 天未收到回应。现关闭 issue,若有任何问题,可另开 issue 并提供更多信息。 |
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,42 @@ | ||
# Usage: | ||
# Auto comment on the issue after labelled | ||
|
||
name: Issue Labelled | ||
|
||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
issue-labeled: | ||
permissions: | ||
issues: write # for actions-cool/issues-helper to update issues | ||
pull-requests: write # for actions-cool/issues-helper to update PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: help wanted | ||
if: github.event.label.name == 'Help Wanted' | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'create-comment' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
Hello @${{ github.event.issue.user.login }}, thank you for your proposal/feedback. Now the problem/reason is clear. Welcome to [contribute a Pull Request](https://github.com/TuGraph-family/tugraph-db/blob/master/docs/en-US/source/6.contributor-manual/1.contributing.md) for it. We will review it ASAP. Looking forward to your contribution! | ||
你好 @${{ github.event.issue.user.login }},感谢你的提议/反馈,现在问题已经明确。欢迎直接在此仓库 [贡献一个 Pull Request](https://github.com/TuGraph-family/tugraph-db/blob/master/docs/zh-CN/source/6.contributor-manual/1.contributing.md) 来解决这个问题,我们会尽快进行 Review,期待您的贡献。 | ||
- name: More Info Needed | ||
if: github.event.label.name == 'More Info Needed' | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'create-comment' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
Hello @${{ github.event.issue.user.login }}. Please provide more info for debugging. Issues labeled by `More Info Needed` will be closed if no activities in 7 days. | ||
你好 @${{ github.event.issue.user.login }}, 我们需要你提供更多信息以便于排查问题。7 天内未跟进此 issue 将会被自动关闭。 |
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