Skip to content

Commit f83941c

Browse files
Add more information to the comments
1 parent 32e0806 commit f83941c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/teamwork.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ teamwork::pull_request_synchronize() {
4545

4646
teamwork::pull_request_closed() {
4747
local -r user=$(github::get_sender_user)
48+
local -r pr_url=$(github::get_pr_url)
49+
local -r pr_title=$(github::get_pr_title)
50+
4851
teamwork::add_comment "
4952
**$user** closed a PR: **$pr_title**
5053
[$pr_url]($pr_url)
@@ -53,6 +56,9 @@ teamwork::pull_request_closed() {
5356

5457
teamwork::pull_request_review_submitted() {
5558
local -r user=$(github::get_sender_user)
59+
local -r pr_url=$(github::get_pr_url)
60+
local -r pr_title=$(github::get_pr_title)
61+
5662
teamwork::add_comment "
5763
**$user** submited a review to the PR: **$pr_title**
5864
[$pr_url]($pr_url)

0 commit comments

Comments
 (0)