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())
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')
core_team_members = core_team.get_members()
core_team_logins = []
for tgt in targets:
repo = g.get_repo(tgt)
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)
for issue in repo.get_issues():
for issue in repo.get_issues():
if 'RFC' in issue.title:
print(f"Working on: {issue.title}")
all_reactions = issue.get_reactions()

Loading…
Cancel
Save