Closing down - List tag protection states for a repository
Deprecated GET
/repos/{owner}/{repo}/tags/protection https://api.github.com
[!WARNING] Closing down notice: This operation is closing down and will be removed after August 30, 2024. Use the "Repository Rulesets" endpoint instead.
This returns the tag protection states of a repository.
This information is only available to repository administrators.
Parameters
path Path Parameters
| Name | Type |
|---|---|
owner
required
The account owner of the repository. The name is not case sensitive. | string |
repo
required
The name of the repository without the | string |
Responses
200 application/json
Response
interface TagProtection {
id?: number;
created_at?: string;
updated_at?: string;
enabled?: boolean;
pattern: string;
}[]
id?: number;
created_at?: string;
updated_at?: string;
enabled?: boolean;
pattern: string;
}[]
Client Errors
403 application/json
Forbidden
interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
404 application/json
Resource not found
interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}