The GitHub Organization event trigger enables you to automate tasks based on events that occur in a GitHub organization. Once configured, the trigger listens for events in the specified organization and starts the downstream actions in the automation.
Overview
The GitHub Organization event trigger is based on events such as create, fork, issue comment, issues, label, pull request, pull request review, push, star, and watch that occur in a GitHub organization. Configure the trigger to subscribe to one or more events, and then add the required downstream actions in the automation. When you run the automation by using the Run with triggers option, the trigger connects to the GitHub API and starts listening for the subscribed events. When any subscribed events occurs, the trigger starts the downstream actions in the automation.
The GitHub web triggers parse the GitHub response data in a key-value pair payload with a dot (.) notation. You must follow the same format to build the expression for the Record variable. For example, to use the repository id as the expression, you must enter repository.id as the key. You can save this response data in single Record variable or multiple variables of any type and use this response data in any downstream actions in the automation. When automation runtime is complete, you can view the response data in the Bot run by trigger event type in the Audit log page. For more information about GitHub webhook events, see GitHub webook events and payload.
Settings
The following settings are available in GitHub Organization event trigger:
- Listen to event
- Specifies one or more organization-level events that start the automation. The trigger can
listen to the following events:
- Create
- Fork
- Issue comment
- Issues
- Label
- Pull request
- Pull request review
- Push
- Star
- Watch
- Organization name
- Specifies the name of the GitHub organization to monitor for events.
- Select the authentication type
- Specifies the authentication type. The GitHub
Organization event trigger uses a personal access
token for authentication. You can specify the personal access token using
one of the following options:
- Credential: Use the Choose button and follow the prompts in Pick a credential modal to select a personal access token available in the Credential Vault.
- Insecure string: Enter the personal access token directly in the text box. Entering the token as an insecure string exposes the credential in plain text.
- Response
- Specifies the option to save the trigger response
data for use in downstream actions. You can use one of the two options to
store the response data:
- Multiple variables: Create and specify
individual variables to store specific response data.
Use the Add variable mapping option to specify the key and corresponding variable type to store the specific response data.
- Record: Create and specify a record variable to store the entire response data.
- Multiple variables: Create and specify
individual variables to store specific response data.