From d0d8f0fb8b598a622e07506ee0644efda3bbc229 Mon Sep 17 00:00:00 2001 From: Brandon Oldenhof Date: Mon, 27 Feb 2023 17:32:44 +0100 Subject: [PATCH] Added comment to PR when changes have been requested --- src/teamwork.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/teamwork.sh b/src/teamwork.sh index 0240589c..15d0e3fc 100644 --- a/src/teamwork.sh +++ b/src/teamwork.sh @@ -213,6 +213,15 @@ teamwork::pull_request_review_submitted() { # Only add a message if the PR has been approved if [ "$review_state" != "approved" ]; then teamwork::move_task_to_column "$BOARD_COLUMN_FEEDBACK" + teamwork::add_comment " +**$user** requested changes to the PR: **$pr_title** +[$pr_url]($pr_url) + +--- + +Review: **$review_state** +$comment +" elif [ "$review_state" == "approved" ]; then teamwork::add_comment " **$user** submitted a review to the PR: **$pr_title**