diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-03-05 21:12:23 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-03-05 21:15:18 +0200 |
| commit | 754a05405929a0a8f0c63b55e12ae591e45e9c0a (patch) | |
| tree | 1dc54dc2ed7a5873c6636466fd4908b0e1bfa36f /.github | |
| parent | e618cc7b21608c493ec321caf2377771c6c4baba (diff) | |
tools: Do not run commit linter for other branches than master
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/commitlint.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index ea5b704188..06bf3b3b95 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -10,8 +10,9 @@ on: - unlabeled jobs: - lint: - if: github.repository == 'frrouting/frr' + commitlint: + if: github.repository == 'frrouting/frr' && github.base_ref == 'refs/heads/master' + name: Check if the commits meet the requirements of the guidelines permissions: contents: read pull-requests: read |
