ci: [REUSABLE HARNESS — DO NOT MERGE] middle branch to test pull_request_target workflows - #90
Draft
krlmlr wants to merge 1 commit into
Draft
ci: [REUSABLE HARNESS — DO NOT MERGE] middle branch to test pull_request_target workflows#90krlmlr wants to merge 1 commit into
krlmlr wants to merge 1 commit into
Conversation
krlmlr
force-pushed
the
claude/ubuntu-26-arm64-gha-ezzy7y-fmt-base
branch
from
July 22, 2026 09:47
c7e853a to
38c0abd
Compare
Makes format-suggest testable via a PR. The real workflow uses pull_request_target, which runs the DEFAULT branch's (main) workflow file, so a modified format-suggest cannot be exercised from a PR without touching main. This middle branch switches format-suggest to a `pull_request` trigger (which uses the PR's own workflow file) scoped to PRs whose base is this middle branch. Effect: - The outermost PR (base = this branch) triggers format-suggest -> runs its style + reviewdog logic end-to-end. - This middle PR (base = the feature branch) does NOT match the branches filter, so it triggers no checks. The fork-only `if` gate is dropped so the same-repo test PR runs. DO NOT MERGE. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Tw1nB3SzehmtvTjkwmc2v
krlmlr
force-pushed
the
claude/ubuntu-26-arm64-gha-ezzy7y-fmt-base
branch
from
July 22, 2026 17:01
38c0abd to
72f0ea5
Compare
Contributor
Author
|
Session link: https://claude.ai/code/session_018Tw1nB3SzehmtvTjkwmc2v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pull_request_targetworkflows (e.g. format-suggest)Testing a change to a
pull_request_targetworkflow from a PR is normally impossible:pull_request_targetalways runs the workflow file from the repo's default branch (main), never the PR's branch. This branch is the workaround's middle layer; the outermost test PR is #91.How it works
It switches
format-suggestto apull_requesttrigger (which does use the PR's own workflow file) scoped tobranches: [<this branch>], and drops the fork-onlyif. Effect:main) matches the filter for nothing → runs no checks.How a future session reuses this
Per-reuse change is the branch-name token (
claude/ubuntu-26-arm64-gha-ezzy7y-fmt-base).<NEW>-fmt-basefrommain.format-suggest.yamledit, then point its branches filter at the new name:sed -i 's#claude/ubuntu-26-arm64-gha-ezzy7y-fmt-base#<NEW>-fmt-base#g' .github/workflows/format-suggest.yamlmain) — it runs no checks. Then stack the outermost test PR on it (see ci: [REUSABLE HARNESS — DO NOT MERGE] outermost PR that exercises format-suggest end-to-end #91).The real
format-suggestonmainkeepspull_request_target+ fork-only; thispull_requestswitch is test-only. DO NOT MERGE.🤖 Generated with Claude Code