Relink milestones whose GitHub sync never landed (GET)
GET
/cron/github-sync-repair
const url = 'https://example.com/api/cron/github-sync-repair';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/cron/github-sync-repairSweeps milestones left in github_sync_state pending or failed past their next-attempt time and completes their GitHub link. Safe to run repeatedly: an existing milestone with the same title is linked rather than duplicated. No-ops when GITHUB_SYNC_REPAIR_USER_ID is unset. Protected by CRON_SECRET via the x-cron-secret header.
Responses
Section titled “ Responses ”Sweep result
Media type application/json
object
ok
required
boolean
skipped
string
milestones
object
linked
integer
created
integer
failed
integer
skipped
integer
Missing or invalid CRON_SECRET