-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5520 from Roasbeef/actions-require-release-notes
build: add new GH actions to require release note updates
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# Release Notes | ||
|
||
# Build System | ||
|
||
[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. | ||
|
||
# Contributors (Alphabetical Order) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Extract the PR number which is stored in the $GITHUB_REF env variable. The | ||
# format of the string stored in the variable is: refs/pull/:PRNUMBER/merge. | ||
PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }') | ||
|
||
# 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 | ||
echo "PR $PR_NUMBER didn't update release notes" | ||
exit 1 | ||
fi |