I am using github3 python API and I have this piece of code:
# Create new PR or get existing one
prs = [pr for pr in repo.iter_pulls(state="open", base="master",
head="rev_testrev2")]
if len(prs) > 0:
pr = prs[0]
else:
pr = repo.create_pull("My pull request", "master", "rev_testrev2",
"This is a test pull request")
comments = [c for c in pr.iter_comments()]
print str(comments)
In the PR, in github web page, I have several comments in the "conversation" tab and just 1 in "Files Changed" tab.
The code above only prints the comments made in the "Files Changed" tab, which are associated with a file changed on a commit.
How do I list or create a PR comment created in the "Conversation" tab?