detached b4b752e

ci: skip lint and test for doc-only PRs

commit
b4b752ed4ef8db22c0374b1ba61f18dda934f5cd
author
brice · · 2026-04-20 06:31 UTC
parent
a5c0fd3
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
1 file · +26 -17
M .github/workflows/ci.yml +26 -17
@@ -12,27 +12,34 @@ on:
1212 - 'Makefile'
1313 - 'sqlc.yaml'
1414 - 'assets/**'
15- - '.github/workflows/**'
16- - '!**.md'
17- - '!docs/**'
18- - '!LICENSE'
1915 pull_request:
20- paths:
21- - '**.go'
22- - 'go.mod'
23- - 'go.sum'
24- - 'webui/**'
25- - '.golangci.yml'
26- - 'Makefile'
27- - 'sqlc.yaml'
28- - 'assets/**'
29- - '.github/workflows/**'
30- - '!**.md'
31- - '!docs/**'
32- - '!LICENSE'
3316
3417 jobs:
18+ changes:
19+ runs-on: ubuntu-latest
20+ outputs:
21+ ci: ${{ steps.filter.outputs.ci }}
22+ steps:
23+ - uses: actions/checkout@v6
24+ with:
25+ fetch-depth: 0
26+ - uses: dorny/paths-filter@v3
27+ id: filter
28+ with:
29+ filters: |
30+ ci:
31+ - '**.go'
32+ - 'go.mod'
33+ - 'go.sum'
34+ - 'webui/**'
35+ - '.golangci.yml'
36+ - 'Makefile'
37+ - 'sqlc.yaml'
38+ - 'assets/**'
39+
3540 lint:
41+ needs: changes
42+ if: needs.changes.outputs.ci == 'true'
3643 runs-on: ubuntu-latest
3744 container:
3845 image: archlinux:latest
@@ -74,6 +81,8 @@ jobs:
7481 golangci-lint run --timeout=20m
7582
7683 test:
84+ needs: changes
85+ if: needs.changes.outputs.ci == 'true'
7786 runs-on: ubuntu-latest
7887 container:
7988 image: archlinux:latest
@@ -12,27 +12,34 @@ on:
12 - 'Makefile'12 - 'Makefile'
13 - 'sqlc.yaml'13 - 'sqlc.yaml'
14 - 'assets/**'14 - 'assets/**'
15- - '.github/workflows/**'
16- - '!**.md'
17- - '!docs/**'
18- - '!LICENSE'
19 pull_request:15 pull_request:
20- paths:
21- - '**.go'
22- - 'go.mod'
23- - 'go.sum'
24- - 'webui/**'
25- - '.golangci.yml'
26- - 'Makefile'
27- - 'sqlc.yaml'
28- - 'assets/**'
29- - '.github/workflows/**'
30- - '!**.md'
31- - '!docs/**'
32- - '!LICENSE'
33 16
34 jobs:17 jobs:
18+ changes:
19+ runs-on: ubuntu-latest
20+ outputs:
21+ ci: ${{ steps.filter.outputs.ci }}
22+ steps:
23+ - uses: actions/checkout@v6
24+ with:
25+ fetch-depth: 0
26+ - uses: dorny/paths-filter@v3
27+ id: filter
28+ with:
29+ filters: |
30+ ci:
31+ - '**.go'
32+ - 'go.mod'
33+ - 'go.sum'
34+ - 'webui/**'
35+ - '.golangci.yml'
36+ - 'Makefile'
37+ - 'sqlc.yaml'
38+ - 'assets/**'
39+
35 lint:40 lint:
41+ needs: changes
42+ if: needs.changes.outputs.ci == 'true'
36 runs-on: ubuntu-latest43 runs-on: ubuntu-latest
37 container:44 container:
38 image: archlinux:latest45 image: archlinux:latest
@@ -74,6 +81,8 @@ jobs:
74 golangci-lint run --timeout=20m81 golangci-lint run --timeout=20m
75 82
76 test:83 test:
84+ needs: changes
85+ if: needs.changes.outputs.ci == 'true'
77 runs-on: ubuntu-latest86 runs-on: ubuntu-latest
78 container:87 container:
79 image: archlinux:latest88 image: archlinux:latest

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close