From d1585779840b948e2613880df6d0c953652ec836 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Sat, 28 Nov 2026 01:24:44 +0100 Subject: [PATCH 1/2] Reject merge commits in feature branches --- .forgejo/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index e8b9622..c20d30f 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -43,6 +43,12 @@ jobs: steps: - uses: actions/checkout@v6 + with: + fetch-depth: 0 # Fetch all branches with their history for the next step + + - name: Ensure feature branches contain no merge commits + if: forgejo.ref_name != 'develop' && forgejo.ref_name != 'main' + run: "! git rev-list --merges origin/develop..HEAD | grep ." - name: Install R via system packages run: | From 30aac8e3c77954f7986138176243ad6e26a08f51 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Sat, 28 Nov 2026 01:26:18 +0100 Subject: [PATCH 2/2] Use `FORGEJO_...` names in CI --- .forgejo/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index c20d30f..f973814 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -63,7 +63,7 @@ jobs: - name: Install `uv` and `python3.13` run: | curl -LsSf https://astral.sh/uv/0.13.10/install.sh | sh - echo "$HOME/.local/bin" >> "$GITHUB_PATH" + echo "$HOME/.local/bin" >> "$FORGEJO_PATH" "$HOME/.local/bin/uv" python install 3.13 - name: Install `velofy` and its dependencies