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

# Add Labels To Pull Request

Add labels to an issue.

<Note>
  External Documentation

  To learn more, visit the [GitHub documentation](https://docs.github.com/rest/reference/issues#add-labels-to-an-issue).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter           | Description                                                                                                                                                                                                                                                          |
  | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Labels              | An array of label names to add to the issue's existing labels.<br /><br />**Note**: For more information about the `Labels` parameter, visit [GitHub API documentation](https://docs.github.com/en/rest/issues/labels?apiVersion=2022-11-28#add-labels-to-an-issue). |
  | Owner               | The account owner of the repository. The name is not case sensitive.                                                                                                                                                                                                 |
  | Pull Request Number | The pull request number, eg. `https://github.com/{owner}/{repo}/pull/{pull request number}`.                                                                                                                                                                         |
  | Repo                | The name of the repository. The name is not case sensitive.                                                                                                                                                                                                          |
</div>

## Example Output

```json theme={"dark"}
{
	"value": [
		{
			"color": "f29513",
			"default": true,
			"description": "Something isn't working",
			"id": 208045946,
			"name": "bug",
			"node_id": "MDU6TGFiZWwyMDgwNDU5NDY=",
			"url": "https://api.github.com/repos/octocat/Hello-World/labels/bug"
		},
		{
			"color": "a2eeef",
			"default": false,
			"description": "New feature or request",
			"id": 208045947,
			"name": "enhancement",
			"node_id": "MDU6TGFiZWwyMDgwNDU5NDc=",
			"url": "https://api.github.com/repos/octocat/Hello-World/labels/enhancement"
		}
	]
}
```

## Workflow Library Example

[Add Labels to Pull Request with Github and Send Results Via Email](https://library.blinkops.com/workflows/add-labels-to-pull-request-with-github-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/add-labels-to-pull-request-with-github-and-send-results-via-email/canvas" />
</div>
