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,6 +43,7 @@ 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.")
if not issue.locked:
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.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") issue.lock("resolved")
rfcs_passed += 1 rfcs_passed += 1

Loading…
Cancel
Save