toddfarmer commented on issue #14507:
URL: https://github.com/apache/arrow/issues/14507#issuecomment-1291244306

   I've initially implemented this as follows, which covers all issue types 
currently in use in the ARROW Jira project:
   
   ```
   def set_issue_type_label(issue, labels):
       issue_type = issue.fields.issuetype.name
       if issue_type in ["Bug"]:
           labels.append("bug")
       if issue_type in ["Improvement", "Wish", "New Feature"]:
           labels.append("enhancement")
       if issue_type in ["Task"]:
           labels.append("task")
       if issue_type in ["Sub-task"]:
           labels.append("sub-task")
       if issue_type in ["Test"]:
           labels.append("test")
       return labels
   ```    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to