From be0c29a46cafe5d64f907591b1fa7e6206e6dc51 Mon Sep 17 00:00:00 2001 From: Marcus Efraimsson Date: Wed, 31 Mar 2021 14:54:49 +0200 Subject: [PATCH] Automation: Label pull requests based on author org (#32547) Should add the label pr/external to pull requests for authors not member of the Grafana org. Making use of grafana/grafana-github-actions#20 --- .github/pr-commands.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/pr-commands.json b/.github/pr-commands.json index 8e59f705474..cb5bc2e65c7 100644 --- a/.github/pr-commands.json +++ b/.github/pr-commands.json @@ -171,5 +171,12 @@ "matches": ["public/app/features/variables/**/*", "public/app/features/templating/**/*"], "action": "updateLabel", "addLabel": "area/dashboard/templating" + }, + { + "type": "author", + "name": "pr/external", + "notMemberOf": { "org": "grafana" }, + "action": "updateLabel", + "addLabel": "pr/external" } ]