Skip to content

Commit b88ba39

Browse files
committed
Remove default value for issue title input and ensure fallback title is used in script
1 parent eb83940 commit b88ba39

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/copilot-issue.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
title:
77
description: 'Issue title'
88
required: false
9-
default: 'Investigation needed from Copilot Coding Agent'
109
type: string
1110
push:
1211
branches: [main]
@@ -24,10 +23,11 @@ jobs:
2423
uses: actions/github-script@v8
2524
with:
2625
script: |
26+
const title = '${{ inputs.title || 'Investigation needed from Copilot Coding Agent' }}';
2727
const issue = await github.rest.issues.create({
2828
owner: context.repo.owner,
2929
repo: context.repo.repo,
30-
title: '${{ inputs.title }}',
30+
title,
3131
assignees: ['copilot-swe-agent']
3232
});
3333
core.notice(`Created issue #${issue.data.number}: ${issue.data.html_url}`);
@@ -54,5 +54,5 @@ jobs:
5454
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5555
GITHUB_REPO_OWNER: ${{ github.repository_owner }}
5656
GITHUB_REPO_NAME: ${{ github.event.repository.name }}
57-
run: npx tsx create-issue-assigned-to-copilot.ts "${{ inputs.title }}"
57+
run: npx tsx create-issue-assigned-to-copilot.ts "${{ inputs.title || 'Investigation needed from Copilot Coding Agent' }}"
5858
working-directory: .github/scripts

0 commit comments

Comments
 (0)