Skip to content

Conversation

@Ansonhkg
Copy link
Collaborator

WHAT

Checkout exact workflow_run commit via head_sha

Copilot AI review requested due to automatic review settings October 10, 2025 13:58
@Ansonhkg Ansonhkg merged commit 0eb64a1 into master Oct 10, 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 Changesets reset issues in the CI release workflow by using exact commit references and adding branch management steps.

  • Removes repository name check from the workflow condition
  • Changes checkout reference from head branch name to head SHA for exact commit targeting
  • Replaces debug output step with enhanced diagnostics and adds failure diagnostics
  • Adds branch reset logic to clean up existing changeset release branches

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

echo "Resolved branch tip SHA: $TIP_SHA"
echo "sha=$TIP_SHA" >> "$GITHUB_OUTPUT"
- name: Reset release branch base
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

The step name 'Reset release branch base' is misleading as the step actually deletes a remote changeset release branch. Consider renaming to 'Clean up existing changeset release branch' or 'Delete previous changeset release branch' for clarity.

Suggested change
- name: Reset release branch base
- name: Delete previous changeset release branch

Copilot uses AI. Check for mistakes.
version: pnpm changeset version
publish: pnpm changeset publish --access public
commit: 'chore(release): version packages'
title: 'chore(release): version packages'
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

The new commitMode: github parameter should be documented with a comment explaining why this mode is used instead of the default, especially in the context of fixing the Changesets reset issue mentioned in the PR title.

Suggested change
title: 'chore(release): version packages'
title: 'chore(release): version packages'
# Use commitMode: github to avoid Changesets reset issue (see PR title for context).

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.

2 participants