Skip to content

Commit

Permalink
Added comment to PR when changes have been requested
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonOldenhof committed Feb 27, 2023
1 parent 34b6391 commit d0d8f0f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/teamwork.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down

0 comments on commit d0d8f0f

Please sign in to comment.