Skip to content

Commit 3120753

Browse files
authored
Merge pull request #5 from 9thCO/richard/let-the-mods-begin
fix: proper checking to include comment
2 parents 62b1aea + 9831179 commit 3120753

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/teamwork.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ teamwork::pull_request_review_submitted() {
203203
---
204204
205205
Review: **$review_state ✅**"
206-
if [ -z "$comment" ]; then
206+
if [ -n "$comment" ]; then
207207
teamwork::add_comment "Comment: $comment"
208208
fi
209209
teamwork::add_tag "PR Approved"
@@ -219,7 +219,7 @@ fi
219219
---
220220
221221
Review: **$review_state 😔**"
222-
if [ -z "$comment" ]; then
222+
if [ -n "$comment" ]; then
223223
teamwork::add_comment "Comment: $comment"
224224
fi
225225

@@ -232,7 +232,7 @@ fi
232232
teamwork::pull_request_review_dismissed() {
233233
local -r user=$(github::get_sender_user)
234234
teamwork::add_comment "Review dismissed by $user"
235-
if [ -z "$comment" ]; then
235+
if [ -n "$comment" ]; then
236236
teamwork::add_comment "Comment: $comment"
237237
fi
238238
teamwork::remove_tag "PR Open"

0 commit comments

Comments
 (0)