Skip to content

Conversation

@hotdogc1017
Copy link

@hotdogc1017 hotdogc1017 commented Aug 4, 2025

fix: #271

Description

When updating a comment, a PR link is added. This step compares the branch name created by Claude with the remote repository. However, the problem is that the locally created branch has not been pushed to the remote repository, which causes the comparison to fail. A suspected cause is that in this PR #244, the branch update operation was delayed, while the action to add the PR link occurs before it.

Additionally, the naming of the checkAndCommitOrDeleteBranch function seems problematic. The name is misleading because it implies that the function will automatically commit a new local branch. However, in reality, the function only processes its logic when the remote branch already exists, which is a clear contradiction.

Solution

Assume the PR link is already included in Claude's response, then just skip the manual PR creation step in the action. This is a minimal change and can be easily rolled back even if it doesn't take effect.

@hotdogc1017 hotdogc1017 changed the title fix: Error comparing non-existent remote branch (#271) fix: Error comparing non-existent remote branch Aug 4, 2025
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.

在 run jobs 的时候出现错误提示

1 participant