Integrated: 80: Allow valid bug ID format to be configurable

Kevin Rushforth kcr at openjdk.java.net
Sat Jan 30 14:57:31 UTC 2021


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.*)$

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

Commit messages:
 - Fix typo found during review
 - 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/?repo=skara&pr=163&range=00
  Issue: https://bugs.openjdk.java.net/browse/SKARA-80
  Stats: 322 lines in 5 files changed: 315 ins; 1 del; 6 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

PR: https://git.openjdk.java.net/skara/pull/163


More information about the skara-dev mailing list