Update to avoid dupe comments

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

@ -43,8 +43,9 @@ for tgt in targets:
print(f"Total votes against resolution: {str(total_votes_against)}") print(f"Total votes against resolution: {str(total_votes_against)}")
if (total_votes_for/len(core_team_logins)) > 0.5: if (total_votes_for/len(core_team_logins)) > 0.5:
print("This RFC should be passed. Adding comment.") print("This RFC should be passed. Adding comment.")
issue.create_comment("This resolution has enough votes from Core Team mebers to be considered passed. Please close the issue once appropriate actions have been taken. - Beep Boop (I'm a bot, and this action was performed automagically)") if not issue.locked:
issue.lock("resolved") issue.create_comment("This resolution has enough votes from Core Team mebers to be considered passed. Please close the issue once appropriate actions have been taken. - Beep Boop (I'm a bot, and this action was performed automagically)")
issue.lock("resolved")
rfcs_passed += 1 rfcs_passed += 1
status_text += f"* Suggested that {issue.title} be acted upon, as it has passed.\n" status_text += f"* Suggested that {issue.title} be acted upon, as it has passed.\n"
else: else:

Loading…
Cancel
Save