-
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add merge commit check to commit linting
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 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 |
---|---|---|
|
@@ -79,8 +79,8 @@ jobs: | |
- name: Run typecheck 📖 | ||
run: npm run typecheck | ||
|
||
conventional_commits: | ||
name: Conventional commits check 💬 | ||
commits_checks: | ||
name: Commit linting 💬✅ | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -92,3 +92,8 @@ jobs: | |
|
||
- name: Check if all commits comply with the specification | ||
uses: webiny/[email protected] | ||
|
||
- name: Check for merge commits | ||
run: | | ||
git log --merges --oneline | grep -q "^" && exit 1 || exit 0 | ||
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