Configuration

Event source
Pull request triggers need an event source that delivers PR events from your Git provider to Ona. There are two options:| Source | When to use |
|---|---|
| GitHub | You use GitHub.com and have the GitHub integration enabled. No extra setup is required. Ona receives PR events through the App. |
| Webhook | You use GitLab or Bitbucket Cloud, or you prefer not to enable the GitHub integration. You create a webhook in Ona and register it in your Git provider. |
GitHub
If your organization has the GitHub integration enabled, select GitHub as the event source. Ona receives PR events directly through the App.Webhook
If your organization has webhooks configured, a dropdown appears instead, letting you select an existing webhook or configure a new one.Runs on
- Projects (recommended): select projects. The Automation monitors all repositories within them.
- Repositories: use a search query to filter specific repositories.
Triggers on PR
| Event | When it fires |
|---|---|
| Opened | New PR created |
| Updated | New commits pushed |
| Ready for review | Draft marked ready |
| Review requested | Reviewer assigned for review |
| Approved | Reviewer approves |
| Merged | PR merged |
| Closed | PR closed without merge |
Next steps
- GitHub: enable the GitHub integration for webhook-free PR triggers
- Webhooks: create and manage webhook endpoints
- Run an Automation
- Manual triggers
- Time-based triggers