Get a label
GET
/repos/{owner}/{repo}/labels/{name} https://api.github.com
Gets a label using the given name.
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 |
name
required
| string |
Responses
200 application/json
Response
interface Label {
id: number;
node_id: string;
url: string;
name: string;
description: string | null;
color: string;
default: boolean;
}
id: number;
node_id: string;
url: string;
name: string;
description: string | null;
color: string;
default: boolean;
}
Client Errors
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;
}