v0.1.1 7141aff

release.yml RawHistoryFolder

1name: release
2
3# After CI succeeds on main, create at most one tag for the unreleased
4# conventional commits. The tag is then built by the shared GoReleaser
5# workflow at its exact commit.
6on:
7  workflow_run:
8    workflows: [ci]
9    types: [completed]
10    branches: [main]
11
12permissions:
13  contents: write
14
15concurrency:
16  group: release
17  cancel-in-progress: false
18
19jobs:
20  tag:
21    if: >-
22      github.event.workflow_run.conclusion == 'success' &&
23      github.event.workflow_run.head_branch == 'main' &&
24      !contains(github.event.workflow_run.head_commit.message, '[release=skip]')
25    runs-on: ubuntu-latest
26    outputs:
27      tag: ${{ steps.version.outputs.tag }}
28    steps:
29      - name: Check out the verified commit
30        uses: actions/checkout@v4
31        with:
32          fetch-depth: 0
33          fetch-tags: true
34          ref: ${{ github.event.workflow_run.head_sha }}
35
36      - name: Compute the next release tag
37        id: version
38        shell: bash
39        run: |
40          set -euo pipefail
41          tag=$(bash .github/scripts/next-release-tag.sh)
42          if [ -z "$tag" ]; then
43            echo "No releasable conventional commits for this run."
44            exit 0
45          fi
46          echo "Releasing $tag from $(git rev-parse --short HEAD)"
47          echo "tag=$tag" >> "$GITHUB_OUTPUT"
48
49      - name: Create and push the tag
50        if: steps.version.outputs.tag != ''
51        env:
52          TAG: ${{ steps.version.outputs.tag }}
53        run: |
54          git config user.name "github-actions[bot]"
55          git config user.email "github-actions[bot]@users.noreply.github.com"
56          git tag -a "$TAG" -m "release $TAG"
57          git push origin "$TAG"
58
59  release:
60    needs: tag
61    if: needs.tag.outputs.tag != ''
62    permissions:
63      contents: write
64    uses: bnema/gh-actions/.github/workflows/go-release.yml@main
65    with:
66      go-version: "1.26"
67      # The reusable workflow fetches tags before this command, ensuring
68      # GoReleaser produces artifacts and notes for the newly created tag.
69      pre-command: git checkout --detach "${{ needs.tag.outputs.tag }}"

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