Okapi Okapi

GitHub REST API /repos/{id}/{id}/tags/protection* endpoint removal

Stopped workingSubscribe to GitHub REST APIShare

Calls to /repos/{id}/{id}/tags/protection* on GitHub REST API stopped working on August 30, 2024.


Calls it hits

  • /repos/{id}/{id}/tags/protection*

What to use instead of these calls

Manage tag protection with repository rulesets (/repos/{owner}/{repo}/rulesets) instead; existing rules were migrated to a tag ruleset.

In GitHub REST API's words

August 30, 2024: All tag protection rules will be migrated to a new tag ruleset. All REST and GraphQL API endpoints will be deprecated

GitHub REST API, Announcement

Facts

API
GitHub REST API api.github.com
Kind
Endpoint removal
Announced
May 29, 2024
Takes effect
August 30, 2024
Calls after that day
Fail
Source
Announcement
Last updated
Verified
, against GitHub REST API's own pages

Questions

When does this change take effect?

Calls to /repos/{id}/{id}/tags/protection* on GitHub REST API stopped working on August 30, 2024.

What happens to calls after August 30, 2024?

They have failed since August 30, 2024.

How do I find the calls this hits in my code?

Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.


More from GitHub REST API 10

  1. /repos/{id}/{id}/import*Endpoint removal Stopped working
  2. /orgs/{id}/projectsEndpoint removal Stopped working
  3. /orgs/{id}/teams/{id}/projects*Endpoint removal Stopped working
  4. /projects/*Endpoint removal Stopped working
  5. /repos/{id}/{id}/projectsEndpoint removal Stopped working
  6. /teams/{id}/projects*Endpoint removal Stopped working
  7. GET /users/{id}/projectsEndpoint removal Stopped working
  8. POST /user/projectsEndpoint removal Stopped working
  9. GET /enterprises/{id}/settings/billing/actionsEndpoint removal Stopped working
  10. GET /enterprises/{id}/settings/billing/packagesEndpoint removal Stopped working

You fixed this one by hand.

Okapi opens the pull request with the fix before the next breaking change reaches your code.

Add to GitHub

Get notifications

Subscribe to GitHub REST API

Hear about each breaking change GitHub REST API announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • GitHub REST API

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.