Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
x/build/cmd/gopherbot: gopherbot closes backport issues after first merge #29599
Gopherbot closes backport issues once it detects that an associated commit has been merged. This works well if the backport only requires one commit, but causes issues when there are multiple. Gopherbot should only close the issue if the "Fixes #" label exists in the commit message.
See #29565 for an example of Gopherbot in action.
One possible solution would be to add a new field to the GerritCL type that indicates whether or not this CL "fixes" the issue, or just updates/relates to it.
That makes sense. Gopherbot shouldn't close the issue when the commit message says "Updates #nnn".
Currently, gopherbot looks for any kind of issue mention ("#nnn") simply because that's the only information that maintner exposes. In order to resolve this issue, maintner needs to be modified to expose additional information. There is an existing TODO comment in the maintner code that talks about what needs to be done to implement this: