Path: blob/master/GitHub/GitHub_Create_Issue_from_Naas_Chat.ipynb
2973 views
GitHub - Create Issue from Naas Chat
Tags: #github #naas #naas_driver #command #chat
Author: Florent Ravenel
Last update: 2023-09-28 (Created: 2023-09-28)
Description: This notebook creates an issue on a given GitHub repository from Naas Chat.
Input
Import libraries
Setup variables
Mandatory
command_name
: The name of the command.message
: Message to be returnedrepo_url
: GitHub repo HTML urltitle
: Issue titledescription
: Issue descriptionassignee
: Issue assignee.label
: Issue label
Optional
body
: This variable stores the body to be send by the webhook.model
: The name of the model to be used for tokenization. Default is "gpt-3.5-turbo-16k".temperature
: The temperature parameter for the model. Default is 0.output_path
: The path where the JSON file should be saved. If not provided, it will be created from the plugin name.
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
Create New GitHub Issue
Output
Return JSON response
Response sent to the browser before displayed in Chat UI.