Test-infra: fix keyword should not close other PRs, only Issues

Created on 26 Oct 2017  路  4Comments  路  Source: kubernetes/test-infra

This happened here https://github.com/kubernetes/kubernetes/pull/54593

Where the syntax "fix #54593" was used in another PR description and it closed the PR.

IMO, auto-closing should only happen if the target is an Issue.

@joelsmith @dashpole

Most helpful comment

Maybe we should raise an issue with GitHub about how they display this? The wording is very misleading. GitHub closes the issue in response to the merge but they attribute it to the account that merged :confused:

All 4 comments

@sjenning This is a github feature, not related to kubernetes bots: https://help.github.com/articles/closing-issues-using-keywords/

If a PR author adds a keyword like that, and the account that does the merge has the ability to close the issue/PR (the bots have access to all k/ repos), then it will look as though the bot closed the issue/PR.

@cblecker ah ok. My thinking was that close was attributed to the bot, hence the confusion.

k8s-merge-robot closed this in #54597 8 hours ago

Maybe we should raise an issue with GitHub about how they display this? The wording is very misleading. GitHub closes the issue in response to the merge but they attribute it to the account that merged :confused:

I've asked GitHub about this feature since it's pretty confusing. Didn't get much of a response. It's particularly annoying that it closes issues in other repos when you sync your fork.

closed1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spzala picture spzala  路  4Comments

cjwagner picture cjwagner  路  3Comments

xiangpengzhao picture xiangpengzhao  路  3Comments

BenTheElder picture BenTheElder  路  4Comments

fen4o picture fen4o  路  4Comments