-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added action to ensure changelog is changed (#6)
- Loading branch information
Showing
4 changed files
with
40 additions
and
1 deletion.
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,17 @@ | ||
name: Review-Trigger | ||
|
||
on: | ||
pull_request_target: | ||
|
||
jobs: | ||
dismiss-reviews: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Dismiss Approvals | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh api repos/${{ github.repository }}/pulls/${{ github.event.number }}/reviews \ | ||
--jq '.[] | select(.state == "APPROVED") | .id' \ | ||
| xargs -I '{}' gh api --method=PUT -f message="Dismissed due to PR edit." \ | ||
repos/${{ github.repository }}/pulls/${{ github.event.number }}/reviews/'{}'/dismissals |
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,20 @@ | ||
name: Modify Changelog | ||
|
||
on: | ||
pull_request_target: | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
steps: | ||
- name: Get Changed Files | ||
id: changed | ||
uses: foodee/pr-includes-file-change@master | ||
with: | ||
paths: ^CHANGELOG.md | ||
- name: Fail | ||
if: steps.changed.outputs.matched != 'true' && !contains(github.event.pull_request.body, '[x] Does not require a CHANGELOG entry') | ||
run: echo "::error::CHANGELOG.md has not been modified. Either modify the file or check the checkbox in the body" && exit 1 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
This is the first change |