Skip to content

Commit

Permalink
Add await for remove label (#33992)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amar3tto authored Feb 14, 2025
1 parent 64b0e76 commit 12e4132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/self-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ jobs:
assignees: [context.payload.comment.user.login]
});
try {
github.rest.issues.removeLabel({
await github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'awaiting triage'
});
} catch (error) {
console.log(`Failed to remove awaiting triage label. It may not exist on this issue. Error ${error}`);
console.log(`Failed to remove awaiting triage label. It may not exist on this issue. Error ${error.message}`);
}
} else if (bodyString == '.free-issue') {
try {
Expand Down

0 comments on commit 12e4132

Please sign in to comment.