Skip to content

Conversation

@Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Oct 9, 2025

WHAT

GitHub always executes the workflow file from the default branch (main)

@Copilot Copilot AI review requested due to automatic review settings October 9, 2025 16:27
@Ansonhkg Ansonhkg merged commit afdfb86 into master Oct 9, 2025
1 check passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a configuration issue in the GitHub Actions release workflow by explicitly setting the default branch for the changesets action. The change ensures the workflow uses the correct branch reference when GitHub executes the workflow from the default branch.

  • Added explicit branch configuration for the changesets action with fallback logic

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

id: changesets
uses: changesets/action@v1
with:
branch: ${{ github.event.workflow_run.head_branch || 'naga' }}
Copy link

Copilot AI Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hardcoded fallback branch 'naga' appears to be a magic value. Consider using a more descriptive name or making it configurable through repository variables/secrets to improve maintainability.

Copilot uses AI. Check for mistakes.
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