-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check Changelog: Use commit body skip messages instead (#81)
Cluttering up the commit title with `[skip changelog]` is suboptimal. This switches to the approach used by the Python buildpack.
- Loading branch information
Showing
1 changed file
with
13 additions
and
9 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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
name: Check Changelog | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, edited, synchronize] | ||
pull_request: | ||
types: [opened, reopened, edited, synchronize] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Check that CHANGELOG is touched | ||
run: | | ||
cat $GITHUB_EVENT_PATH | jq .pull_request.title | grep -i '\[\(\(changelog skip\)\|\(ci skip\)\)\]' || git diff remotes/origin/${{ github.base_ref }} --name-only | grep CHANGELOG.md | ||
check-changelog: | ||
runs-on: ubuntu-latest | ||
if: | | ||
!contains(github.event.pull_request.body, '[skip changelog]') && | ||
!contains(github.event.pull_request.body, '[changelog skip]') && | ||
!contains(github.event.pull_request.body, '[skip ci]') | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Check that CHANGELOG is touched | ||
run: git diff remotes/origin/${{ github.base_ref }} --name-only | grep CHANGELOG.md |