This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new cbe50ee5ea GH-36712: [CI] Also update issue components when it's 
updated (#36723)
cbe50ee5ea is described below

commit cbe50ee5eaaabee0073d0da05b75fcce76e9cf43
Author: Jin Shang <[email protected]>
AuthorDate: Tue Jul 18 16:15:30 2023 +0800

    GH-36712: [CI] Also update issue components when it's updated (#36723)
    
    This allows issue openers to change the component label themselves.
    * Closes: #36712
    
    Authored-by: Jin Shang <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 .github/workflows/issue_bot.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/issue_bot.yml b/.github/workflows/issue_bot.yml
index ffd56e440f..7a62f21496 100644
--- a/.github/workflows/issue_bot.yml
+++ b/.github/workflows/issue_bot.yml
@@ -21,6 +21,7 @@ on:
   issues:
     types:
       - opened
+      - edited
 
 permissions:
   contents: read
@@ -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,
-            });
\ No newline at end of file
+            });

Reply via email to