]> git.proxmox.com Git - mirror_frr.git/blob - .github/workflows/commitlint.yml
tools: Use specific syntax for conditions for Github actions
[mirror_frr.git] / .github / workflows / commitlint.yml
1 name: commitlint
2
3 on:
4 pull_request:
5 types:
6 - opened
7 - reopened
8 - synchronize
9 - labeled
10 - unlabeled
11
12 jobs:
13 commitlint:
14 if: ${{ github.repository == 'frrouting/frr' }} && ${{ github.base_ref == 'refs/heads/master' }}
15 name: Check if the commits meet the requirements of the guidelines
16 permissions:
17 contents: read
18 pull-requests: read
19 runs-on: ubuntu-latest
20 steps:
21 - name: Checkout
22 uses: actions/checkout@v3
23 with:
24 fetch-depth: 0
25
26 - name: Check Commit
27 uses: wagoid/commitlint-github-action@v5
28 with:
29 configFile: .github/commitlint.config.js
30 helpURL: 'https://docs.frrouting.org/projects/dev-guide/en/latest/workflow.html#submitting-patches-and-enhancements'