reposyncer: require all CI workflows unless prefixed optional- #331

Merged
Doridian merged 1 commit from reposyncer-require-all-workflows into main 2026-10-09 17:08:15 -07:00
Owner

Reposyncer now makes every CI workflow that runs on pull_request a required status check, not just the managed-* ones.

  • Workflows whose filename starts with optional- (e.g. .forgejo/workflows/optional-slow.yml) are never required.
  • Like Forgejo, only one workflow directory is read: .forgejo/workflows if it has any files, otherwise .github/workflows.
  • A check is still required only if it runs both on the base branch and on the sync branch, so a PR can't be blocked by a check it adds, removes or renames. The sync branch's workflows are now read from git (HEAD after the baseline is applied) instead of from the files reposyncer wrote.
  • New tests cover non-managed, optional- and push-only workflows, plus the case of a repo that only has .github/workflows.

Heads-up: On the next run, existing repos with their own PR workflows will have those workflows added as required checks.

🤖 Generated with Claude Code

Reposyncer now makes every CI workflow that runs on `pull_request` a required status check, not just the `managed-*` ones. - Workflows whose filename starts with `optional-` (e.g. `.forgejo/workflows/optional-slow.yml`) are never required. - Like Forgejo, only one workflow directory is read: `.forgejo/workflows` if it has any files, otherwise `.github/workflows`. - A check is still required only if it runs both on the base branch and on the sync branch, so a PR can't be blocked by a check it adds, removes or renames. The sync branch's workflows are now read from git (`HEAD` after the baseline is applied) instead of from the files reposyncer wrote. - New tests cover non-managed, `optional-` and push-only workflows, plus the case of a repo that only has `.github/workflows`. **Heads-up:** On the next run, existing repos with their own PR workflows will have those workflows added as required checks. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
reposyncer: require all CI workflows unless prefixed optional-
All checks were successful
Run reposyncer / test (pull_request) Successful in 12s
Run reposyncer / reposyncer (pull_request) Successful in 18s
NodeJS check / check-nodejs (pull_request) Successful in 47s
Run renovate / renovate (pull_request) Successful in 2m27s
48ac3b6c63
Branch protection now requires every pull_request workflow in the repo,
not just the managed ones. Workflows whose filename starts with
`optional-` are skipped. Like Forgejo, only .forgejo/workflows is
considered if it has files, otherwise .github/workflows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Doridian scheduled this pull request to auto merge when all checks succeed 2026-10-09 17:08:09 -07:00
Doridian deleted branch reposyncer-require-all-workflows 2026-10-09 17:08:15 -07: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
FoxDen/maid!331
No description provided.