In [1]:
import github3
In [2]:
issue = github3.issue('sigmavirus24', 'github3.py', 187)
In [3]:
print(issue.comments_count)
In [4]:
for label in issue.labels():
print(label)
With an Issue object, we can retrieve a lot of information about the issue itself.
We can also retrieve an issue's text (or body) in three ways:
In [5]:
print(issue.body_html)
In [6]:
print(issue.body_text)
In [10]:
print(issue.body)
In [7]:
print(issue.html_url)
In [8]:
print('#{0.number}: "{0.title}" opened by {0.user}'.format(issue))
In [11]:
for comment in issue.comments():
print('"{0.body_text}" posted by {0.user}'.format(comment))
print('-' * 80)
As you can see above esacteksab originally thought of using IPython notebooks to document github3.py