> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# issues_create_label

> Define a new label on the repository. `color` is a six-digit hex code without the leading '#'.

<div className="tool-route"><span className="tool-row-method" data-method="POST">POST</span><code>{"https://api.github.com/repos/{owner}/{repo}/labels"}</code></div>

```python github_issues_create_label.py theme={null}
from charter.packs import github

result = await github.issues_create_label.ainvoke({"owner": ..., "repo": ..., "name": ...})
```

<Note>
  Requires `repo`, `read:user`.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                         | Type     | Description                                                                              |
  | ------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------- |
  | `owner` <span className="required" title="required">\*</span> | `string` | The account owner of the repository. The name is not case sensitive.                     |
  | `repo` <span className="required" title="required">\*</span>  | `string` | The name of the repository without the `.git` extension. The name is not case sensitive. |
</div>

## Body

<div className="reference-table">
  | Field                                                        | Type     | Description                                                                                                                                                                  |
  | ------------------------------------------------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `name` <span className="required" title="required">\*</span> | `string` | The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup, for example `:bug:`.                                              |
  | `color`                                                      | `string` | The hexadecimal color code for the label, without the leading `#` — `d73a4a`, not `#d73a4a`. <span className="field-constraints">matches `^[0-9a-fA-F]&#123;6&#125;$`</span> |
  | `description`                                                | `string` | A short description of the label. Must be 100 characters or fewer. <span className="field-constraints">max length 100</span>                                                 |
</div>
