Note
See the official GitHub API v2 documentation for issues.
Issue container.
URL for diff output associated with this issue.
The position of this issue in a list.
State of this issue. Can be open or closed.
URL for format-patch associated with this issue.
Number of votes for this issue.
The full description for this issue.
URL for the issue’s related pull request.
The issue number (unique for project).
The date when this issue was last updated.
The date this issue was created.
Labels associated with this issue.
The date this issue was closed.
Issue title.
The username of the user that created this issue.
Comment container.
The comment id.
The date this comment was created.
The date when this comment was last updated.
The full text of this comment.
The username of the user that created this comment.
GitHub API issues functionality.
Add a label to an issue.
param str project: GitHub project param int number: issue number in the GitHub database param str label: label to attach to issue
Warning
Requires authentication
Close an issue.
param str project: GitHub project param int number: issue number in the GitHub database
Warning
Requires authentication
Comment on an issue.
param str project: GitHub project param int number: issue number in the GitHub database param str comment: comment to attach to issue
Warning
Requires authentication
View comments on an issue.
Parameters: | project (str) – GitHub project |
---|
Edit an existing issue.
New in version 0.3.0.
param str project: GitHub project param int number: issue number in the GitHub database param str title: title for issue param str body: body for issue
Warning
Requires authentication
Get all issues for project with label.
New in version 0.3.0.
Parameters: |
---|
Get all labels for project.
New in version 0.3.0.
Parameters: | project (str) – GitHub project |
---|
Open up a new issue.
param str project: GitHub project param str title: title for issue param str body: body for issue
Warning
Requires authentication
Remove an existing label from an issue.
param str project: GitHub project param int number: issue number in the GitHub database param str label: label to remove from issue
Warning
Requires authentication
Reopen a closed issue.
New in version 0.3.0.
param str project: GitHub project param int number: issue number in the GitHub database
Warning
Requires authentication
>>> github.issues.list("ask/chishop", state="open")
>>> github.issues.list("ask/chishop", state="closed")
>>> issues = github.issues.search("ask/chishop", "version twice")
>>> issues[0].title
'Upload hangs on attempted second file.'
>>> github.issues.search("ask/chishop", term="authorization",
... state="closed")
>>> issue = github.issues.show("ask/chishop", 1)
>>> issue.title
'Should not be able to upload same version twice.'
>>> comments = github.issues.comments("ask/chishop", 5)
>>> comments[0].body
'Fix merged into /ask branch.'
>>> new_issue = github.issues.open("ask/chishop", title="New bug",
... body="This is a test bug")
>>> new_issue.number
2
>>> github.issues.close("ask/chishop", new_issue.number)
>>> github.issues.reopen("ask/chishop", new_issue.number)
>>> github.issues.list_labels("ask/chisop")
[u'TODO', u'ask']
>>> github.issues.list_by_label("ask/chishop", "TODO")
[<Issue: Should not be able to upload same version twice.>]
>>> github.issues.add_label("ask/chishop", 2, "important")
>>> github.issues.remove_label("ask/chishop", 2, "important")
>>> github.issues.edit("ask/chishop", 3, title="New title",
... body="New body")