Skip to content

ci: skip no-mistakes-required check on fork#13

Merged
Bre77 merged 1 commit into
mainfrom
fm/fork-nomistakes-ci-neutralize-k2
Jul 11, 2026
Merged

ci: skip no-mistakes-required check on fork#13
Bre77 merged 1 commit into
mainfrom
fm/fork-nomistakes-ci-neutralize-k2

Conversation

@Bre77

@Bre77 Bre77 commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Intent

  • Neutralize the upstream-inherited no-mistakes-required check, which fails on every fork PR.
  • Fix: add a github.repository == 'kunchenguid/firstmate' guard to the job's existing if: condition.
    • The job now short-circuits to neutral/skipped on this fork and stays fully active on the upstream repo (kunchenguid/firstmate) with no other behavior change there.
    • Minimal diff: one added line inside the existing if: expression, no restructuring of the workflow.
  • Implication: this file now stays merge-clean across future upstream integrations - no more conflict on every sync, and the guard requires no per-integration maintenance since it re-activates automatically for anyone whose github.repository actually is upstream.
  • Explicitly not done: the workflow file was not deleted (deletion would reintroduce a merge conflict on every future upstream integration) and no other workflow logic was touched.

What Changed

  • .github/workflows/no-mistakes-required.yml: added github.repository == 'kunchenguid/firstmate' && as the first clause of the job's if: condition.

Testing

  • Parsed the workflow YAML with Python's yaml.safe_load to confirm it is syntactically valid; actionlint was not available in this environment.
  • Manually inspected the resulting if: expression to confirm the guard is a simple boolean AND with the pre-existing bot-author exclusions, preserving existing behavior on the upstream repo.
Full narrative / original brief

Neutralize the upstream-inherited no-mistakes-required PR check on the Bre77/firstmate fork.

Problem: .github/workflows/no-mistakes-required.yml (inherited from upstream in the recent integration) fails on every fork PR because the fork's delivery path (bin/fm-fork-deliver.sh, local quality gate) deliberately does not use the no-mistakes pipeline - its gate targets upstream. Evidence: PR 11 and PR 12 both showed the red check; both were legitimately delivered.

Fix: make the workflow skip (neutral/success) when it runs in this fork - e.g. a repository guard (if: github.repository == 'kunchenguid/firstmate') on the job(s), so the file stays merge-clean with upstream and re-activates automatically for anyone whose repo IS upstream. Do not delete the file (deleting reintroduces a conflict on every future upstream integration).

Verify: workflow YAML parses (actionlint or gh's parser if available), and the guard expression is the minimal change. State in the PR body that upstream integrations will merge this file cleanly.

The fork's delivery path (bin/fm-fork-deliver.sh) targets a local
quality gate, not the no-mistakes pipeline, so this upstream-inherited
check always fails red on fork PRs even when legitimately delivered.
Guard the job on github.repository so it stays neutral here and
re-activates automatically on the upstream repo, keeping the file
merge-clean across future upstream integrations.
@Bre77 Bre77 merged commit 9f8f73b into main Jul 11, 2026
4 checks passed
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