Overview
The GitHub Subscriptions API allows you to subscribe channels to GitHub repository events. When events occur (like pushes, pull requests, or issues), notifications are automatically posted to the subscribed channel. Your organization must have GitHub connected before creating subscriptions.Supported Event Types
The following GitHub events can be subscribed to:push- Code pushes to repositorypull_request- Pull request opened, closed, merged, etc.issues- Issues created, updated, closed, etc.release- New releases publisheddeployment_status- Deployment status changesworkflow_run- GitHub Actions workflow runsstar- Repository starred or unstarredmilestone- Milestones created, updated, or completed
githubSubscription.create
Subscribe a channel to a GitHub repository’s events.Channel to receive GitHub notifications
GitHub’s numeric repository ID (stable across renames)
Repository full name in “owner/repo” format (for display)
Repository owner (user or organization)
Repository name
Array of event types to subscribe to
Optional branch filter for push events (e.g., “main”, null = all branches)
The created subscription
Transaction ID for optimistic updates
ChannelNotFoundError- Channel doesn’t existGitHubNotConnectedError- Organization hasn’t connected GitHubGitHubSubscriptionExistsError- Channel is already subscribed to this repositoryUnauthorizedError- User is not authorizedInternalServerError- Server error
githubSubscription.list
List all GitHub subscriptions for a specific channel.Channel identifier
Array of subscriptions for the channel
ChannelNotFoundError- Channel doesn’t existUnauthorizedError- User is not authorizedInternalServerError- Server error
githubSubscription.listByOrganization
List all GitHub subscriptions across all channels in your organization. Useful for organization-level integration settings.Array of all subscriptions in the organization
UnauthorizedError- User is not authenticatedInternalServerError- Server error
githubSubscription.update
Update a GitHub subscription’s settings.Subscription identifier
New array of event types to subscribe to
New branch filter (null = all branches)
Enable or disable the subscription
Updated subscription object
Transaction ID for optimistic updates
GitHubSubscriptionNotFoundError- Subscription doesn’t existUnauthorizedError- User is not authorizedInternalServerError- Server error
githubSubscription.delete
Delete a GitHub subscription (soft delete). The channel will stop receiving notifications from the repository.Subscription identifier
Transaction ID for optimistic updates
GitHubSubscriptionNotFoundError- Subscription doesn’t existUnauthorizedError- User is not authorizedInternalServerError- Server error