-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (28 loc) · 913 Bytes
/
gitlint.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
---
# SPDX-FileCopyrightText: 2021 Andrew Grimberg <tykeal@bardicgrove.org>
# SPDX-License-Identifier: Apache-2.0
name: Gitlint
# yamllint disable-line rule:truthy
on:
pull_request:
jobs:
gitlint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
# Check out at the last commit (pre-automated merge, we don't care
# about the temporary commit for linting)
ref: ${{ github.event.pull_request.head.sha }}
# Get all history
fetch-depth: 0
- name: Install gitlint
shell: bash
run: |
python -m pip install gitlint
- name: Run gitlint
shell: bash
run: |
# Lint everything from the base to the latest
gitlint --commits "${{ github.event.pull_request.base.sha }}..HEAD"