diff --git a/CHANGELOG.md b/CHANGELOG.md index b83dccf..31be7ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Fixes + +- Danger - recognize PR links based on full URL instead of just the PR number. ([#68](https://github.com/getsentry/github-workflows/pull/68)) + ### Dependencies - Bump `danger/danger-js` from v11.1.2 to v11.3.1 ([#59](https://github.com/getsentry/github-workflows/pull/59)) diff --git a/danger/dangerfile.js b/danger/dangerfile.js index b714e56..3b39a3a 100644 --- a/danger/dangerfile.js +++ b/danger/dangerfile.js @@ -79,7 +79,7 @@ async function checkChangelog() { changelogFile ); - const changelogMatch = RegExp(`^(.*)\n[^\n]+#${danger.github.pr.number}\\b`, 's').exec( + const changelogMatch = RegExp(`^(.*?)\n[^\n]+(\\(${danger.github.pr.html_url}\\)|#${danger.github.pr.number}\\b)`, 's').exec( changelogContents );