-
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.
* fix: commit workflow * chore : remove labeller * fix: workflow test
- Loading branch information
1 parent
3e14820
commit c361dd6
Showing
4 changed files
with
18 additions
and
38 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
rules: | ||
- name: "Commit message length" | ||
description: "Ensure commit messages are not too long" | ||
pattern: ".{1,50}" | ||
error_message: "Commit messages should be between 1 and 50 characters long" | ||
name: Conventional Commits | ||
|
||
- name: "Capitalized subject" | ||
description: "Ensure commit message subject starts with a capital letter" | ||
pattern: "^[A-Z].*" | ||
error_message: "Commit message subject should start with a capital letter" | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
- name: "Imperative mood" | ||
description: "Ensure commit message subject is in imperative mood" | ||
pattern: "(^fix|^update|^add|^remove|^refactor|^implement|^merge|^resolve|^enhance|^correct|^optimize|^adjust|^improve|^change|^test|^doc|^style|^clean)(s|es|ed|ing)?\\b" | ||
error_message: "Commit message subject should use imperative mood" | ||
jobs: | ||
build: | ||
name: Conventional Commits | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: webiny/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Optional, for private repositories. | ||
allowed-commit-types: "feat,fix" # Optional, set if you want a subset of commit types to be allowed. |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Update docker dev image | |
on: | ||
push: | ||
branches: | ||
- dev | ||
- main | ||
|
||
jobs: | ||
build-and-push: | ||
|