Error Assigning Copilot via API: "The agent encountered an error and was unable to start working on this issue: This may be caused by a repository ruleset violation" #190228
Replies: 4 comments 1 reply
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
i have the same issue on 3 different repos. started to occur something like 6-12 hours back i have no rulesets on my repos i use the copilot-cli to create issues, and assign it to copilot and then to merge it.. https://github.com/scholtz/events now it gets stucked on creating issue and not assigning it to copilot. when i assign it manually through github ui it works |
Beta Was this translation helpful? Give feedback.
-
|
Is there any recommended steps how to solve this issue? I create github issues using |
Beta Was this translation helpful? Give feedback.
-
|
I have tried:
What has also worked is to create a new PR, then @copilot on the PR. Copilot then creates a sub-PR, and works on the issue, but this is not the same thing, and less than ideal. @scholtz have you raised a support ticket? mine is #4186226 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
Starting today, we are seeing the following error in timelines whenever we are assigning Copilot to work on an issue using the API:
"The agent encountered an error and was unable to start working on this issue: This may be caused by a repository ruleset violation. See granting bypass permissions for the agent, or please contact support if the issue persists."
We can assign Copilot via the Web UI with no issue. There are NO rulesets on the Repo or at the Org level.
Reproduction Steps
POST https://api.github.com/repos///issues/<issue#>/assignees
Body: {
"assignees": [
"copilot-swe-agent[bot]"
],
"agent_assignment": {
"working_branch_prefix": "copilot/issue-#",
"model": "claude-opus-4.6"
}
}
This returns:
Status: 201 Created
✅ Copilot assigned successfully!
Assignees: Copilot,
However, the above error quickly displays in the timeline.
For testing:
We use an account that is part of the Organisation, and is an Admin on the Repo.
We are using a PAT that has the right permissions, and we have tried different accounts (all which were working).
Anyone else seeing this?
Beta Was this translation helpful? Give feedback.
All reactions