RFR: 1495: /backport should be allowed in PRs which have been integrated [v2]

Guoxiong Li gli at openjdk.org
Fri Jul 29 14:20:46 UTC 2022


On Fri, 29 Jul 2022 12:45:05 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

>>>  In what situation would it be wrong to just use one unified list?
>> 
>> The only one situation I concern about is the `help` command. But after second thought, it looks good. So I unified them.
>
> Hm, now I realize what you mean about the HelpCommand. If you invoke `/help` on a commit now, you get all the PR commands listed. That's not good. We still need some way of separating which commands should be listed for help with a commit and help with a PR.

> The only one situation I concern about is the help command. But after second thought, it looks good. So I unified them.

In detail, the code logic of the master branch:

1. use `help` command on PR which has **not** been integrated

the bot prints the commands which are **allowed in PR** and **the extranal PR command**

2. use `help` command on PR which **has been integrated**

the bot prints the commands which are **allowed in commit** and **the extranal PR command**

3. use `help` command on a commit

the bot prints the commands which are **allowed in commit** and **the extranal commit command**

But the logic of this patch is:
1. use `help` command on PR which has **not** been integrated (unchanged)

the bot prints the commands which are **allowed in PR** and **the extranal PR command**

2. use `help` command on PR which **has been integrated** or use `help` **command on a commit**

the bot prints the commands which are **allowed in commit** and **the extranal commit command**

So there is a little diffrence between the master branch and my patch. But the logic in my patch seems good.

> Hm, now I realize what you mean about the HelpCommand. If you invoke `/help` on a commit now, you get all the PR commands listed. That's not good. We still need some way of separating which commands should be listed for help with a commit and help with a PR.

>From your description, I think one among us misunderstood the code. Did I miss something?

-------------

PR: https://git.openjdk.org/skara/pull/1341


More information about the skara-dev mailing list