9999 done
100100
101101 - name : Create issue and assign to Copilot
102+ id : create-issue
102103 if : steps.check.outputs.has_changes == 'true'
103104 env :
104105 GH_TOKEN : ${{ secrets.COPILOT_ISSUE_PR_AGENTIC_WORKFLOW }}
@@ -128,14 +129,15 @@ jobs:
128129 Follow the [agentic-merge-upstream](.github/prompts/agentic-merge-upstream.prompt.md) prompt to port these changes to the Java SDK."
129130
130131 # Create the issue and assign to Copilot coding agent
131- gh issue create \
132+ ISSUE_URL=$( gh issue create \
132133 --repo "$REPO" \
133134 --title "Upstream sync: ${COMMIT_COUNT} new commits (${DATE})" \
134135 --body "$BODY" \
135136 --label "upstream-sync" \
136- --assignee "copilot-swe-agent"
137+ --assignee "copilot-swe-agent")
137138
138- echo "✅ Issue created and assigned to Copilot coding agent."
139+ echo "issue_url=$ISSUE_URL" >> "$GITHUB_OUTPUT"
140+ echo "✅ Issue created and assigned to Copilot coding agent: $ISSUE_URL"
139141
140142 - name : Summary
141143 if : always()
@@ -144,6 +146,7 @@ jobs:
144146 COMMIT_COUNT="${{ steps.check.outputs.commit_count }}"
145147 LAST_MERGE="${{ steps.check.outputs.last_merge }}"
146148 UPSTREAM_HEAD="${{ steps.check.outputs.upstream_head }}"
149+ ISSUE_URL="${{ steps.create-issue.outputs.issue_url }}"
147150
148151 {
149152 echo "## Weekly Upstream Sync"
@@ -157,7 +160,8 @@ jobs:
157160 echo "| **Last merged** | \`${LAST_MERGE:0:12}\` |"
158161 echo "| **Upstream HEAD** | \`${UPSTREAM_HEAD:0:12}\` |"
159162 echo ""
160- echo "An issue has been created and assigned to the Copilot coding agent."
163+ echo "An issue has been created and assigned to the Copilot coding agent: "
164+ echo " -> ${ISSUE_URL}"
161165 echo ""
162166 echo "### Recent upstream commits"
163167 echo ""
0 commit comments