Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha authored Nov 5, 2024
1 parent bc1f7d1 commit 702227e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/labels-from-comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { owner, repo, number: issue_number, labels } = context.issue;
const { owner, repo, number: issue_number } = context.issue;
const commentLines = context.payload.comment.body.split('\r\n');
const awaitingReview = commentLines.includes('awaiting-review');
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
const chlog = commentLines.find(line => line.startsWith("changelog-"));
if (chlog) {
const previous = labels.find(label => label.name.startsWith("changelog-"));
const previous = context.payload.issue.labels.find(label => label.name.startsWith("changelog-"));
if (previous) {
await github.rest.issues.removeLabel({ owner, repo, issue_number, name: previous.name });
}
Expand Down

0 comments on commit 702227e

Please sign in to comment.