forked from apache/incubator-hugegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add auto stale/close workflow for issue & pr (apache#1471)
* feat: add auto stale/close workflow for issue & pr The `stale.yml` will link to a github action, and auto run with schedule * Update stale.yml
- Loading branch information
Showing
5 changed files
with
54 additions
and
8 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
blank_issues_enabled: true | ||
blank_issues_enabled: false | ||
|
||
# 设置提 issue 前的参考文档 | ||
contact_links: | ||
|
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
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
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,36 @@ | ||
name: Mark stale issues and pull requests | ||
|
||
on: | ||
schedule: | ||
- cron: "0 21 * * *" | ||
|
||
jobs: | ||
stale: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/stale@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label' | ||
stale-pr-message: 'Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label' | ||
stale-issue-label: 'inactive' | ||
stale-pr-label: 'inactive' | ||
exempt-issue-labels: 'feature,bug,enhancement,improvement,wontfix,todo' | ||
|
||
days-before-issue-stale: 15 | ||
days-before-issue-close: 20 | ||
days-before-pr-stale: 30 | ||
days-before-pr-close: 180 | ||
operations-per-run: 25 | ||
start-date: '2020-12-01T00:00:00Z' | ||
|
||
exempt-all-assignees: true | ||
remove-stale-when-updated: true | ||
exempt-all-pr-milestones: true | ||
delete-branch: false | ||
enable-statistics: true |