We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aab3256 commit 07622bbCopy full SHA for 07622bb
1 file changed
.github/workflows/typespec-python-regenerate.yml
@@ -287,11 +287,14 @@ jobs:
287
ISSUE_NUMBER="$EXISTING_ISSUE"
288
else
289
echo "Creating new tracking issue"
290
- ISSUE_NUMBER=$(gh issue create --title "$TITLE" --body "$ISSUE_BODY" \
+ # `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" \
294
--label "typespec-python" \
- --assignee "$ASSIGNEES" \
- --json number --jq '.number')
- echo "Created issue #$ISSUE_NUMBER"
295
+ --assignee "$ASSIGNEES")
296
+ ISSUE_NUMBER="${ISSUE_URL##*/}"
297
+ echo "Created issue #$ISSUE_NUMBER ($ISSUE_URL)"
298
fi
299
echo "issue_number=$ISSUE_NUMBER" >> $GITHUB_OUTPUT
300
0 commit comments