Skip to content

Commit 7e323bf

Browse files
committed
Add workflow to create issues for Copilot Coding Agent
1 parent ba9f22c commit 7e323bf

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Create Issue for Copilot Coding Agent
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
title:
7+
description: 'Issue title'
8+
required: true
9+
type: string
10+
11+
jobs:
12+
create-issue:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
issues: write
16+
steps:
17+
- name: Create issue and assign to Copilot
18+
uses: actions/github-script@v8
19+
with:
20+
script: |
21+
const issue = await github.rest.issues.create({
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
title: '${{ inputs.title }}',
25+
assignees: ['copilot']
26+
});
27+
core.notice(`Created issue #${issue.data.number}: ${issue.data.html_url}`);

0 commit comments

Comments
 (0)