From 9f2b0ea38ee180343615546cc6135d4613f38274 Mon Sep 17 00:00:00 2001 From: sarina Date: Fri, 23 Aug 2024 13:51:23 -0400 Subject: [PATCH 1/2] feat! Turn off survey link for merged/closed PRs --- openedx_webhooks/tasks/pr_tracking.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openedx_webhooks/tasks/pr_tracking.py b/openedx_webhooks/tasks/pr_tracking.py index 75875098..2a43ad3e 100644 --- a/openedx_webhooks/tasks/pr_tracking.py +++ b/openedx_webhooks/tasks/pr_tracking.py @@ -291,8 +291,9 @@ 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 +# 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) From 38e581afd5937d1f7471d400fc2ab81dce3bcfb2 Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Mon, 26 Aug 2024 20:14:31 -0400 Subject: [PATCH 2/2] Update openedx_webhooks/tasks/pr_tracking.py Co-authored-by: Kyle McCormick --- openedx_webhooks/tasks/pr_tracking.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openedx_webhooks/tasks/pr_tracking.py b/openedx_webhooks/tasks/pr_tracking.py index 2a43ad3e..8b245b2a 100644 --- a/openedx_webhooks/tasks/pr_tracking.py +++ b/openedx_webhooks/tasks/pr_tracking.py @@ -292,6 +292,7 @@ def desired_support_state(pr: PrDict) -> PrDesiredInfo: desired.bot_comments_to_remove.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)