Skip to content

Commit 473c6a5

Browse files
Merge pull request #976 from PeterDaveHello/update-auto-PR-comment
Mention our Docker team in auto PR body as notification
2 parents 554ec88 + 738e904 commit 473c6a5

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

ACTIVE_MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
chorrell
2+
LaurentGoderre
3+
pesho
4+
PeterDaveHello
5+
SimenB
6+
Starefossen

generate-stackbrew-pr.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ function message() {
7474
function pr_payload() {
7575
local escaped_message
7676
local body
77+
local maintainers
7778

7879
escaped_message="$(echo "${COMMIT_MESSAGE}" | sed -E -e "s/\"/\\\\\"/g")"
7980

@@ -83,12 +84,16 @@ function pr_payload() {
8384
body="Commit: https://github.com/${DOCKER_SLUG}/compare/${COMMIT_RANGE}"
8485
fi
8586

86-
echo "{
87-
\"title\": \"Node: ${escaped_message}\",
88-
\"body\" : \"${body}\",
89-
\"head\" : \"${GITHUB_USERNAME}:${BRANCH_NAME}\",
87+
for maintainer in $(xargs < ACTIVE_MAINTAINERS); do
88+
maintainers="$maintainers @$maintainer"
89+
done
90+
91+
printf "{
92+
\"title\": \"Node: %s\",
93+
\"body\" : \"%s.\n cc %s\",
94+
\"head\" : \"%s\",
9095
\"base\": \"master\"
91-
}"
96+
}" "${escaped_message}" "${body}" "${maintainers}" "${GITHUB_USERNAME}:${BRANCH_NAME}"
9297
}
9398

9499
function comment_payload() {

0 commit comments

Comments
 (0)