lafiona commented on code in PR #14033:
URL: https://github.com/apache/arrow/pull/14033#discussion_r995101313


##########
dev/archery/archery/crossbow/cli.py:
##########
@@ -192,6 +192,13 @@ def verify_release_candidate(obj, base_branch, create_pr, 
github_token,
     # The verify-release-candidate command will create a PR (or find one)
     # and add the verify-rc* comment to trigger the verify tasks
 
+    # Default value for base_branch is the repository's default branch name
+    if base_branch is None:
+        # Get the default branch name from the repository
+        arrow_source_dir = ArrowSources.find()
+        repo = Repo(arrow_source_dir.path)
+        base_branch = repo.default_branch_name
+
     # Redefine Arrow repo to use the correct arrow remote.
     arrow = Repo(path=obj['arrow'].path, remote_url=remote)

Review Comment:
   Thanks for this suggestion, I've fixed this change to use the same instance 
of Repo.



-- 
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