Skip to content

fix(ci): discard local changes before branch checkout in tagpr#42

Merged
k2tzumi merged 1 commit into
masterfrom
fix/tagpr-checkout-conflict
Jan 27, 2026
Merged

fix(ci): discard local changes before branch checkout in tagpr#42
k2tzumi merged 1 commit into
masterfrom
fix/tagpr-checkout-conflict

Conversation

@k2tzumi

@k2tzumi k2tzumi commented Jan 27, 2026

Copy link
Copy Markdown
Owner

Summary

Fix git checkout error in tagpr workflow caused by uncommitted changes.

Problem

The tagpr workflow fails with the following error when trying to checkout the PR branch:

  • npm ci and npm install simple-git modify package.json and package-lock.json
  • These uncommitted changes cause git checkout to fail

Solution

Add a step to discard local changes (git checkout -- .) before switching branches.


🤖 Generated with Claude Code

npm ci and npm install simple-git modify package.json and
package-lock.json, causing git checkout to fail when switching
to the PR branch. This adds a step to discard those changes
before the checkout operation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@k2tzumi k2tzumi merged commit b6a848d into master Jan 27, 2026
3 checks passed
@github-actions github-actions Bot mentioned this pull request Jan 27, 2026
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