Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
jupyter-naas
GitHub Repository: jupyter-naas/awesome-notebooks
Path: blob/master/GitHub/GitHub_Create_issue.ipynb
2973 views
Kernel: Python 3

GitHub.png

GitHub - Create issue

Give Feedback | Bug report

Tags: #github #productivity #code #operations #snippet

Last update: 2023-04-12 (Created: 2022-03-18)

Description: This notebook provides instructions on how to create an issue on GitHub.

Input

Import library

from github import Github

Enter repository path and token

repo_name = "**********" # Repository path git_key = "**********" # Settings/Developer settings assignee = "**********" # Asignee name (optional) or put "" issue_title = "This is a another issue" # Issue title issue_description = "This is another issue body created using api" # Issue description

Model

Establishing connection

g = Github(git_key)

Output

Creating github issue with assignee

repo = g.get_repo(repo_name) repo.create_issue(title=issue_title, body=issue_description, assignee=assignee)