Skip to content

fix: replace claude-code-action with direct Anthropic API call#10

Merged
yanas merged 1 commit into
masterfrom
fix/pr-classify-use-curl
Mar 12, 2026
Merged

fix: replace claude-code-action with direct Anthropic API call#10
yanas merged 1 commit into
masterfrom
fix/pr-classify-use-curl

Conversation

@yanas

@yanas yanas commented Mar 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replaces claude-code-action@beta with a plain curl call to the Anthropic API
  • Fixes labels never being applied (the action didn't expose its response as a step output)
  • Eliminates the unwanted bot comments ("Claude finished @yanas's task", raw JSON)
  • Removes id-token: write permission (no longer needed)
  • Consolidates plain label names (no type:/platform: prefixes)

Test plan

  • Merge and verify that the next PR gets a label applied and a clean > [!NOTE] comment with no bot chatter

🤖 Generated with Claude Code

claude-code-action@beta is designed for interactive PR tasks and does
not expose its response as a step output, so labels were never applied.
Using curl directly gives full control over the response and eliminates
the unwanted bot comments.

Also removes id-token: write permission (no longer needed) and fixes
label names to use plain format without type:/platform: prefixes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Warning

PR classification could not determine the PR type. Please apply a type label manually.

@yanas yanas merged commit 5832f46 into master Mar 12, 2026
1 check passed
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