Skip to content

Conversation

@robtaylor
Copy link

Summary

This PR adds support for push events in agent/automation mode, enabling CI integration testing of skills without requiring manual workflow_dispatch triggers.

Changes

  • Import PushEvent type from @octokit/webhooks-types
  • Add "push" to AUTOMATION_EVENT_NAMES constant
  • Add PushEvent to AutomationContext payload union type
  • Add case handler for "push" events in parseGitHubContext

Use Case

This enables reusable CI workflows (like skill testing) to run on push events to main branches, not just on PRs or manual triggers. For example:

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  test:
    uses: anthropics/skills/.github/workflows/skill-ci.yml@main
    with:
      run_claude_code_test: true
    secrets: inherit

Without this change, the action throws Error: Unsupported event type: push.

🤖 Generated with Claude Code

This allows the claude-code-action to be used with push events,
enabling CI integration testing of skills without requiring
manual workflow_dispatch triggers.

Changes:
- Import PushEvent type from @octokit/webhooks-types
- Add "push" to AUTOMATION_EVENT_NAMES
- Add PushEvent to AutomationContext payload union
- Add case handler for "push" events in parseGitHubContext

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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