Просмотр исходного кода

meta(gha): Deploy workflow issue-routing-helper.yml (#31798)

Chad Whitacre 3 лет назад
Родитель
Сommit
de4336e463
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      .github/workflows/issue-routing-helper.yml

+ 8 - 0
.github/workflows/issue-routing-helper.yml

@@ -29,11 +29,19 @@ jobs:
           team_name="${team_label:6}" # Strip the first 6 chars, which is the 'Team: ' part
           team_slug="${team_name// /-}" # Replace spaces with hyphens for url/slug friendliness
           mention_slug=$(gh api "/orgs/getsentry/teams/$team_slug" -q .slug || true)
+          if [ "${mention_slug::1}" = "{" ]; then
+            # Hack around https://github.com/getsentry/.github/issues/77
+            mention_slug=""
+          fi
 
           if [[ -z "$mention_slug" ]]; then
             echo "Couldn't find team mention from slug, trying the label description"
             team_slug=$(gh api "/repos/$GH_REPO/labels/$team_label" -q '.description')
             mention_slug=$(gh api "/orgs/getsentry/teams/$team_slug" -q .slug || true)
+            if [ "${mention_slug::1}" = "{" ]; then
+              # Hack around https://github.com/getsentry/.github/issues/77
+              mention_slug=""
+            fi
           fi
 
           if [[ -n "$mention_slug" ]]; then