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