summaryrefslogtreecommitdiffstats
path: root/.travis
diff options
context:
space:
mode:
authorPaweł Krupa <pawel@krupa.net.pl>2018-11-29 22:50:56 +0200
committerGitHub <noreply@github.com>2018-11-29 22:50:56 +0200
commit9d5ec14343ea7ccf3834399f678c555cac300c54 (patch)
tree644f2de7548a0616ede3006576ec9cd8fa1d7ca3 /.travis
parentf0297f7876938dd87da7ccc1e73df30c2f04aac3 (diff)
automatic labeling of new features (#4792)
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/labeler.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/.travis/labeler.sh b/.travis/labeler.sh
index 47bf250a04..770b2f747c 100755
--- a/.travis/labeler.sh
+++ b/.travis/labeler.sh
@@ -19,13 +19,14 @@ LABELS_FILE=/tmp/exclude_labels
hub issue labels > $LABELS_FILE
for STATE in "open" "closed"; do
- for ISSUE in $(hub issue -f "%I %l%n" -s "$STATE" -d "$(date +%F -d '3 days ago')" | grep -v -f $LABELS_FILE); do
+ for ISSUE in $(hub issue -f "%I %l%n" -s "$STATE" -d "$(date +%F -d '1 day ago')" | grep -v -f $LABELS_FILE); do
echo "Processing $STATE issue no. $ISSUE"
URL="https://api.github.com/repos/netdata/netdata/issues/$ISSUE"
BODY="$(curl "${URL}" | jq .body 2>/dev/null)"
case "${BODY}" in
*"# Question summary"* ) curl -H "Authorization: token $GITHUB_TOKEN" -d '{"labels":["question"]}' -X PATCH "${URL}" ;;
- *"# Bug report summary"* ) curl -H "Authorization: token $GITHUB_TOKEN" -d '{"labels":["bug"]}' -X PATCH "${URL}" ;;
+ *"# Bug report summary"* ) curl -H "Authorization: token $GITHUB_TOKEN" -d '{"labels":["needs triage","bug"]}' -X PATCH "${URL}" ;;
+ *"# Feature idea summary"* ) curl -H "Authorization: token $GITHUB_TOKEN" -d '{"labels":["needs triage","feature request"]}' -X PATCH "${URL}" ;;
* ) curl -H "Authorization: token $GITHUB_TOKEN" -d '{"labels":["needs triage"]}' -X PATCH "${URL}" ;;
esac
done