-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-13564: [Dev] Check individual commit messages for "Co-authored-by:" tags when integrating a pull request #12693
Conversation
It seems you just need to Alternatively, set |
3dc39a0
to
f7c164d
Compare
Thank you for your help with this, @lidavidm ! I was able to verify that the change adds Co-authors to the squashed commit that will be used for the pull request. I've updated the usage text to include the two environment variables that were helpful for my workflow. And I've also updated the description for this pull request. |
Thanks! It looks the Github incident today means CI didn't fully trigger on this PR - do you mind rebasing to make sure it all runs? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Do you see a good way to add a test for this in https://github.com/apache/arrow/blob/master/dev/test_merge_arrow_pr.py ? Though it seems we don't currently test merge
@lafiona did you mean to push the matlab commit to this PR? |
…requests. Co-authored-by: Kevin Gurney <kgurney@mathworks.com> Co-authored-by: Fiona La <fionala7@gmail.com>
@lidavidm , I apologize for the MATLAB commit! I did not mean to push it to this branch. I've rebased the correct commits onto |
To be fair there might not be too good a way to test it, at least without mocking, or setting up a fake git repo to manipulate (and it certainly doesn't seem to test it right now) |
I think you're right that |
Thanks. (Sorry, didn't mean to send you down a wild rabbit chase.) GitHub Actions seem a little backed up today, but LGTM. |
Benchmark runs are scheduled for baseline = d327f69 and contender = 919d113. 919d113 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Overview
The goal of this pull request is to add functionality to
dev/merge_arrow_pr.py
, that checks individual commit messages forCo-authored-by:
tags, when creating the squashed commit message when merging a pull request.This will ensure that all authors are included in the final commit message, to make sure they are acknowledged for their contributions.
Implementation
trailers
options ofgit log
to check for theCo-authored-by
trailer. The equivalentgit
command is:git log HEAD..<pull-request-branch> --pretty="%(trailers:key=Co-authored-by,valueonly)"
<pull-request-branch>
, this command prints the value of anyCo-authored-by
trailers, which should be in the form of<name> <<email-address>>
.PR_REMOTE_NAME
if the user has not set a remote namedapache
togit@github.com:apache/arrow.git
.Testing
I qualified the changes to
merge_arrow_pr.py
by taking the the following steps:DEBUG 1
PR_REMOTE_NAME upstream
(my remote togit@github.com:apache/arrow.git
is namedupstream
)merge_arrow_pr.py
, following the usage text.Notes
Thank you @kevingurney and @lidavidm for your help with this pull request!