RFR: 80: Allow valid bug ID format to be configurable
Kevin Rushforth
kcr at openjdk.org
Thu Sep 26 12:11:07 UTC 2019
On Thu, 26 Sep 2019 11:54:09 GMT, Robin Westberg <rwestberg at openjdk.org> wrote:
> On Wed, 25 Sep 2019 13:50:50 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
>
>> JBS issue: https://bugs.openjdk.java.net/browse/SKARA-80
>>
>> This provides a configuration option to define the pattern for a valid issue ID as follows. This starts with the idea @edvbld mentioned in PR #99, although I felt it was cleaner to leave the default issue format as is, and use the more restrictive pattern for the "legacy" jdk conf file.
>>
>> The syntax of the new pattern is:
>>
>> [checks "issues"]
>> pattern=<PATTERN_STRING>
>>
>> The default pattern is:
>>
>> [checks "issues"]
>> pattern=^(([A-Z][A-Z0-9]+-)?[0-9]+): (\\S.*)$
>>
>> For legacy JDK `.jcheck/conf` files, the pattern is as follows to match the issue ID rules in `jcheck.py`:
>>
>> [checks "issues"]
>> pattern=^([124-8][0-9]{6}): (\\S.*)$
>>
>> ----------------
>>
>> Commits:
>> - a12ec8ee: 80: Allow valid bug ID format to be configurable
>>
>> Changes: https://git.openjdk.java.net/skara/pull/163/files
>> Webrev: https://webrevs.openjdk.java.net/skara/163/webrev.00
>> Issue: https://bugs.openjdk.java.net/browse/SKARA-80
>> Stats: 321 lines in 5 files changed: 315 ins; 1 del; 5 mod
>> Patch: https://git.openjdk.java.net/skara/pull/163.diff
>> Fetch: git fetch https://git.openjdk.java.net/skara pull/163/head:pull/163
>
> jcheck/src/main/java/org/openjdk/skara/jcheck/IssuesCheck.java line 48:
>
>> 47: if (commit.message().isEmpty() || message.issues().isEmpty()) {
>> 48: log.finer("isuse: no reference to a JBS issue");
>> 49: return iterator(new IssuesIssue(metadata));
>
> Suggestion:
>
> log.finer("issue: no reference to a JBS issue");
@rwestberg I fixed the typo you pointed out.
PR: https://git.openjdk.java.net/skara/pull/163
More information about the skara-dev
mailing list