From 99fe0e6741a2feb3f728dc4a9ac714b64f2d02b3 Mon Sep 17 00:00:00 2001 From: matt abrams <37156449+zuchka@users.noreply.github.com> Date: Thu, 9 Feb 2023 09:23:04 -1000 Subject: [PATCH] GHActions: Issues: Add action that makes org members add a label (#63158) * add new scenario to config * make workflow run on opened issues --- .github/commands.json | 7 +++++++ .github/workflows/commands.yml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/commands.json b/.github/commands.json index 46f2cde960d..b2ae8f90355 100644 --- a/.github/commands.json +++ b/.github/commands.json @@ -322,5 +322,12 @@ "addToProject": { "url": "https://github.com/orgs/grafana/projects/78" } + }, + { + "type": "author", + "memberOf": { "org": "grafana" }, + "noLabels": true, + "addLabel": "internal", + "comment": " Hi there! It looks like you forgot to add any labels to this issue. We ask that members of the Grafana Org avoid filing empty issues because it slows down our triage process. Please add one or more appropriate labels. Here are some tips:\r\n\r\n- if you are making an issue, TODO, or reminder for yourself or your team, please add one descriptive label AND add the issue to your project board. :rocket:\r\n\r\n- if you are making an issue for any other reason (docs typo, you found a bug, etc), please add at least one descriptive label and the triage folks will help place it with the correct team. This really helps us move as fast as possible. :rocket:\r\n\r\nAnd please keep the `internal` tag so we can track issues created by grafanistas. Thank you! :heart:" } ] diff --git a/.github/workflows/commands.yml b/.github/workflows/commands.yml index 534418d1178..cc9ca5997fb 100644 --- a/.github/workflows/commands.yml +++ b/.github/workflows/commands.yml @@ -1,7 +1,7 @@ name: Run commands when issues are labeled or comments added on: issues: - types: [labeled, unlabeled] + types: [labeled, unlabeled, opened] issue_comment: types: [created] concurrency: