Skip to content

ci(repo-ci): scan the full push range for attribution residue#30

Merged
NWarila merged 1 commit into
mainfrom
fix/residue-scan-push-range
Jun 2, 2026
Merged

ci(repo-ci): scan the full push range for attribution residue#30
NWarila merged 1 commit into
mainfrom
fix/residue-scan-push-range

Conversation

@NWarila

@NWarila NWarila commented Jun 2, 2026

Copy link
Copy Markdown
Owner

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.

On pull_request the check scans origin/<base>..HEAD. On push, github.base_ref
is empty, so AI_RESIDUE_BASE_REF resolved to a bogus ref and the check fell
back to scanning only the single HEAD commit — narrower than intended and prone
to false positives on a HEAD whose body merely mentions a marker word. Use
github.event.before..HEAD on push so every pushed commit is scanned and commits
already on the base branch are not re-scanned. Matching logic is unchanged.
@NWarila NWarila merged commit 5da716c into main Jun 2, 2026
21 checks passed
@NWarila NWarila deleted the fix/residue-scan-push-range branch June 2, 2026 20:23
NWarila added a commit that referenced this pull request Jun 5, 2026
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.
NWarila added a commit that referenced this pull request Jun 6, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant