Skip to content

Commit

Permalink
Merge pull request #4219 from DataDog/fix-change-log-matcher
Browse files Browse the repository at this point in the history
Adjust matcher for template change log section
  • Loading branch information
Strech authored Dec 11, 2024
2 parents b6fe8c0 + d2d127e commit 1be0c46
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 1be0c46

Please sign in to comment.