Skip to content

Conversation

@ModeEric
Copy link

Adds a new example showing how to trigger Claude manually via GitHub UI or API without creating an issue. This addresses the use case described in #764 where users want to run Claude on-demand.

Features:

  • Trigger via GitHub Actions UI with custom task input
  • Trigger via GitHub API for external integrations
  • Optional issue number input for additional context
  • Includes curl example for API usage

Adds a new example showing how to trigger Claude manually via GitHub UI
or API without creating an issue. This addresses the use case described
in anthropics#764 where users want to run Claude on-demand.

Features:
- Trigger via GitHub Actions UI with custom task input
- Trigger via GitHub API for external integrations
- Optional issue number input for additional context
- Includes curl example for API usage
ashwin-ant
ashwin-ant previously approved these changes Dec 28, 2025
Comment on lines +46 to +54
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
prompt: |
Repository: ${{ github.repository }}
Branch: ${{ github.ref_name }}
${{ github.event.inputs.issue_number && format('Related Issue: #{0}', github.event.inputs.issue_number) || '' }}

Task: ${{ github.event.inputs.task }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cool, should we also include some allowed tools to make this work out of the box a bit better?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good idea! I ran into similar issues with testing, so I updated the PR to allow some basic file editing tools so it works out of the box.

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.

2 participants