Skip to content

Commit

Permalink
feat!: Turn off survey link for merged/closed PRs (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarina authored Aug 27, 2024
1 parent 9f05df6 commit 7f7e8da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openedx_webhooks/tasks/pr_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,10 @@ def desired_support_state(pr: PrDict) -> PrDesiredInfo:
if state == "reopened":
desired.bot_comments_to_remove.add(BotComment.SURVEY)

if state in ["closed", "merged"]:
desired.bot_comments.add(BotComment.SURVEY)
# # temp: Disable survey link on pull requests
# # https://github.com/openedx/openedx-webhooks/issues/259
# if state in ["closed", "merged"]:
# desired.bot_comments.add(BotComment.SURVEY)

if desired.is_refused and state not in ["closed", "merged"]:
desired.bot_comments.add(BotComment.NO_CONTRIBUTIONS)
Expand Down

0 comments on commit 7f7e8da

Please sign in to comment.