Skip to content

Commit d49b92c

Browse files
authored
Merge branch 'master' into migrate-boards-to-workflows
2 parents cc9e569 + fd4c7d6 commit d49b92c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
```
5858

5959
## Usage
60-
When creating a new PR, write in the description of the PR the URL of the task. The action will automatically add a comment in the task. Optionally, you may choose for a lightweight comment that will only include the PR URL and the user that performed the action, to enable this option set the `LIGHTWEIGHT_COMMENT` input to `true`.
60+
When creating a new PR, write in the description of the PR the URL of the task. The action will automatically add a comment in the task. Optionally, you may choose for a lightweight comment that will only include the PR title, URL and the user that performed the action, to enable this option set the `LIGHTWEIGHT_COMMENT` input to `true`.
6161

6262
Please note, the comment will be created in Teamwork under the account you have attached to this action. If the API key of the user you are using does not have permissions to access certain projects, the comment will not be created.
6363

src/teamwork.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ teamwork::pull_request_opened() {
149149
IFS=" " read -r -a pr_stats_array <<< "$pr_stats"
150150

151151
if [ "$LIGHTWEIGHT_COMMENT" == "true" ]; then
152-
teamwork::add_comment "[PR]($pr_url) opened by $user"
152+
teamwork::add_comment "PR [**\"$pr_title\"**]($pr_url) opened by **$user**"
153153
else
154154
teamwork::add_comment "
155155
**$user** opened a PR: **$pr_title**
@@ -179,7 +179,7 @@ teamwork::pull_request_closed() {
179179

180180
if [ "$pr_merged" == "true" ]; then
181181
if [ "$LIGHTWEIGHT_COMMENT" == "true" ]; then
182-
teamwork::add_comment "[PR]($pr_url) merged by $user"
182+
teamwork::add_comment "PR [**\"$pr_title\"**]($pr_url) merged by **$user**"
183183
else
184184
teamwork::add_comment "
185185
**$user** merged a PR: **$pr_title**
@@ -192,7 +192,7 @@ teamwork::pull_request_closed() {
192192
teamwork::move_task_to_stage "$WORKFLOW_STAGE_MERGED"
193193
else
194194
if [ "$LIGHTWEIGHT_COMMENT" == "true" ]; then
195-
teamwork::add_comment "[PR]($pr_url) closed without merging by $user"
195+
teamwork::add_comment "PR [**\"$pr_title\"**]($pr_url) closed without merging by **$user**"
196196
else
197197
teamwork::add_comment "
198198
**$user** closed a PR without merging: **$pr_title**
@@ -215,7 +215,7 @@ teamwork::pull_request_review_submitted() {
215215
# Only add a message if the PR has been approved
216216
if [ "$review_state" == "approved" ]; then
217217
if [ "$LIGHTWEIGHT_COMMENT" == "true" ]; then
218-
teamwork::add_comment "[PR]($pr_url) approved by $user"
218+
teamwork::add_comment "PR [**\"$pr_title\"**]($pr_url) approved by **$user**"
219219
else
220220
teamwork::add_comment "
221221
**$user** submitted a review to the PR: **$pr_title**

0 commit comments

Comments
 (0)