Skip to content

Commit a0df384

Browse files
authored
meta(gha): Deploy workflow issue-routing-helper.yml (#4727)
1 parent 2624f78 commit a0df384

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/issue-routing-helper.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,19 @@ jobs:
2929
team_name="${team_label:6}" # Strip the first 6 chars, which is the 'Team: ' part
3030
team_slug="${team_name// /-}" # Replace spaces with hyphens for url/slug friendliness
3131
mention_slug=$(gh api "/orgs/getsentry/teams/$team_slug" -q .slug || true)
32+
if [ "${mention_slug::1}" = "{" ]; then
33+
# Hack around https://github.com/getsentry/.github/issues/77
34+
mention_slug=""
35+
fi
3236
3337
if [[ -z "$mention_slug" ]]; then
3438
echo "Couldn't find team mention from slug, trying the label description"
3539
team_slug=$(gh api "/repos/$GH_REPO/labels/$team_label" -q '.description')
3640
mention_slug=$(gh api "/orgs/getsentry/teams/$team_slug" -q .slug || true)
41+
if [ "${mention_slug::1}" = "{" ]; then
42+
# Hack around https://github.com/getsentry/.github/issues/77
43+
mention_slug=""
44+
fi
3745
fi
3846
3947
if [[ -n "$mention_slug" ]]; then

0 commit comments

Comments
 (0)