x/build/cmd/gerritbot: not possible to make cherry-pick CLs via PRs #30037
Labels
Builders
x/build issues (builders, bots, dashboards)
FeatureRequest
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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 and in issue #25020.
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
Change-Id
lines from the original commit, and reuse it. So the final commit message imported by gerritbot would need to look something like:Until this is resolved, it's not possible to send cherry-pick CLs via Pull Requests. /cc @andybons
The text was updated successfully, but these errors were encountered: