Skip to content

Commit

Permalink
ci(pr-names): linter for pull requests name (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Jul 1, 2023
1 parent 32a2e33 commit 2c2a8e5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pr-name-lint.yml
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%```!"

0 comments on commit 2c2a8e5

Please sign in to comment.