summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaweł Krupa <pawel@krupa.net.pl>2019-05-22 23:05:12 +0200
committerPaul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com>2019-05-23 00:05:12 +0300
commitf6ce6dde4374dda765daf9ae9278f8a28acb05d8 (patch)
tree4e770c250c513f67b6e606ae6a9ebd50be8c6861
parentfc8e3bbd451cff1b9dbfee8f213c6e0a5813b5f4 (diff)
use github templating mechanisms to classify issues when they are created (#5776)
-rw-r--r--.github/ISSUE_TEMPLATE.md5
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md2
-rw-r--r--.github/ISSUE_TEMPLATE/feature_request.md2
-rw-r--r--.github/ISSUE_TEMPLATE/question.md1
-rwxr-xr-x.travis/labeler.sh15
5 files changed, 8 insertions, 17 deletions
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index 4fe94ad651..bd939baba5 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -1,3 +1,8 @@
+---
+about: General issue template
+labels: "needs triage", "no changelog"
+---
+
<!---
This is a generic issue template. We usually prefer contributors to use one
of 3 other specific issue templates (bug report, feature request, question)
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index fbd69a2f61..eb45ea7b96 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -1,7 +1,7 @@
---
name: Bug report
about: Create a bug report to help us improve
-
+labels: "bug", "needs triage"
---
<!---
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
index b27ba2653f..d33a01e949 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -1,7 +1,7 @@
---
name: Feature request
about: Suggest an idea for our project
-
+labels: "feature request", "needs triage"
---
<!---
diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md
index 9bdf6f14e6..2a13e05b02 100644
--- a/.github/ISSUE_TEMPLATE/question.md
+++ b/.github/ISSUE_TEMPLATE/question.md
@@ -1,6 +1,7 @@
---
name: Question
about: You just want to ask a question? Go on.
+labels: question, "no changelog"
---
<!---
diff --git a/.travis/labeler.sh b/.travis/labeler.sh
index e8d7d228df..7863084d90 100755
--- a/.travis/labeler.sh
+++ b/.travis/labeler.sh
@@ -36,21 +36,6 @@ echo "===== Looking up available labels ====="
LABELS_FILE=/tmp/labels
hub issue labels >$LABELS_FILE
-echo "===== Categorizing issues ====="
-# This won't touch issues which already have at least one label assigned
-for STATE in "open" "closed"; 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 --------"
- BODY="$(curl -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/repos/netdata/netdata/issues/$ISSUE" 2>/dev/null | jq .body)"
- case "${BODY}" in
- *"# Question summary"*) new_labels "$ISSUE" "question" "no changelog" ;;
- *"# Bug report summary"*) new_labels "$ISSUE" "needs triage" "bug" ;;
- *"# Feature idea summary"*) new_labels "$ISSUE" "needs triage" "feature request" ;;
- *) new_labels "$ISSUE" "needs triage" "no changelog" ;;
- esac
- done
-done
-
# Change all 'area' labels assigned to PR saving non-area labels.
echo "===== Categorizing PRs ====="
NEW_LABELS=/tmp/new_labels