-
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.
Merge pull request #3 from kontrolplane/patch
feat: add option to pass list of allowed commit types
- Loading branch information
Showing
2 changed files
with
45 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 |
---|---|---|
|
@@ -17,6 +17,7 @@ feat(client): add component | |
|
||
The action can be used with both the `pull_request` and `pull_request_target` trigger. | ||
|
||
`default` | ||
```yaml | ||
name: validate-pull-request-title | ||
|
||
|
@@ -36,5 +37,30 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: validate pull request title | ||
uses: kontrolplane/[email protected] | ||
uses: kontrolplane/[email protected] | ||
``` | ||
`custom types` | ||
```yaml | ||
name: validate-pull-request-title | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
permissions: | ||
pull-requests: read | ||
jobs: | ||
validator: | ||
name: validate-pull-request-title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: validate pull request title | ||
uses: kontrolplane/[email protected] | ||
with: | ||
types: "fix,feat,chore" | ||
``` |
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