Comment on GitHub PR with site changes

This commit is contained in:
Adam Harrison committed 2016-09-29 11:45:28 +01:00
1 parent 2380018457
commit e1063944f6
2 files changed
+35

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ rm -f "$STATE" && touch "$STATE"
if [ -n "$CI_PULL_REQUEST" -a "$CI_PULL_REQUEST" = "$CI_PULL_REQUESTS" ] ; then
if PR=$(echo "$CI_PULL_REQUEST" | grep -oP '(?<=^https://github.com/weaveworks/weave/pull/)[0-9]+$') ; then
echo "GH_PR=$PR" >> "$STATE"
if FILES=$(curl -s https://api.github.com/repos/weaveworks/weave/pulls/$PR/files | jq -r '.[]|.filename') ; then
echo "PR touches [$FILES]"
if ! echo "$FILES" | grep -v ^site/ ; then