提交 df2023ec 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!14 fix lint warnings

Merge pull request !14 from Shinwell_Hu/master
......@@ -76,8 +76,8 @@ if __name__ == "__main__":
adv = Advisor()
PRs = adv.get_prs()
for pr in PRs:
users = []
users.append(pr["user"]["login"])
commenters = []
commenters.append(pr["user"]["login"])
last_update = pr["updated_at"]
print("URL: https://gitee.com/openeuler/community/pulls/{number}".format(number=pr["number"]))
print("Title: "+pr["title"])
......@@ -85,8 +85,8 @@ if __name__ == "__main__":
for c in comm:
#print("comment updated at:")
#pprint(datetime.strptime(c["updated_at"], adv.time_format))
users.append(c["user"]["login"])
tc = adv.filter_out_tc(users)
commenters.append(c["user"]["login"])
tc = adv.filter_out_tc(commenters)
print("Currently involved TC members: " + ", ".join(tc) + "\n")
......@@ -32,7 +32,7 @@ def get_sigs():
def get_spec(pkg, specfile):
url = specfile_url.template.format(package=pkg, specfile=specfile)
url = specfile_url_template.format(package=pkg, specfile=specfile)
req = urllib.request.Request(url=url, headers=headers)
u = urllib.request.urlopen(req)
return u.read().decode("utf-8")
......@@ -88,7 +88,7 @@ if __name__ == "__main__":
if line.startswith("%changelog"):
in_changelog = True
if line.startswith("*") and in_changelog:
m = re.match(".*\d\d\d\d (.*) .*", line)
m = re.match(r".*\d\d\d\d (.*) .*", line)
if m is None:
emails.add(line)
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册