Skip to content

Commit 07622bb

Browse files
committed
update
1 parent aab3256 commit 07622bb

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/typespec-python-regenerate.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,14 @@ jobs:
287287
ISSUE_NUMBER="$EXISTING_ISSUE"
288288
else
289289
echo "Creating new tracking issue"
290-
ISSUE_NUMBER=$(gh issue create --title "$TITLE" --body "$ISSUE_BODY" \
290+
# `gh issue create` prints the new issue's URL to stdout; parse the
291+
# trailing number out of it. (`--json`/`--jq` are not supported on
292+
# `gh issue create`.)
293+
ISSUE_URL=$(gh issue create --title "$TITLE" --body "$ISSUE_BODY" \
291294
--label "typespec-python" \
292-
--assignee "$ASSIGNEES" \
293-
--json number --jq '.number')
294-
echo "Created issue #$ISSUE_NUMBER"
295+
--assignee "$ASSIGNEES")
296+
ISSUE_NUMBER="${ISSUE_URL##*/}"
297+
echo "Created issue #$ISSUE_NUMBER ($ISSUE_URL)"
295298
fi
296299
echo "issue_number=$ISSUE_NUMBER" >> $GITHUB_OUTPUT
297300

0 commit comments

Comments
 (0)