Update bot.py

Signed-off-by: Matt C <matthew.compton@mymail.champlain.edu>
pull/1/head
Matt C 2 years ago committed by GitHub
parent 85c5f46f2d
commit c37055509a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,16 +2,19 @@ from github import Github
g = Github(open(".access_token").read().strip()) g = Github(open(".access_token").read().strip())
repo = g.get_repo('crystal-linux/.github') targets = ['crystal-linux/.github', 'crystal-linux-packages/.github']
core_team = g.get_organization('crystal-linux').get_team_by_slug('core-team') for tgt in targets:
core_team_members = core_team.get_members() repo = g.get_repo(tgt)
core_team_logins = []
for member in core_team_members: core_team = g.get_organization('crystal-linux').get_team_by_slug('core-team')
core_team_members = core_team.get_members()
core_team_logins = []
for member in core_team_members:
core_team_logins.append(member.login) core_team_logins.append(member.login)
for issue in repo.get_issues(): for issue in repo.get_issues():
if 'RFC' in issue.title: if 'RFC' in issue.title:
print(f"Working on: {issue.title}") print(f"Working on: {issue.title}")
all_reactions = issue.get_reactions() all_reactions = issue.get_reactions()

Loading…
Cancel
Save