Skip to content

Commit

Permalink
Add triage for all new issue (PaddlePaddle#4026)
Browse files Browse the repository at this point in the history
* new issue

* add exempt
  • Loading branch information
sijunhe authored Dec 6, 2022
1 parent dc2a6c5 commit b3b4fd0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/new_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Label New issues
on:
issues:
types:
- reopened
- opened
jobs:
label_issues:
runs-on: ubuntu-20.04
permissions:
issues: write
steps:
- uses: actions/github-script@v6
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["triage"]
})
1 change: 1 addition & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。"
close-issue-message: "This issue was closed because it has been inactive for 30 days since being marked as stale. 当前issue 被标记为stale已有30天,即将关闭。"
exempt-issue-labels: 'triage,keep'
days-before-pr-stale: 60
days-before-pr-close: -1
stale-pr-label: "stale"
Expand Down

0 comments on commit b3b4fd0

Please sign in to comment.