RFR: 2198: Backport PRs should check if a CSR is required [v2]

Zhao Song zsong at openjdk.org
Thu Mar 21 20:59:40 UTC 2024


On Thu, 21 Mar 2024 20:12:04 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

>> bots/pr/src/main/java/org/openjdk/skara/bots/pr/CheckRun.java line 1580:
>> 
>>> 1578:                         "This backport might also need a CSR. `csr` label will be added to this PR.\n" +
>>> 1579:                         "Please go through the [CSR](" + CSR_PROCESS_LINK +
>>> 1580:                         ") process or using command `csr unneeded` to remove the CSR requirement.");
>> 
>> There is no need to use single newlines, they will just be ignored when the comment is formatted anyway.
>> 
>> Suggestion:
>> 
>>                 pr.addComment("At least one of the issues associated with this backport has a resolved " +
>>                         "[CSR](" + CSR_PROCESS_LINK + ") for a different version. As this means that this " +
>>                         "backport may also need a CSR, the `csr` label is being added to this pull request " +
>>                         "to signal this potential requirement. The command `/csr unneeded` can be used to " + 
>>                         "remove the label in case a CSR is not needed.");
>
> If something goes wrong in CheckRun after posting this comment and before the labels are updated, we run the risk of posting this comment multiple times. We should add a marker in the comment and check that we haven't posted one before.

Right, thanks for catching it!

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

PR Review Comment: https://git.openjdk.org/skara/pull/1623#discussion_r1534670877


More information about the skara-dev mailing list