Skip to content

Commit

Permalink
fix: adr linting (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amzani authored Jul 13, 2023
1 parent 0f2d85e commit 80025be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr-adr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
const title = context.payload.pull_request.title;
const labels = context.payload.pull_request.labels;
const hasAdrLabel = labels.some(label => label.name === 'kind/adr');
const re = /^(chore:\s*)?\[ADR-(\d{4})\]/;
const re = /^(?:chore:\s*)?\[ADR-(\d{4})\]/;
const match = title.match(re)
const startsWithAdr = (match !== null);
if (hasAdrLabel && !startsWithAdr) {
Expand Down

0 comments on commit 80025be

Please sign in to comment.