You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>>repo=g.get_repo("PyGithub/PyGithub")
>>>repo.create_issue(title="This is a new issue")
Issue(title="This is a new issue", number=XXX)
Create issue with body
>>>repo=g.get_repo("PyGithub/PyGithub")
>>>repo.create_issue(title="This is a new issue", body="This is the issue body")
Issue(title="This is a new issue", number=XXX)
Create issue with labels
>>>repo=g.get_repo("PyGithub/PyGithub")
>>>label=repo.get_label("My Label")
>>>repo.create_issue(title="This is a new issue", labels=[label])
Issue(title="This is a new issue", number=XXX)
Create issue with assignee
>>>repo=g.get_repo("PyGithub/PyGithub")
>>>repo.create_issue(title="This is a new issue", assignee="github-username")
Issue(title="This is a new issue", number=XXX)
Create issue with milestone
>>>repo=g.get_repo("PyGithub/PyGithub")
>>>milestone=repo.create_milestone("New Issue Milestone")
>>>repo.create_issue(title="This is a new issue", milestone=milestone)
Issue(title="This is a new issue", number=XXX)