Skip to content

Commit d8e3757

Browse files
committed
refactor: streamline issue creation for upstream sync by using gh issue create command
1 parent af8ca2b commit d8e3757

1 file changed

Lines changed: 9 additions & 23 deletions

File tree

.github/workflows/weekly-upstream-sync.yml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -127,29 +127,15 @@ jobs:
127127
128128
Follow the [agentic-merge-upstream](.github/prompts/agentic-merge-upstream.prompt.md) prompt to port these changes to the Java SDK."
129129
130-
# Build the issue JSON payload
131-
ISSUE_PAYLOAD=$(jq -n \
132-
--arg title "Upstream sync: ${COMMIT_COUNT} new commits (${DATE})" \
133-
--arg body "$BODY" \
134-
'{
135-
title: $title,
136-
body: $body,
137-
labels: ["upstream-sync"],
138-
assignees: ["copilot-swe-agent"]
139-
}')
140-
141-
# Create the issue
142-
ISSUE_NUMBER=$(echo "$ISSUE_PAYLOAD" | \
143-
gh api \
144-
--method POST \
145-
-H "Accept: application/vnd.github+json" \
146-
-H "X-GitHub-Api-Version: 2022-11-28" \
147-
"/repos/${REPO}/issues" \
148-
--input - \
149-
--jq '.number')
150-
151-
echo "Created issue #${ISSUE_NUMBER}"
152-
echo "✅ Issue #${ISSUE_NUMBER} created and assigned to Copilot coding agent."
130+
# Create the issue and assign to Copilot coding agent
131+
gh issue create \
132+
--repo "$REPO" \
133+
--title "Upstream sync: ${COMMIT_COUNT} new commits (${DATE})" \
134+
--body "$BODY" \
135+
--label "upstream-sync" \
136+
--assignee "copilot-swe-agent"
137+
138+
echo "✅ Issue created and assigned to Copilot coding agent."
153139
154140
- name: Summary
155141
if: always()

0 commit comments

Comments
 (0)