main 4509ec7

ci.yml RawHistoryFolder

1name: ci
2
3on:
4  push:
5    branches: [main]
6  pull_request:
7    branches: [main]
8
9# Cancel in-progress runs when a new commit lands on the same branch /
10# pr, so we don't waste minutes on stale SHAs.
11concurrency:
12  group: ci-${{ github.ref }}
13  cancel-in-progress: true
14
15jobs:
16  test:
17    name: test (${{ matrix.os }})
18    runs-on: ${{ matrix.os }}
19    strategy:
20      fail-fast: false
21      matrix:
22        # ermite has no macOS or Windows runner: those legs run on GitHub only.
23        os: ${{ fromJSON(github.server_url == 'https://github.com' && '["ubuntu-latest","macos-latest","windows-latest"]' || '["ubuntu-latest"]') }}
24    steps:
25      - uses: actions/checkout@v4
26
27      - name: set up go
28        uses: actions/setup-go@v7
29        with:
30          go-version-file: go.mod
31          cache: true
32
33      - name: go vet
34        run: go vet ./...
35
36      - name: gofmt check
37        # Windows' bash is mingw; gofmt outputs paths with slashes so the
38        # diff check works there too. Skip on windows only if needed.
39        if: runner.os != 'Windows'
40        run: |
41          diff=$(gofmt -l .)
42          if [ -n "$diff" ]; then
43            echo "gofmt issues:"
44            echo "$diff"
45            exit 1
46          fi
47
48      - name: go test
49        run: go test -race ./...
50
51      # Keep Linux-only quality checks in the Ubuntu test job so CI needs
52      # only the three platform runners.
53      - name: release-version policy
54        if: matrix.os == 'ubuntu-latest'
55        run: bash .github/scripts/next-release-tag_test.sh
56
57      - name: golangci-lint
58        if: matrix.os == 'ubuntu-latest'
59        uses: golangci/golangci-lint-action@v9.3.0
60        with:
61          version: v2.14.0

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 1

Tags 476

↑↓ moveenter openesc close