Skip to content
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

scripts: add backporting script #4476

Merged
merged 1 commit into from
Apr 17, 2018
Merged

Conversation

pks-t
Copy link
Member

@pks-t pks-t commented Jan 12, 2018

This adds a simple script for backporting pull requests to older
branches. It accepts as parameters a list of pull request numbers which
whose commits are to be cherry-picked. The identification of PRs
currently happens by using the commit message of the merge of the PR,
which should conform to the message "Merge pull request #".

While the heuristic works in practice, we could instead also use the
direct references from GitHub via "pull/#/head". This requires the
user to have all these references fetched, though, so we can just use
the current heuristic until we experience any issues with that.


Dunno if we want this. I've used this script to create #4475, and I think a bit of automation is nice to have.

This adds a simple script for backporting pull requests to older
branches. It accepts as parameters a list of pull request numbers which
whose commits are to be cherry-picked. The identification of PRs
currently happens by using the commit message of the merge of the PR,
which should conform to the message "Merge pull request #<PR>".

While the heuristic works in practice, we could instead also use the
direct references from GitHub via "pull/#<PR>/head". This requires the
user to have all these references fetched, though, so we can just use
the current heuristic until we experience any issues with that.
@ethomson
Copy link
Member

If you found this useful, then let's include it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants