Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
x/build/cmd/gerritbot: not possible to make cherry-pick CLs via PRs #30037
I investigated whether it's possible to create cherry-pick CLs by making a Pull Request, a question that was brought up on the golang-dev mailing list here.
In order to learn whether it's supported, I made an attempt and learned from the experience:
It was possible to create the cherry-pick CL against the correct release branch by having the appropriate base branch in the PR.
However, gerritbot does not recognize it when the PR description contains Change-Id and other lines from the commit being backported. In the PR, the description ended with:
In the imported CL, the commit message ended up having:
In order for it to be possible to make cherry-pick CLs via gerritbot, it would need to gain support for recognizing when the PR description contains
Until this is resolved, it's not possible to send cherry-pick CLs via Pull Requests. /cc @andybons