-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub workflow that verifies if CHANGELOG 'changes' are part of the PR.
- Loading branch information
1 parent
b1bb661
commit 4fc6f2d
Showing
2 changed files
with
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kind: internal | ||
body: Enforces CHANGELOG entries on PRs | ||
time: 2024-07-20T18:14:28.964448+02:00 | ||
custom: | ||
Issue: "" |
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,25 @@ | ||
name: Require CHANGELOG entry | ||
|
||
on: | ||
pull_request: | ||
types: | ||
# On by default if you specify no types. | ||
- "opened" | ||
- "reopened" | ||
- "synchronize" | ||
# For `skip-label` only. | ||
- "labeled" | ||
- "unlabeled" | ||
|
||
jobs: | ||
check-changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Check for changelog entry" | ||
uses: brettcannon/check-for-changed-files@v1 | ||
with: | ||
file-pattern: | | ||
.changes/unreleased/*.yaml | ||
CHANGELOG.md | ||
skip-label: "skip changelog" | ||
failure-message: "Missing a changelog file in ${file-pattern}; please add one or apply the ${skip-label} label to the pull request" |