Skip to content

👷 ci(schemastore): fix PR creation for fork#3827

Merged
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:relase
Feb 25, 2026
Merged

👷 ci(schemastore): fix PR creation for fork#3827
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:relase

Conversation

@gaborbernat
Copy link
Copy Markdown
Member

@gaborbernat gaborbernat commented Feb 25, 2026

The gh auth setup-git fix from #3826 resolved the git push authentication, but two issues remained. First, gh pr create --repo SchemaStore/schemastore fails with "you must first push the current branch to a remote, or use the --head flag" because it can't infer which fork owns the branch when --repo points to upstream. Second, git switch -C creates the branch from the fork's default branch which may be stale, producing PRs with merge conflicts against SchemaStore's master.

The fix dynamically resolves the fork owner via gh api user and passes --head <owner>:<branch> explicitly. It also branches from upstream/master instead of the fork's potentially stale default branch, ensuring conflict-free PRs. Also adds the missing changelog fragment for #3826.

@gaborbernat gaborbernat added the type:internal should have no impact on the user (refactoring, infrastructure, tools, etc.) label Feb 25, 2026
@gaborbernat gaborbernat changed the title 📝 docs(changelog): add entry for #3826 👷 ci(schemastore): add changelog for #3826 Feb 25, 2026
@gaborbernat gaborbernat changed the title 👷 ci(schemastore): add changelog for #3826 👷 ci(schemastore): fix PR creation for fork Feb 25, 2026
@gaborbernat gaborbernat merged commit 522a820 into tox-dev:main Feb 25, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided type:internal should have no impact on the user (refactoring, infrastructure, tools, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant