-
Notifications
You must be signed in to change notification settings - Fork 84
36 lines (32 loc) · 1.1 KB
/
pull_request_linting.yaml
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
name: Pull Request Lint
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']
jobs:
ticket-check:
name: ticket check
runs-on: ubuntu-latest
steps:
- name: Check for ticket
uses: neofinancial/ticket-check-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ticketLink: 'https://issues.redhat.com/browse/PROJQUAY-%ticketNumber%'
ticketPrefix: 'PROJQUAY-'
titleRegex: 'PROJQUAY-(?<ticketNumber>\d+)'
titleFormat: '%title% (%prefix%%id%)'
branchRegex: 'PROJQUAY-(?<ticketNumber>\d+)'
bodyRegex: 'PROJQUAY-(?<ticketNumber>\d+)'
bodyURLRegex: 'http(s?):\/\/(issues.redhat.com)(\/browse)\/(PROJQUAY\-)(?<ticketNumber>\d+)'
exemptUsers: 'dependabot'
conventional-commit:
runs-on: ubuntu-latest
name: conventional commit check
steps:
- name: Checkout
uses: actions/checkout@v2
- name: check conventional commit
id: check-for-cc
uses: agenthunt/[email protected]
with:
pr-body-regex: '(.*)?'