We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab70fc1 commit 0c5dda3Copy full SHA for 0c5dda3
src/teamwork.sh
@@ -61,13 +61,16 @@ teamwork::pull_request_review_submitted() {
61
local -r review_state=$(github::get_review_state)
62
local -r comment=$(github::get_review_comment)
63
64
- teamwork::add_comment "
65
- **$user** submitted a review to the PR: **$pr_title**
66
- [$pr_url]($pr_url)
67
- ---
68
- Review: **$review_state**
69
- Comment: **$comment**
70
- "
+ # Only add a message if the PR has been approved
+ if [ "$review_state" == "approved" ]; then
+ teamwork::add_comment "
+**$user** submitted a review to the PR: **$pr_title**
+[$pr_url]($pr_url)
+---
+Review: **$review_state**
71
+$comment
72
+"
73
+ fi
74
}
75
76
teamwork::pull_request_review_dismissed() {
0 commit comments