-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make change log entries mandatory with every PR (#988)
* Try: Mandatory changlog entry * Fix typo * Add skip label annotation * Add changelog update * Check that readme.txt is updated, too * Add readme update --------- Co-authored-by: Matthias Pfefferle <[email protected]>
- Loading branch information
Showing
3 changed files
with
31 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,26 @@ | ||
name: "Changelog Updated" | ||
on: | ||
pull_request: | ||
# The specific activity types are listed here to include "labeled" and "unlabeled" | ||
# (which are not included by default for the "pull_request" trigger). | ||
# This is needed to allow skipping enforcement of the changelog in PRs with specific labels, | ||
# as defined in the (optional) "skipLabels" property. | ||
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
|
||
jobs: | ||
# Enforces the update of a changelog file on every pull request. | ||
changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# CHANGELOG.md | ||
- uses: dangoslen/changelog-enforcer@v3 | ||
with: | ||
skipLabels: 'Skip Changelog' | ||
versionPattern: '## \\[((v|V)?\\d*\\.\\d*\\.\\d*-?\\w*|unreleased|Unreleased|UNRELEASED|Dev)\\]' | ||
|
||
# readme.txt | ||
- uses: dangoslen/changelog-enforcer@v3 | ||
with: | ||
changeLogPath: 'readme.txt' | ||
skipLabels: 'Skip Changelog' | ||
versionPattern: '^=\\s*((v|V)?\\d+\\.\\d+\\.\\d+|Dev)\\s*=' |
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