Path: blob/master/GitHub/GitHub_Connect_from_Naas_Chat.ipynb
2973 views
GitHub - Connect from Naas Chat
Tags: #github #connect #naas #secret #command #chat
Author: Florent Ravenel
Last update: 2023-09-29 (Created: 2023-09-29)
Description: This notebook integrates your GitHub token into the Naas secret manager under the variable 'GITHUB_TOKEN' from Naas Chat and connect to your GitHub organization.
Input
Import libraries
Setup variables
github_token
: GitHub token to be add as secret.github_url
: GitHub organization html URL.body
: This variable stores the body to be send by the webhook.
Setup parameters
The webhook body will be injected below this cell when the webhook is triggered. Therefore, it is important to set up how you will handle the injected variable from the body in order to make your script work. To receive the body from the webhook, please ensure that this cell is tagged as "parameters".
Model
Connect to GitHub
Output
Return JSON response
Response sent to the browser before displayed in Chat UI.