forked from MagicMirrorOrg/MagicMirror
-
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.
Add workflow rule to prohibit PRs against master
- Loading branch information
veeck
committed
Feb 7, 2023
1 parent
4b478a5
commit 883ad5c
Showing
4 changed files
with
30 additions
and
20 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,4 +1,4 @@ | ||
name: "Dependency Review" | ||
name: "Review Dependencies" | ||
on: [pull_request] | ||
|
||
permissions: | ||
|
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
# This workflow enforces on every pull request: | ||
# - the update of our CHANGELOG.md file | ||
# - that the PR is not based against master | ||
|
||
name: "Enforce Pull-Request Rules" | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Enforce changelog | ||
uses: dangoslen/changelog-enforcer@v3 | ||
with: | ||
changeLogPath: "CHANGELOG.md" | ||
skipLabels: "Skip Changelog" | ||
|
||
- name: Enforce develop branch | ||
if: ${{ github.base_ref == 'master' }} | ||
run: | | ||
echo "This PR is based against the master branch. Please don't do this. Switch the branch to 'develop'." | ||
exit 1 | ||
env: | ||
BASE_BRANCH: ${{ github.base_ref }} |
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