forked from MarkusMcNugen/docker-qBittorrentvpn
-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (42 loc) · 1.51 KB
/
pr_checks.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
37
38
39
40
41
42
43
name: 'PR Standards Check'
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
jobs:
check-pr-title:
name: PR Title
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
npm install @commitlint/config-conventional
echo "module.exports = {extends: ['@commitlint/config-conventional'], rules: { 'subject-case': [0, 'always', ['sentence-case','lower-case', 'start-case']], 'header-max-length': [2, 'always', 120], 'body-max-line-length': [0, 'always', 120] }};" > commitlint.config.js
- uses: JulienKode/pull-request-name-linter-action@v0.5.0
check-pr-commits:
name: PR Commit Messages
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure commit lint
run: |
echo "module.exports = {extends: ['@commitlint/config-conventional'], rules: { 'subject-case': [0, 'always', ['sentence-case','lower-case', 'start-case']], 'header-max-length': [2, 'always', 120], 'body-max-line-length': [0, 'always', 120] }};" > commitlint.config.js
- uses: wagoid/commitlint-github-action@v5.4.5
apply-labels:
name: PR Labels
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Apply Herald rules
uses: gagoar/use-herald-action@v2.3.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
rulesLocation: '.github/herald_rule_*.json'
base: main
DEBUG: "*"