-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (41 loc) · 1015 Bytes
/
validate_pr.yml
File metadata and controls
43 lines (41 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Validate Pull Request
on:
workflow_call:
inputs:
conventional_title:
description: "Whether or not to validate conventional commit pull request titles"
default: false
required: false
type: boolean
scopes:
description: "Valid scopes for checking PR titles"
required: false
type: string
jobs:
conventional_commit:
name: Conventional Commit Title
if: ${{ inputs.conventional_title }}
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
scopes: ${{ inputs.scopes }}
requireScope: true
types: |
build
chore
ci
docs
feat
fix
merge
perf
refactor
revert
style
test
wip
ignoreLabels: |
autorelease: pending