Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 10, 2026

When the workflow checks out a commit instead of a branch (e.g., during release events), create-pull-request requires an explicit base parameter to determine the target branch for the PR.

Changes

  • Added base: ${{ github.event.repository.default_branch }} to the create-pull-request step in .github/workflows/reusable-check-branch-alias.yml

This value is already used throughout other workflows in this repository (reusable-code-quality.yml, reusable-regenerate-readme.yml, reusable-testing.yml) for similar purposes.

Original prompt

This section details on the original issue you should resolve

<issue_title>Pass default branch to create-pull-request in check-branch-alias workflow</issue_title>
<issue_description>When the repository is checked out on a commit instead of a branch, the 'base' input must be supplied.

This should be available via github.event.repository.default_branch</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot AI changed the title [WIP] Pass default branch to create-pull-request in check-branch-alias workflow Pass default branch to create-pull-request in check-branch-alias workflow Jan 10, 2026
Copilot AI requested a review from swissspidy January 10, 2026 10:39
@swissspidy swissspidy marked this pull request as ready for review January 10, 2026 10:43
@swissspidy swissspidy requested a review from a team as a code owner January 10, 2026 10:43
@swissspidy swissspidy merged commit beead1b into main Jan 10, 2026
11 checks passed
@swissspidy swissspidy deleted the copilot/pass-default-branch-to-workflow branch January 10, 2026 10:47
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.

Pass default branch to create-pull-request in check-branch-alias workflow

2 participants