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

raulcd 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 976779b2aac GH-55471: [Dev] Stop clearing non-existent PR workflow 
labels on merge script (#55472)
976779b2aac is described below

commit 976779b2aac587f51b87c3bd2e6ae4c36f75ab6c
Author: Raúl Cumplido <[email protected]>
AuthorDate: Wed Nov 11 10:31:10 2026 +0100

    GH-55471: [Dev] Stop clearing non-existent PR workflow labels on merge 
script (#55472)
    
    ### Rationale for this change
    
    Now that there's no more labels remove this is dead code.
    
    ### What changes are included in this PR?
    
    Remove trying to clear PR workflow labels from merge script.
    
    ### Are these changes tested?
    
    No
    
    ### Are there any user-facing changes?
    
    No
    
    ### Was AI used for this PR?
    
    In accordance to the [AI generation 
guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code),
 please disclose below whether and how AI was used in this PR.
    
    **PR code and description written by:**
    
    - [x] Human
    - [ ] AI
    
    **Reviewed before submission by:**
    
    - [x] Human
    - [ ] AI
    - [ ] Not reviewed
    
    * GitHub Issue: #55471
    
    Authored-by: Raúl Cumplido <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 dev/merge_arrow_pr.py | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/dev/merge_arrow_pr.py b/dev/merge_arrow_pr.py
index 4a1bd4945df..ba1a11ea8e0 100755
--- a/dev/merge_arrow_pr.py
+++ b/dev/merge_arrow_pr.py
@@ -337,23 +337,11 @@ class GitHubAPI(object):
         }
         response = requests.put(url, headers=self.headers, json=payload)
         result = response.json()
-        if response.status_code == 200 and 'merged' in result:
-            self.clear_pr_state_labels(number)
-        else:
+        if not response.status_code == 200 or 'merged' not in result:
             result['merged'] = False
             result['message'] += f': {url}'
         return result
 
-    def clear_pr_state_labels(self, number):
-        url = f'{self.github_api}/issues/{number}/labels'
-        response = requests.get(url, headers=self.headers)
-        labels = response.json()
-        for label in labels:
-            # All PR workflow state labels starts with "awaiting"
-            if label['name'].startswith('awaiting'):
-                label_url = f"{url}/{label['name']}"
-                requests.delete(label_url, headers=self.headers)
-
 
 class CommandInput(object):
     """

Reply via email to