anthropics / anthropics/claude-code-action

Create PR from issue doesn't work - there's not anything to compare

Open
#26 10 comments 2 reactions 0 assignees View on GitHub
p2
Dominant language
TypeScript
Stars
8.9k
Forks
2.1k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

![Image](https://github.com/user-attachments/assets/bd952dab-91c9-43d2-83a2-e5c9c54cf08b)

Using this specific worfkflow
```yaml
name: Claude PR Assistant

on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]

jobs:
claude-code-action:
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && contains(github.event.issue.body, '@claude'))
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
issues: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Run Claude PR Action
uses: anthropics/claude-code-action@beta
with:
anthropic_api_key: ${{ secrets.CLAUDE_API_KEY }}
timeout_minutes: "60"
```

I can see reasoning, and what's exactly to change there, but PR part fails
I've got PR url on top, job is done and no link at the bottom

![Image](https://github.com/user-attachments/assets/71567067-fc86-43bb-98bb-dc26dfe9cb30)
Using official app for an installation

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.