From 641e13936313e7840aa4359f73f60ed47b6ed1ba Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Mon, 19 Dec 2022 12:57:14 -0500 Subject: [PATCH 1/4] Trigger tweaks --- .github/labels.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/labels.yml b/.github/labels.yml index e417340222ac27..6106393065efc0 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -8,11 +8,12 @@ # Read more here: https://github.com/Financial-Times/github-label-sync#label-config-file # Getsentry workflow control -- name: trigger-getsentry-external - color: '3E5E06' +- name: 'Trigger: getsentry tests' + alias: ['trigger-getsentry-external'] + color: 'A0CABD' description: 'once code is reviewed: apply label to PR to trigger getsentry tests' - name: 'Trigger: Revert' - color: '3E5E06' + color: 'A0CABD' description: 'add to a merged PR to revert it (skips CI)' # Unito - notion.so/52d10dbfad474328850319e48b057a5b From e2020bebb98ad9585b08cc3ef7dfd913ebd0da01 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Mon, 19 Dec 2022 15:52:28 -0500 Subject: [PATCH 2/4] Update .github/labels.yml Co-authored-by: Evan Purkhiser --- .github/labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labels.yml b/.github/labels.yml index 6106393065efc0..53219f8b9e10de 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -9,7 +9,7 @@ # Getsentry workflow control - name: 'Trigger: getsentry tests' - alias: ['trigger-getsentry-external'] + aliases: ['trigger-getsentry-external'] color: 'A0CABD' description: 'once code is reviewed: apply label to PR to trigger getsentry tests' - name: 'Trigger: Revert' From 07adfc83079a9be0318f925132b17157b4cb01c8 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Mon, 19 Dec 2022 17:14:13 -0500 Subject: [PATCH 3/4] Update label consumers --- .github/workflows/getsentry-dispatch.yml | 2 +- .github/workflows/scripts/getsentry-dispatch-setup | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/getsentry-dispatch.yml b/.github/workflows/getsentry-dispatch.yml index b2d55d82b2376d..a02c5ce3c0c62d 100644 --- a/.github/workflows/getsentry-dispatch.yml +++ b/.github/workflows/getsentry-dispatch.yml @@ -19,7 +19,7 @@ permissions: jobs: dispatch: - if: github.event.action != 'labeled' || github.event.label.name == 'trigger-getsentry-external' + if: github.event.action != 'labeled' || github.event.label.name == 'Trigger: getsentry tests' name: getsentry dispatch runs-on: ubuntu-20.04 steps: diff --git a/.github/workflows/scripts/getsentry-dispatch-setup b/.github/workflows/scripts/getsentry-dispatch-setup index d6053e2f040751..2de9ab8353d0d1 100755 --- a/.github/workflows/scripts/getsentry-dispatch-setup +++ b/.github/workflows/scripts/getsentry-dispatch-setup @@ -4,7 +4,7 @@ import json import os import urllib.request -LABEL = "trigger-getsentry-external" +LABEL = "Trigger: getsentry tests" def _has_write(repo_id: int, username: str, *, token: str) -> bool: From edac8b568e9a10568b9db49332ae8bb8c7ebfe9e Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Thu, 16 Mar 2023 12:28:05 -0400 Subject: [PATCH 4/4] Quote yaml properly --- .github/workflows/getsentry-dispatch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/getsentry-dispatch.yml b/.github/workflows/getsentry-dispatch.yml index 2d71613bf8160b..c830deed45f2bf 100644 --- a/.github/workflows/getsentry-dispatch.yml +++ b/.github/workflows/getsentry-dispatch.yml @@ -19,7 +19,7 @@ permissions: jobs: dispatch: - if: github.event.action != 'labeled' || github.event.label.name == 'Trigger: getsentry tests' + if: "github.event.action != 'labeled' || github.event.label.name == 'Trigger: getsentry tests'" name: getsentry dispatch runs-on: ubuntu-20.04 steps: