Skip to content

Commit

Permalink
Update labels.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Deep-Dark-Forest authored Jan 29, 2025
1 parent 2a72aed commit 23c1b75
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ jobs:
}
- name: Check if the issue was closed as not planned and add label
uses: actions/github-script@v6
with:
github-token: ${{ secrets.BOT }}
script: |
if (context.payload.issue.state_reason === 'not_planned') {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.issue.number,
labels: ['❌ 忽略']
});
}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.BOT }}
script: |
if (context.payload.issue.state_reason === 'not_planned') {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.issue.number,
labels: ['❌ 忽略']
});
}

0 comments on commit 23c1b75

Please sign in to comment.