Skip to content

Commit 9a15efb

Browse files
authored
ci(repo-ci): scan the full push range for attribution residue (#30)
On `pull_request` the attribution-residue step scans `origin/<base>..HEAD`. On `push`, `github.base_ref` is empty, so `AI_RESIDUE_BASE_REF` resolved to a bogus ref and the checker fell back to scanning only the single HEAD commit. This widens push-event coverage to `github.event.before..HEAD` (every commit in the push) and stops re-scanning commits already on the base branch. The marker-matching logic is unchanged — this only fixes the commit range on push events. Resolves the spurious failure on the latest `main` run.
1 parent 5b394f4 commit 9a15efb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/repo-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ jobs:
6464
BASE_REF: ${{ github.base_ref }}
6565
run: git fetch --no-tags origin "+refs/heads/${BASE_REF}:refs/remotes/origin/${BASE_REF}"
6666
env:
67+
# On pull_request, scan origin/<base>..HEAD (the PR's commits).
68+
# On push, github.base_ref is empty, so scan github.event.before..HEAD
69+
# (every commit in the push) instead of only HEAD — wider coverage,
70+
# and avoids re-scanning commits already on the base branch.
6771

6872
adr-schema:
6973
name: Validate ADR schema

0 commit comments

Comments
 (0)