RFR: 1385: Backport MR links to the wrong CSR request [v5]
Guoxiong Li
gli at openjdk.java.net
Fri May 27 07:46:04 UTC 2022
On Wed, 25 May 2022 18:02:49 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
>> Guoxiong Li has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Move the methods from IssueUtil to Backports.
>
> bots/csr/src/main/java/org/openjdk/skara/bots/csr/CSRBot.java line 93:
>
>> 91: var versionOpt = getVersion(pr);
>> 92: if (versionOpt.isEmpty()) {
>> 93: log.info("No right fix version found in file `.jcheck/conf` for " + describe(pr));
>
> Suggestion:
>
> log.info("No fix version found in `.jcheck/conf` for " + describe(pr));
Fixed.
> bots/pr/src/main/java/org/openjdk/skara/bots/pr/CSRCommand.java line 55:
>
>> 53: private static void linkReply(PullRequest pr, Issue issue, PrintWriter writer) {
>> 54: writer.println("@" + pr.author().username() + " please create a [CSR](https://wiki.openjdk.java.net/display/csr/Main) request for issue " +
>> 55: "[" + issue.id() + "](" + issue.webUrl() + ") with the right fix version. This pull request cannot be integrated until the CSR request is approved.");
>
> Suggestion:
>
> "[" + issue.id() + "](" + issue.webUrl() + ") with the correct fix version. " +
> "This pull request cannot be integrated until the CSR request is approved.");
Fixed.
> bots/pr/src/main/java/org/openjdk/skara/bots/pr/CSRCommand.java line 86:
>
>> 84: if (!labels.contains(CSR_LABEL)) {
>> 85: // FIXME here, the PR may have an approved CSR. We should distinguishing the situations
>> 86: // about having no csr request and (having csr request && the CSR has been approved).
>
> Suggestion:
>
> // FIXME here, the PR may have an approved CSR. We should distinguish the situations
> // of having no csr request and having an approved csr request.
Fixed.
> bots/pr/src/main/java/org/openjdk/skara/bots/pr/CSRCommand.java line 102:
>
>> 100: if (jbsIssueOpt.isEmpty()) {
>> 101: pr.removeLabel(CSR_LABEL);
>> 102: reply.println("determined that a [CSR](https://wiki.openjdk.java.net/display/csr/Main) request " +
>
> This reply is repeated a lot. Perhaps we should have a method for it like some of the other replies have.
Fixed. Moved to method `csrUnneededReply`.
-------------
PR: https://git.openjdk.java.net/skara/pull/1318
More information about the skara-dev
mailing list