Skip to content

Commit

Permalink
Adjust matcher for template change log section
Browse files Browse the repository at this point in the history
  • Loading branch information
Strech committed Dec 11, 2024
1 parent b985e32 commit d2d127e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ensure-changelog-entry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const regex = /\*\*Change log entry\*\*\s+(?:(?<answer_yes>yes|yep|yeah)(?:\.\s*(?<yes_message>[^\r\n<!-]+))?|(?<answer_no>no|nope|none)\.?)\s*/mi
const regex = /\*\*Change log entry\*\*\s+(?:<!--.*?-->\s*)?(?:(?<answer_yes>yes|yep|yeah)(?:\s?[.,:-]\s?(?<yes_message>[^\r\n<!-]+))?|(?<answer_no>no|nope|none)\.?.*?)/ims
const entry = context.payload.pull_request.body.match(regex)
const isWriteComment =
Expand Down

0 comments on commit d2d127e

Please sign in to comment.