-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(pr-names): linter for pull requests name (#302)
- Loading branch information
1 parent
32a2e33
commit 2c2a8e5
Showing
1 changed file
with
25 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Werewolves Assistant API Pull Request Name Lint Workflow | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'develop' | ||
types: | ||
- opened | ||
- edited | ||
- reopened | ||
- synchronize | ||
jobs: | ||
pr-lint: | ||
name: Lint Pull Request Name 馃攦 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Lint Pull Request Name 馃攦 | ||
uses: morrisoncole/pr-lint-action@v1.7.0 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
title-regex: ^(?<type>build|tech|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(?<scope>\(\w+(-\w+)*\)?((?=:\s)|(?=!:\s)))(?<breaking>!)?(?<subject>:\s.+)$ | ||
on-failed-regex-fail-action: true | ||
on-failed-regex-create-review: true | ||
on-failed-regex-request-changes: false | ||
on-failed-regex-comment: "[Auto-generated comment] Your Pull Request name is not compliant to conventional commits : ```%regex%```!" |