RFR: 382: List commits that have been pushed in integration message
Robin Westberg
rwestberg at openjdk.java.net
Mon Apr 27 09:21:36 UTC 2020
On Mon, 27 Apr 2020 09:16:11 GMT, Erik Helin <ehelin at openjdk.org> wrote:
>> Hi all,
>>
>> Please review this change that lists the commits that have been pushed since the PR was created (up to 10).
>>
>> Best regards,
>> Robin
>
> Looks good in general, just one minor question and one minor comment
Thanks for reviewing!
> bots/pr/src/main/java/org/openjdk/skara/bots/pr/CheckRun.java line 447:
>
>> 446: divergingCommits.stream()
>> 447: .limit(10)
>> 448: .forEach(c -> message.append(" * ").append(c.hash().hex()).append(":
>> ").append(c.message().get(0)).append("\n"));
>
> Will this be the most recent or the oldest 10 diverging commits?
This should give the 10 most recent.
> bots/pr/src/main/java/org/openjdk/skara/bots/pr/CheckRun.java line 450:
>
>> 449: if (divergingCommits.size() > 10) {
>> 450: message.append(" * ... full list: ").append(pr.repository().webUrl(baseHash.hex(),
>> pr.targetRef())).append("\n"); 451: }
>
> Can we say something like `* ... and 5 more: `?
Sure, but the link itself should show a full list, right?
-------------
PR: https://git.openjdk.java.net/skara/pull/602
More information about the skara-dev
mailing list