Browse Source

Merge pull request #5543 from Roasbeef/release-notes-master-special-case

scripts: account for master branch merges in release notes script
master
Oliver Gugger 3 years ago committed by GitHub
parent
commit
b16877236a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      docs/release-notes/release-notes-0.14.0.md
  2. 7
      scripts/check-release-notes.sh

5
docs/release-notes/release-notes-0.14.0.md

@ -4,8 +4,9 @@
[A new pre-submit check has been
added](https://github.com/lightningnetwork/lnd/pull/5520) to ensure that all
PRs add an entry in the release notes folder that at leasts links to PR being
added.
PRs ([aside from merge
commits](https://github.com/lightningnetwork/lnd/pull/5543)) add an entry in
the release notes folder that at leasts links to PR being added.
# Code Health

7
scripts/check-release-notes.sh

@ -6,6 +6,13 @@ set -e
# format of the string stored in the variable is: refs/pull/:PRNUMBER/merge.
PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
# If this is a PR being merged into the main repo, then the PR number will
# actually be "master" here, so we'll ignore this case, and assume that in
# order for it to be merged it had to pass the check in its base branch.
if [ $PR_NUMBER == "master" ]; then
exit 0
fi
# Ensure that the PR number at least shows up in the release notes folder under
# one of the contained milestones.
if ! grep -r -q "lightningnetwork/lnd/pull/$PR_NUMBER" docs/release-notes; then

Loading…
Cancel
Save