-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (38 loc) · 1.29 KB
/
contribution-guidelines-check.yml
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
# This is a GitHub Action that ensures that your pull request titles match the Conventional Commits spec.
# Refer to the `amannn/action-semantic-pull-request` documentation for more information: https://github.com/amannn/action-semantic-pull-request
name: Contribution Guidelines Check
on:
# The event `pull_request_target` is safe because the workflow does not use `action/checkout`,
# and does not run untrusted code.
# See: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
pull_request_target:
branches:
- "**"
types:
- opened
- reopened
- edited
- synchronize
- labeled
- unlabeled
concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number }}"
# Cancel in-progress runs when a new workflow with the same group name is triggered
cancel-in-progress: true
jobs:
validate-pr-title:
name: Validate PR Title
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# These are regex patterns auto-wrapped in `^ $`.
scopes: |
devops
proposal
DEV-\d+
requireScope: true
ignoreLabels: |
bot