-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 898 Bytes
/
pr-checks.yml
File metadata and controls
37 lines (30 loc) · 898 Bytes
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
name: PR Checks
on:
pull_request:
types: [ opened, synchronize, edited, reopened ]
branches: [ master ]
permissions:
contents: read
pull-requests: write
jobs:
checks:
name: PR Checks
runs-on: ubuntu-latest
steps:
- name: Checkout to head SHA
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Setup mise toolchain
uses: jdx/mise-action@v2
with:
install: true
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Validate PR title
run: mise x cocogitto -- cog verify "${{ github.event.pull_request.title }}"
- name: Lint
run: mise run lint