Skip to content

Add webhook and event-triggered automation documentation#156

Draft
malhotra5 wants to merge 3 commits intomainfrom
docs/automation-webhook-event-triggers
Draft

Add webhook and event-triggered automation documentation#156
malhotra5 wants to merge 3 commits intomainfrom
docs/automation-webhook-event-triggers

Conversation

@malhotra5
Copy link
Copy Markdown
Contributor

  • A human has tested these changes.

Why

The automation skill documentation only covered cron-triggered automations. Users need documentation for:

  • Event-triggered automations (GitHub webhooks)
  • Custom webhook registration for non-GitHub services
  • JMESPath filter expressions for matching specific events
  • Practical examples for common use cases like responding to mentions or auto-reviewing labeled PRs

Summary

  • Add webhook endpoints to API reference table
  • Document event trigger types with full GitHub event keys (pull_request, issues, issue_comment, push, release, pull_request_review)
  • Add JMESPath filter expressions documentation with functions (glob, icontains, contains, regex, starts_with, ends_with)
  • Include practical examples for common use cases:
    • Respond to @openhands mentions in comments
    • Auto-review PRs with openhands label
    • Run tests on push to main
    • Triage new issues in org repos
  • Document custom webhook registration and management
  • Update README with quick start examples for event triggers
  • Update skill triggers to include webhook-related keywords

Issue Number

N/A

How to Test

Review the updated documentation files:

  • skills/automation/SKILL.md - Full API reference with webhook/event sections
  • skills/automation/README.md - Updated quick start with event trigger examples

Key examples to verify:

  1. Label exact match filter: contains(pull_request.labels[].name, 'openhands')
  2. Case-insensitive mention filter: icontains(comment.body, '@openhands')

Video/Screenshots

N/A - Documentation changes only

Notes

This PR was created by an AI assistant (OpenHands) to document the event-triggered automation capabilities that were already implemented in the automation service.

@malhotra5 can click here to continue refining the PR

- Add webhook endpoints to API reference table
- Document event trigger types with full GitHub event keys
- Add JMESPath filter expressions with functions (glob, icontains, contains, regex, etc.)
- Include practical examples for common use cases:
  - Respond to @OpenHands mentions in comments
  - Auto-review PRs with 'openhands' label
  - Run tests on push to main
  - Triage new issues in org repos
- Document custom webhook registration and management
- Update README with quick start examples for event triggers
- Update skill triggers to include webhook-related keywords

Co-authored-by: openhands <openhands@all-hands.dev>
- Replace Stripe with Linear as the primary custom webhook example
- Show how to pass your own webhook_secret from Linear
- Document Linear-specific fields (Linear-Signature header, type event key)
- Add examples for Issue create and high-priority update automations
- Add reference table for common service signature headers

Co-authored-by: openhands <openhands@all-hands.dev>
- Instruct agent to provide curl request, not execute it
- Ask user about webhook secret before creating request

Co-authored-by: openhands <openhands@all-hands.dev>
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