Skip to content

Commit 58c7858

Browse files
committed
feat: enhance create-sample-issue workflow to assign Copilot agent and update documentation
1 parent ca50f7f commit 58c7858

5 files changed

Lines changed: 80 additions & 16 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"entries": {
3+
"actions/github-script@v8": {
4+
"repo": "actions/github-script",
5+
"version": "v8",
6+
"sha": "ed597411d8f924073f98dfc5c65a23a2325f34cd"
7+
}
8+
}
9+
}

.github/workflows/create-sample-issue.lock.yml

Lines changed: 62 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/create-sample-issue.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ tools:
1616
safe-outputs:
1717
create-issue:
1818
title-prefix: "[test] "
19-
assignees: [copilot]
2019
labels: [test]
20+
assign-to-agent:
21+
name: "copilot"
22+
target: "*"
2123
---
2224
# Create Sample Issue
2325

24-
Create a test issue in this repository assigned to Copilot. The issue should contain:
26+
Create a test issue in this repository and then assign Copilot to it. The issue should contain:
2527

2628
- **Title:** `Sample test issue`
2729
- **Body:** `This is an automated test issue created by the create-sample-issue workflow. Feel free to close it.`
2830

29-
| `.github/scripts/upstream-sync/` | Helper scripts used by the merge prompt |
31+
After creating the issue, assign the `copilot` agent to it.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Close previous upstream-sync issues
5757
if: steps.check.outputs.has_changes == 'true'
5858
env:
59-
GH_TOKEN: ${{ secrets.COPILOT_ISSUE_PR_AGENTIC_WORKFLOW }}
59+
GH_TOKEN: ${{ secrets.GH_AW_AGENT_TOKEN }}
6060
run: |
6161
# Find all open issues with the upstream-sync label
6262
OPEN_ISSUES=$(gh issue list \
@@ -79,7 +79,7 @@ jobs:
7979
- name: Close stale upstream-sync issues (no changes)
8080
if: steps.check.outputs.has_changes == 'false'
8181
env:
82-
GH_TOKEN: ${{ secrets.COPILOT_ISSUE_PR_AGENTIC_WORKFLOW }}
82+
GH_TOKEN: ${{ secrets.GH_AW_AGENT_TOKEN }}
8383
run: |
8484
OPEN_ISSUES=$(gh issue list \
8585
--repo "${{ github.repository }}" \
@@ -102,7 +102,7 @@ jobs:
102102
id: create-issue
103103
if: steps.check.outputs.has_changes == 'true'
104104
env:
105-
GH_TOKEN: ${{ secrets.COPILOT_ISSUE_PR_AGENTIC_WORKFLOW }}
105+
GH_TOKEN: ${{ secrets.GH_AW_AGENT_TOKEN }}
106106
run: |
107107
COMMIT_COUNT="${{ steps.check.outputs.commit_count }}"
108108
LAST_MERGE="${{ steps.check.outputs.last_merge }}"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The workflow runs on a **weekly schedule** (every Monday at 10:00 UTC) and can a
6161

6262
| Secret | Purpose |
6363
|---|---|
64-
| `COPILOT_ISSUE_PR_AGENTIC_WORKFLOW` | PAT used as `GH_TOKEN` for `gh` CLI operations (issue create/close/comment). Required because the default `GITHUB_TOKEN` cannot assign issues to `copilot-swe-agent`. |
64+
| `GH_AW_AGENT_TOKEN` | PAT used as `GH_TOKEN` for `gh` CLI operations (issue create/close/comment). Required because the default `GITHUB_TOKEN` cannot assign issues to `copilot-swe-agent`. |
6565

6666
## Workflow Steps
6767

0 commit comments

Comments
 (0)