ci: skip AGit pull requests on test jobs #5

Merged
maximus merged 1 commit from ci/agit-guard into release/mirus 2026-11-22 10:34:24 +00:00
Member

Test jobs now run only for branch PRs: github.event_name != 'pull_request' || (head.repo.full_name == github.repository && pull_request.flow == 0). An AGit PR (flow 1) has head repo == base repo, so the fork check alone let it reach the shared runner. flow is part of Forgejo's pull request payload (modules/structs/pull.go, json:"flow"; 0 = branch, 1 = AGit); on workflow_dispatch the first clause short-circuits.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XMf4EHDsxSUaKJC2q1H41t

Test jobs now run only for branch PRs: `github.event_name != 'pull_request' || (head.repo.full_name == github.repository && pull_request.flow == 0)`. An AGit PR (flow 1) has head repo == base repo, so the fork check alone let it reach the shared runner. `flow` is part of Forgejo's pull request payload (`modules/structs/pull.go`, `json:"flow"`; 0 = branch, 1 = AGit); on workflow_dispatch the first clause short-circuits. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XMf4EHDsxSUaKJC2q1H41t
ci: also skip AGit pull requests on test jobs
All checks were successful
check / check (pull_request) Successful in 58s
e7a49ae0e8
An AGit PR (flow 1) has head repo == base repo, so the fork check alone lets it through to the shared runner. Test jobs now also require pull_request.flow == 0 (branch PR); non-PR events short-circuit before the expression is read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMf4EHDsxSUaKJC2q1H41t
maximus merged commit e7a49ae0e8 into release/mirus 2026-11-22 10:34:24 +00:00
maximus deleted branch ci/agit-guard 2026-11-22 10:34:24 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
public/aerc!5
No description provided.