ci: add w-unverified to new issues and prs, change labels tracked for stale issues (#3302)

This commit is contained in:
Awesome Stickz
2023-12-11 20:44:40 +00:00
committed by GitHub
parent 860bbe1820
commit e573b24722
2 changed files with 17 additions and 1 deletions
+14
View File
@@ -3,12 +3,26 @@ name: Labeler
on:
pull_request_target:
types: ['edited', 'opened', 'reopened', 'synchronize']
issues:
types: ['opened', 'reopened']
jobs:
labeler:
name: Labeler
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target'
steps:
- uses: fuxingloh/multi-labeler@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}
w_unverified_labeler:
name: Add w-unverified Label
runs-on: ubuntu-latest
steps:
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: w-unverified
+3 -1
View File
@@ -25,5 +25,7 @@ jobs:
stale-pr-message: 'This pull request has gone stale for over a month. If this pull request is still useful, leave a comment below. Otherwise, it will be closed shortly.'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
exempt-issue-labels: 'api-docs-commits,help-wanted'
only-labels: 'w-unverified'
exempt-issue-labels: 'api-docs-commits,help-wanted,w-verified,w-pending'
exempt-pr-labels: 'w-verified'
close-issue-reason: 'not_planned'