detached 5bd5e9f

ci: run Dependabot auto-merge as a plain job

Forgejo resolves reusable workflows before job conditions, so the GitHub-only reusable workflow failed every Forgejo PR. The steps now run inline and the dependabot condition skips the job elsewhere.
commit
5bd5e9f82a43f5fd4c0146022cab5cc4af27058b
author
brice · · 2026-10-15 02:26 UTC
parent
51e0a11
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
1 file · +20 -6
M .github/workflows/dependabot-auto-merge.yml +20 -6
@@ -2,11 +2,25 @@ name: Dependabot Auto-Merge
22
33 on: pull_request
44
5+permissions:
6+ contents: write
7+ pull-requests: write
8+
59 jobs:
10+ # Dependabot runs on GitHub only. A plain job (no reusable workflow) lets
11+ # the `if` skip it on Forgejo, which cannot resolve GitHub-only workflows.
612 auto-merge:
7- # Dependabot runs on GitHub only; the reusable workflow is not on Forgejo.
8- if: github.server_url == 'https://github.com' && github.event.pull_request.user.login == 'dependabot[bot]'
9- permissions:
10- contents: write
11- pull-requests: write
12- uses: bnema/gh-actions/.github/workflows/dependabot-auto-merge.yml@main
13+ runs-on: ubuntu-latest
14+ if: github.actor == 'dependabot[bot]'
15+ steps:
16+ - name: Dependabot metadata
17+ id: metadata
18+ uses: dependabot/fetch-metadata@v3
19+ with:
20+ github-token: "${{ secrets.GITHUB_TOKEN }}"
21+ - name: Auto-merge patch and minor updates
22+ if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
23+ run: gh pr merge --auto --squash "$PR_URL"
24+ env:
25+ PR_URL: ${{ github.event.pull_request.html_url }}
26+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -2,11 +2,25 @@ name: Dependabot Auto-Merge
2 2
3 on: pull_request3 on: pull_request
4 4
5+permissions:
6+ contents: write
7+ pull-requests: write
8+
5 jobs:9 jobs:
10+ # Dependabot runs on GitHub only. A plain job (no reusable workflow) lets
11+ # the `if` skip it on Forgejo, which cannot resolve GitHub-only workflows.
6 auto-merge:12 auto-merge:
7- # Dependabot runs on GitHub only; the reusable workflow is not on Forgejo.13+ runs-on: ubuntu-latest
8- if: github.server_url == 'https://github.com' && github.event.pull_request.user.login == 'dependabot[bot]'14+ if: github.actor == 'dependabot[bot]'
9- permissions:15+ steps:
10- contents: write16+ - name: Dependabot metadata
11- pull-requests: write17+ id: metadata
12- uses: bnema/gh-actions/.github/workflows/dependabot-auto-merge.yml@main18+ uses: dependabot/fetch-metadata@v3
19+ with:
20+ github-token: "${{ secrets.GITHUB_TOKEN }}"
21+ - name: Auto-merge patch and minor updates
22+ if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
23+ run: gh pr merge --auto --squash "$PR_URL"
24+ env:
25+ PR_URL: ${{ github.event.pull_request.html_url }}
26+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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 8

↑↓ moveenter openesc close