Skip to content

Commit

Permalink
apacheGH-36712: [CI] Also update issue components when it's updated (a…
Browse files Browse the repository at this point in the history
…pache#36723)

This allows issue openers to change the component label themselves.
* Closes: apache#36712

Authored-by: Jin Shang <shangjin1997@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
js8544 authored and chelseajonesr committed Jul 20, 2023
1 parent 2f8b01a commit d77d28c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/issue_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
issues:
types:
- opened
- edited

permissions:
contents: read
Expand Down Expand Up @@ -56,9 +57,9 @@ jobs:
if (component_labels.length == 0) throw new Error('No components found!');
await github.rest.issues.addLabels({
await github.rest.issues.setLabels({
"owner": context.repo.owner,
"repo": context.repo.repo,
"issue_number": context.payload.issue.number,
"labels": component_labels,
});
});

0 comments on commit d77d28c

Please sign in to comment.