chore(consistency): sync task status from DB [auto]
Updated by fix-consistency on 2026-10-11: - update .custodian-brief.md for the-custodian
This commit is contained in:
parent
ebaa38bd56
commit
6fe7201fd5
15 changed files with 411 additions and 10 deletions
33
.forgejo/workflows/generated-commit-guard.yaml
Normal file
33
.forgejo/workflows/generated-commit-guard.yaml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
name: Reject generated-only commits
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
generated-commit-guard:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check every proposed commit
|
||||
env:
|
||||
PUSH_BEFORE: ${{ github.event.before }}
|
||||
PR_BASE: ${{ github.event.pull_request.base.sha }}
|
||||
HEAD_SHA: ${{ github.sha }}
|
||||
run: |
|
||||
set -eu
|
||||
apt-get update -qq >/dev/null
|
||||
apt-get install -y -qq git python3 >/dev/null
|
||||
WORK="$(mktemp -d)"
|
||||
trap 'rm -rf "$WORK"' EXIT
|
||||
git clone --quiet "https://forgejo.coulomb.social/${GITHUB_REPOSITORY}.git" "$WORK/repo"
|
||||
cd "$WORK/repo"
|
||||
git fetch --quiet origin "$HEAD_SHA"
|
||||
git checkout --quiet --detach "$HEAD_SHA"
|
||||
BASE="${PR_BASE:-${PUSH_BEFORE:-}}"
|
||||
if [ -z "$BASE" ] || [ "$BASE" = 0000000000000000000000000000000000000000 ]; then
|
||||
BASE="$(git rev-parse HEAD^)"
|
||||
fi
|
||||
git fetch --quiet origin "$BASE"
|
||||
python3 scripts/check_generated_only_commit.py --range "$BASE..$HEAD_SHA"
|
||||
|
|
@ -12,6 +12,7 @@ on:
|
|||
- main
|
||||
paths:
|
||||
- "tools/**"
|
||||
- "scripts/**"
|
||||
- "tests/**"
|
||||
- "canon/standards/**"
|
||||
- ".forgejo/workflows/python-tests.yaml"
|
||||
|
|
@ -26,7 +27,7 @@ jobs:
|
|||
run: |
|
||||
set -eu
|
||||
apt-get update -qq >/dev/null
|
||||
apt-get install -y -qq python3 python3-pip python3-yaml \
|
||||
apt-get install -y -qq git python3 python3-pip python3-yaml \
|
||||
python3-jsonschema python3-pytest wget >/dev/null
|
||||
WORK="$(mktemp -d)"; trap 'rm -rf "$WORK"' EXIT
|
||||
REF="${GITHUB_SHA:-main}"; SHORT="${REF:0:7}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue