Skip to content

Commit

Permalink
Update labels-from-comments.yml
Browse files Browse the repository at this point in the history
remove Project-Task since this ought to be a maintainer added label
  • Loading branch information
Shreyas4991 authored Sep 28, 2024
1 parent c0bf29b commit 5107fc9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/labels-from-comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
const { owner, repo, number: issue_number } = context.issue;
// Remove the labels if they exist
await github.rest.issues.removeLabel({ owner, repo, issue_number, name: 'project-task' }).catch(() => {});
await github.rest.issues.removeLabel({ owner, repo, issue_number, name: 'awaiting-review' }).catch(() => {});
await github.rest.issues.removeLabel({ owner, repo, issue_number, name: 'awaiting-author' }).catch(() => {});
await github.rest.issues.removeLabel({ owner, repo, issue_number, name: 'WIP' }).catch(() => {});
Expand All @@ -35,9 +34,7 @@ jobs:
const { owner, repo, number: issue_number } = context.issue;
const commentBody = context.payload.comment.body;
if (commentBody == 'project-task') {
await github.rest.issues.addLabels({ owner, repo, issue_number, labels: ['project-task'] });
} else if (commentBody == 'awaiting-review') {
if (commentBody == 'awaiting-review') {
await github.rest.issues.addLabels({ owner, repo, issue_number, labels: ['awaiting-review'] });
} else if (commentBody == 'awaiting-author') {
await github.rest.issues.addLabels({ owner, repo, issue_number, labels: ['awaiting-author'] });
Expand Down

0 comments on commit 5107fc9

Please sign in to comment.