- Print
- PDF
GitHub event trigger
- Print
- PDF
Available in VPC
You can create GitHub event triggers in the NAVER Cloud Platform console's Cloud Functions > Trigger. GitHub event triggers provide the feature to use events supported by GitHub as triggers for the users' code management, deployment, and issue handling. This characteristic makes GitHub event triggers useful for automation of code configuration management, deployment, issue handling, etc. It's possible to update automatically added code or start deployment tasks based on a GitHub event. The number of ways it can be utilized also increases if you use it in connection with CI tools.
Refer to Running action or trigger and Trigger for how to run and monitor triggers that have been created.
Create triggers
GitHub event trigger is the feature where you add the list of events registered by a user to GitHub, and call the trigger when the event occurs. Various events on registered repositories are currently available in registerable formats.
If you select the GitHub type and enter additional information when you create the trigger, then you can use the trigger to receive and process events for a registered repository. Content of the event passed to the trigger is sent in the form of runtime parameter for an action connected to the trigger.
Execution options
Setting execution options for GitHub event triggers is done in the console's GitHub information settings.
- GitHub user name: user name registered on GitHub
- GitHub access token: It's for user authentication and can be issued from the GitHub > Settings > Developer settings > Personal access tokens menu.
- Appropriate OAuth permission needs to be set up according to the event to be used when getting the token issued.
- Appropriate OAuth permission needs to be set up according to the event to be used when getting the token issued.
- GitHub repository: Specify the repository to request events about issues, code, Git jobs, etc. Enter the group and repository name in the form of
ncpSampleOrganization/CloudFunctionsRepository
, rather than the entire address for the repository.
- Select event: Click and select the event to use.
GitHub event information
You can get events supported by Cloud Functions among GitHub events delivered as GitHub triggers. The information for GitHub events is as follows.
- Event definition: GitHub Docs > About webhooks
- Event and response types: GitHub Docs > Webhook events and payloads