summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml4
-rwxr-xr-x.travis/labeler.sh5
2 files changed, 4 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 930ee94792..c382017ee6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -48,7 +48,7 @@ jobs:
name: Create release
install: sudo apt update -y && sudo apt-get install -y gnupg libcap2-bin zlib1g-dev uuid-dev fakeroot python-pip && sudo apt install -y --only-upgrade docker-ce && docker info
before_script: sudo pip install git-semver
- script: ".travis/releaser.sh"
+ script: ".travis/releaser.sh && .travis/labeler.sh" # labeler should be replaced with GitHub Actions when they hit GA
git:
depth: false
@@ -75,8 +75,6 @@ jobs:
env: COMMIT_AND_PUSH=1
git:
depth: false
- - name: labeler # This job should be replaced with GitHub Actions when they hit GA
- script: ".travis/labeler.sh"
notifications:
webhooks: https://app.fossa.io/hooks/travisci
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