RFR: 1532: CSRBot is too inefficient [v2]

Erik Joelsson erikj at openjdk.org
Thu Aug 18 13:42:52 UTC 2022


On Thu, 18 Aug 2022 11:16:54 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

>> Erik Joelsson has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Added missing copyrights and expanded comment
>
> bots/csr/src/main/java/org/openjdk/skara/bots/csr/PullRequestWorkItem.java line 48:
> 
>> 46:     private final static String CSR_LABEL = "csr";
>> 47:     private final static String CSR_UPDATE_MARKER = "<!-- csr: 'update' -->";
>> 48:     private static final String PROGRESS_MARKER = "<!-- Anything below this marker will be automatically updated, please do not edit manually! -->";
> 
> It's a bit unfortunate to duplicate string literals, especially those used as markers. Can you import this from `CheckRun.progressMarker` instead?

I completely agree that duplicated strings are bad. Importing directly from another bot module wouldn't be great IMO. I will look into moving this into some common class in a shared module instead. Note though that this isn't new in this patch.

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

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


More information about the skara-dev mailing list