diff --git a/.github/workflows/check-adr.yml b/.github/workflows/check-adr.yml index b66fc20..9314e46 100644 --- a/.github/workflows/check-adr.yml +++ b/.github/workflows/check-adr.yml @@ -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) console.log(`title`, title, `match`, match); const startsWithAdr = (match !== null);