Skip to content

Files

Latest commit

 

History

History
46 lines (28 loc) · 1.75 KB

GitHub_Create_issue.md

File metadata and controls

46 lines (28 loc) · 1.75 KB



Template request | Bug report | Generate Data Product

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

Author: Jeremy Ravenel

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)