anthropics / anthropics/claude-code-action

Claude comments with link to wrong job and non existent branch

Open
#1,207 0 comments 0 reactions 0 assignees View on GitHub
bug p2 provider:1p
Dominant language
TypeScript
Stars
8.9k
Forks
2.1k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

**Describe the bug**
Claude commented on the issue as if it was completed. However, the job url is wrong, the branch it referenced doesn’t exist. And the code is lost.

**To Reproduce**
No idea how, only occurred once for me so far. But here is the URL to the issue:

https://github.com/gaarutyunov/mcp-anything/issues/84

**Expected behavior**
1. Create branch
2. Push everything there
3. post a comment with standard format for PR creation

**Screenshots**
Just open the issue in the repo.

**Workflow yml file**

https://github.com/gaarutyunov/mcp-anything/blob/main/.github/workflows/claude.yml

**API Provider**

[x] Anthropic First-Party API (default)
[ ] AWS Bedrock
[ ] GCP Vertex

**Additional context**
In my experience it’s better to make such actions deterministic. For example,
1. instruct claude to write the body of the PR or commit message into a file in the end of the task.
2. commit and push with git cli. If the file is empty, then just use default commit message.
3. create PR with gh cli. If the file with PR body is empty use default format.

Contributor guide

Open the contributing guide

Research direction

Start with .github/workflows/claude.yml and compare its behavior with the referenced issue #84. Trace how the workflow creates branches, pushes changes, and posts the job or pull-request comment; reproduce the failure if possible. Done means the referenced job URL and branch are valid and the expected standard comment is posted.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github, github-actions, typescript
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.