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 28, 2025
1 parent 8f27ff0 commit 473ee14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
github-token: ${{ secrets.SHEEP }}
script: |
if (context.payload.issue.state_reason === 'completed') {
await github.issues.addLabels({
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.issue.number,
Expand All @@ -28,7 +28,7 @@ jobs:
github-token: ${{ secrets.SHEEP }}
script: |
if (context.payload.issue.state_reason === 'duplicate') {
await github.issues.addLabels({
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.issue.number,
Expand Down

0 comments on commit 473ee14

Please sign in to comment.