-
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 #5 from paopa/feat/prefix-base-parsing-for-scopes
feat: support prefix based parsing for scopes
- Loading branch information
Showing
2 changed files
with
10 additions
and
8 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,7 +17,7 @@ feat(client): add component | |
|
||
The action can be used with both the `pull_request` and `pull_request_target` trigger. | ||
|
||
`default` | ||
### Default | ||
|
||
```yaml | ||
name: validate-pull-request-title | ||
|
@@ -41,7 +41,7 @@ jobs: | |
uses: kontrolplane/[email protected] | ||
``` | ||
`custom types` | ||
### Custom types | ||
```yaml | ||
name: validate-pull-request-title | ||
|
@@ -67,7 +67,9 @@ jobs: | |
types: "fix,feat,chore" | ||
``` | ||
`custom scopes` | ||
### Custom scopes | ||
Scopes support regular expression patterns, allowing you to define specific patterns to match the scopes you want to allow. You can also separate multiple scopes using commas. | ||
```yaml | ||
name: validate-pull-request-title | ||
|
@@ -88,7 +90,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: validate pull request title | ||
uses: kontrolplane/pull-request-title-validator@v1.2.0 | ||
uses: kontrolplane/pull-request-title-validator@v1.4.0 | ||
with: | ||
scopes: "api,lang,parser" | ||
scopes: "api,lang,parser,package/.+" | ||
``` |
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