lafiona commented on code in PR #14533:
URL: https://github.com/apache/arrow/pull/14533#discussion_r1066533847
##########
dev/merge_arrow_pr.py:
##########
@@ -110,10 +111,34 @@ def strip_ci_directives(commit_message):
return _REGEX_CI_DIRECTIVE.sub('', commit_message)
+def git_default_branch_name():
+ default_branch_name = os.getenv("MERGE_SCRIPT_DEFAULT_BRANCH_NAME")
+
+ if default_branch_name is None:
+ try:
+ default_reference = run_cmd(
Review Comment:
Thank you for pointing this out! I have pushed the fix for this issue,
however, I am now seeing an error that I did not see before, when running the
script in debug mode:
```
`Traceback` (most recent call last):
File "/Users/fionala/r2023b/arrow/dev/merge_arrow_pr.py", line 747, in
<module>
cli()
File "/Users/fionala/r2023b/arrow/dev/merge_arrow_pr.py", line 742, in cli
pr.issue.resolve(fix_version, issue_comment, pr.body)
File "/Users/fionala/r2023b/arrow/dev/merge_arrow_pr.py", line 187, in
resolve
resolve = [x for x in self.jira_con.transitions(self.jira_id)
IndexError: list index out of range
```
I'm working on debugging this to determine if it is related to the most
recent changes I made.
--
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]