Skip to content

Conversation

Copy link

Copilot AI commented Dec 22, 2025

GitHub API returns 422 validation error when creating issues with assignees: ['copilot'] because 'copilot' is not a valid collaborator username.

Changes

  • views/RepoDetail.tsx: Removed assignees field from issue creation payload
  • README.md: Updated documentation to reflect auto-labeling only (no auto-assignment)

The jules label remains for AI agent tracking. Assignees can still be set manually through GitHub's UI when needed.

// Before
await createIssue(token, owner, repo, {
  title: newTitle,
  body: newBody,
  labels: ['jules'],
  assignees: ['copilot']  // ❌ Invalid
});

// After
await createIssue(token, owner, repo, {
  title: newTitle,
  body: newBody,
  labels: ['jules']  // ✅ Valid
});
Original prompt

This section details on the original issue you should resolve

<issue_title>fix</issue_title>
<issue_description>{
"message": "Validation Failed",
"errors": [
{
"value": [
"copilot"
],
"resource": "Issue",
"field": "assignees",
"code": "invalid"
}
],
"documentation_url": "https://docs.github.com/rest/issues/issues#create-an-issue",
"status": "422"
}
</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: friuns <7095563+friuns@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix validation error for issue assignees Remove invalid 'copilot' assignee from issue creation Dec 22, 2025
Copilot AI requested a review from friuns December 22, 2025 17:16
@github-actions github-actions bot temporarily deployed to commit December 23, 2025 09:27 Inactive
@github-actions
Copy link

🚀 Netlify Deployment

Deploy URL: https://694a608fbf1425320fb6ed3c--my-test-site3.netlify.app

Branch: copilot/fix-issue-validation-error
Commit: a6c40bd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix

2 participants