From 737297cd8c2527b2c3699981bb8cefa7ba25943d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Oct 2025 00:09:31 +0000 Subject: [PATCH 1/2] Initial plan From 7fe20ec2da47a22728f4142529f344d05abc2653 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Oct 2025 00:16:47 +0000 Subject: [PATCH 2/2] Fix invalid assignee causing issue creation to fail Co-authored-by: BorDevTech <73800053+BorDevTech@users.noreply.github.com> --- .../lint-automation/github-issue-creator.ts | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/scripts/lint-automation/github-issue-creator.ts b/scripts/lint-automation/github-issue-creator.ts index 41e9a04..b432204 100644 --- a/scripts/lint-automation/github-issue-creator.ts +++ b/scripts/lint-automation/github-issue-creator.ts @@ -64,8 +64,17 @@ class GitHubIssueCreator { } try { - // Always assign to @copilot - const assignees = ['copilot']; + // Prepare the issue body - assignees can be configured via options + const issueBody: any = { + title: options.title, + body: options.body, + labels: options.labels || [] + }; + + // Only add assignees if they are provided + if (options.assignees && options.assignees.length > 0) { + issueBody.assignees = options.assignees; + } const response = await fetch(`${this.apiBase}/repos/${this.owner}/${this.repo}/issues`, { method: 'POST', @@ -75,12 +84,7 @@ class GitHubIssueCreator { 'Accept': 'application/vnd.github.v3+json', 'User-Agent': 'ClearView-Lint-Automation' }, - body: JSON.stringify({ - title: options.title, - body: options.body, - labels: options.labels || [], - assignees: assignees - }) + body: JSON.stringify(issueBody) }); if (!response.ok) {