Copilot coding agent breaks commit syncs

Open
#1,411 5 comments 1 reaction 0 assignees View on GitHub

@efegokdemir is already working on this.

Since Nov 3, 2026.

  • #1512 by @efegokdemir — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
github, ruby
Domain
api, backend, devops

Research direction

Read app/jobs/shipit/github_sync_job.rb around lines 55-61, then use the linked rubygems.org pull request and the shown gh api users/Copilot response to understand the failure. Determine how the sync handles an author lookup returning 404, and define completion as preventing this Copilot-authored merge from marking the Shipit Stack inaccessible, with regression coverage.

Written by the indexing model from the issue text.

Description

👋🏻 Hello from rubygems.org

We recently had our first PR generated from the new Copilot coding agent, which, when merged, caused our Shipit Stacks to immediately break and be marked as inaccessible from:

https://github.com/Shopify/shipit-engine/blob/af872321d9bc197f4c46401874e66d3c428e90c0/app/jobs/shipit/github_sync_job.rb#L55-L61

The GitHub API makes it seem like the GitHub Copilot user is a real author, but it seems as though the API to get the Copilot user will just return 404.

$ gh api repos/rubygems/rubygems.org/pulls/5929 | jq .user
{
  "login": "Copilot",
  "id": 198982749,
  "node_id": "BOT_kgDOC9w8XQ",
  "avatar_url": "https://avatars.githubusercontent.com/in/1143301?v=4",
  "gravatar_id": "",
  "url": "https://api.github.com/users/Copilot",
  "html_url": "https://github.com/apps/copilot-swe-agent",
  "followers_url": "https://api.github.com/users/Copilot/followers",
  "following_url": "https://api.github.com/users/Copilot/following{/other_user}",
  "gists_url": "https://api.github.com/users/Copilot/gists{/gist_id}",
  "starred_url": "https://api.github.com/users/Copilot/starred{/owner}{/repo}",
  "subscriptions_url": "https://api.github.com/users/Copilot/subscriptions",
  "organizations_url": "https://api.github.com/users/Copilot/orgs",
  "repos_url": "https://api.github.com/users/Copilot/repos",
  "events_url": "https://api.github.com/users/Copilot/events{/privacy}",
  "received_events_url": "https://api.github.com/users/Copilot/received_events",
  "type": "Bot",
  "user_view_type": "public",
  "site_admin": false
}
❯ gh api users/Copilot
{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest",
  "status": "404"
}
gh: Not Found (HTTP 404)

I'm not particularly sure what we could do to handle this particular scenario, and we've since disabled the Copilot agent on rubygems.org. I figured the best first step would be to get your reaction and see what happens from there.

Dominant language
Ruby
Stars
1.5k
Forks
158
Avg merge
18h 55m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Shopify/shipit-engine

All issues in Shopify/shipit-engine

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.