-
Notifications
You must be signed in to change notification settings - Fork 114
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
git-node: add --backport flag to land #383
Conversation
Codecov Report
@@ Coverage Diff @@
## master #383 +/- ##
==========================================
+ Coverage 75.66% 75.95% +0.28%
==========================================
Files 21 21
Lines 1422 1439 +17
==========================================
+ Hits 1076 1093 +17
Misses 346 346
Continue to review full report at Codecov.
|
@andrewhughes101 I labelled WIP because I think you intend to extend the tests now that the current ones are passing. |
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, but I've never reviewed this code before, someone who actually has should at least have a look. Or... maybe unnecessary, since this is additive? As long as it works for @nodejs/lts, and @BethGriggs approves, perhaps that's enough?
Mostly LGTM. I've pulled down the code and tried pulling in a few backports and it works as expected 😃. The only one I had issues with was nodejs/node#31431 - it states that it cannot detect PR-URL (but the PR-URL is in each of the commits). Is the issue because the tool is looking for "PR-URL:" in the PR body rather than in the individual commit messages? |
Yeah the tool itself doesn't have that functionality that we could see at least, it only goes through the data inside the PR message itself |
Some of the commits in that PR had corrupt meta data... specifically they had |
I've updated the PR to always place the Backport-PR-URL below the PR-URL in the metadata. I've also created some asciinema of this feature in action Single commit: https://asciinema.org/a/300758 |
This commit adds functionality to land that allows you to land backports with the correct metadata Co-authored-by: AshCripps <[email protected]>
This commit adds functionality to land that allows you to land backports
with the correct metadata
example:
git node land --backport <PR number>
Co-authored-by: @AshCripps [email protected]