From 3b9523fad7304c1e0abf9e87dfa002d30e54dcbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 26 Oct 2020 19:43:58 +0100 Subject: [PATCH] Move metrics collector queries to config (#28549) --- .github/metrics-collector.json | 28 +++++++++++++++++++++++++ .github/workflows/commands.yml | 2 +- .github/workflows/metrics-collector.yml | 3 ++- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/metrics-collector.json diff --git a/.github/metrics-collector.json b/.github/metrics-collector.json new file mode 100644 index 00000000000..3e2407a35ee --- /dev/null +++ b/.github/metrics-collector.json @@ -0,0 +1,28 @@ +{ + "queries": [ + { + "name": "type_bug", + "query": "label:\"type/bug\" is:open" + }, + { + "name": "needs_investigation", + "query": "label:\"needs investigation\" is:open" + }, + { + "name": "needs_more_info", + "query": "label:\"needs more info\" is:open" + }, + { + "name": "unlabeled", + "query": "is:open is:issue no:label" + }, + { + "name": "open_prs", + "query": "is:open is:pr" + }, + { + "name": "milestone_7_4_open", + "query": "is:open is:issue milestone:7.4" + } + ] +} diff --git a/.github/workflows/commands.yml b/.github/workflows/commands.yml index 4881d1e2ab2..91af6976fbf 100644 --- a/.github/workflows/commands.yml +++ b/.github/workflows/commands.yml @@ -22,4 +22,4 @@ jobs: with: metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}} token: ${{secrets.GH_BOT_ACCESS_TOKEN}} - config-path: commands + configPath: commands diff --git a/.github/workflows/metrics-collector.yml b/.github/workflows/metrics-collector.yml index 28441eec117..84dec4e204a 100644 --- a/.github/workflows/metrics-collector.yml +++ b/.github/workflows/metrics-collector.yml @@ -8,7 +8,7 @@ # # https://github.com/grafana/grafana-github-actions/blob/main/metrics-collector/index.ts # -name: Github issue metrics collection +name: Github issue metrics collection on: schedule: - cron: "*/10 * * * *" @@ -32,3 +32,4 @@ jobs: with: metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}} token: ${{secrets.GH_BOT_ACCESS_TOKEN}} + configPath: "metrics-collector"