@@ -36,7 +36,7 @@ teamwork::add_tag() {
3636 local -r tag_name=$1
3737
3838 if [ " $ENV " == " test" ]; then
39- log::message " Test - Simulate request. Task ID: $TEAMWORK_TASK_ID - Tag: ${tag_name// \" / } "
39+ log::message " Test - Simulate request. Task ID: $TEAMWORK_TASK_ID - Tag Added : ${tag_name// \" / } "
4040 return
4141 fi
4242
@@ -54,7 +54,7 @@ teamwork::remove_tag() {
5454 local -r tag_name=$1
5555
5656 if [ " $ENV " == " test" ]; then
57- log::message " Test - Simulate request. Task ID: $TEAMWORK_TASK_ID - Tag: ${tag_name// \" / } "
57+ log::message " Test - Simulate request. Task ID: $TEAMWORK_TASK_ID - Tag Removed : ${tag_name// \" / } "
5858 return
5959 fi
6060
@@ -80,7 +80,7 @@ teamwork::pull_request_opened() {
8080**$user ** opened a PR: **$pr_title **
8181[$pr_url ]($pr_url )
8282---
83- ${pr_body//###/#### }
83+ ${pr_body//###/#### } \n
8484---
8585
8686🔢 ${pr_stats_array[0]} commits / 📝 ${pr_stats_array[1]} files updated / ${pr_stats_array[2]} additions / ${pr_stats_array[3]} deletions
@@ -102,12 +102,14 @@ teamwork::pull_request_closed() {
102102"
103103 teamwork::add_tag " PR Merged"
104104 teamwork::remove_tag " PR Open"
105+ teamwork::remove_tag " PR Approved"
105106 else
106107 teamwork::add_comment "
107108**$user ** closed a PR without merging: **$pr_title **
108109[$pr_url ]($pr_url )
109110"
110111 teamwork::remove_tag " PR Open"
112+ teamwork::remove_tag " PR Approved"
111113 fi
112114}
113115
@@ -129,6 +131,7 @@ teamwork::pull_request_review_submitted() {
129131Review: **$review_state **
130132$comment
131133"
134+ teamwork::add_tag " PR Approved"
132135 fi
133136}
134137
0 commit comments