File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,19 @@ jobs:
29
29
team_name="${team_label:6}" # Strip the first 6 chars, which is the 'Team: ' part
30
30
team_slug="${team_name// /-}" # Replace spaces with hyphens for url/slug friendliness
31
31
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
32
36
33
37
if [[ -z "$mention_slug" ]]; then
34
38
echo "Couldn't find team mention from slug, trying the label description"
35
39
team_slug=$(gh api "/repos/$GH_REPO/labels/$team_label" -q '.description')
36
40
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
37
45
fi
38
46
39
47
if [[ -n "$mention_slug" ]]; then
You can’t perform that action at this time.
0 commit comments