Path: blob/master/GitHub/GitHub_Close_issue.ipynb
2973 views
Kernel: Python 3
GitHub - Close issue
Tags: #github #issues #update #rest #api #snippet #operations
Author: Florent Ravenel
Last update: 2023-05-26 (Created: 2022-03-18)
Description: This notebook explains how to close an issue on GitHub using the REST API.
References:
Input
Import libraries
In [ ]:
Setup Variables
token
: GitHub tokenowner
: owner of the repositoryrepo
: name of the repositoryissue_number
: number of the issuestate_reason
: The reason for the issue closed. Can be one of: completed, not_planned
In [ ]:
Model
Update issue
This function updates an issue on GitHub using the REST API.
In [ ]:
Output
Display Result
In [ ]: