0
使用github3.py,我想检索与拉取请求相关联的注释列表中的最后一个注释,然后在字符串中搜索它。我试过下面的代码,但是我得到错误TypeError: 'GitHubIterator' object does not support indexing
(没有索引,我可以检索评论列表)。TypeError:'GitHubIterator'对象不支持索引
for comments in list(GitAuth.repo.issue(prs.number).comments()[-1]):
if sign_off_regex_search_string.search(comments.body) and comments.user.login == githubID:
sign_off_by_author_search_string_found = 'True'
break