GH-ISSUE-PIN(1) GitHub CLI manual GH-ISSUE-PIN(1)

# [NAME](#NAME)

gh-issue-pin - Pin an issue

# [SYNOPSIS](#SYNOPSIS)

**gh issue pin {&lt;number&gt; | &lt;url&gt;} \[flags]**

# [DESCRIPTION](#DESCRIPTION)

Pin an issue to a repository.

The issue can be specified by issue number or URL.

# [OPTIONS INHERITED FROM PARENT COMMANDS](#OPTIONS_INHERITED_FROM_PARENT_COMMANDS)

[**-R**, **--repo** **&lt;\[HOST/\]OWNER/REPO&gt;**](#R)

Select another repository using the \[HOST/]OWNER/REPO format

# [EXIT CODES](#EXIT_CODES)

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

# [EXAMPLE](#EXAMPLE)

```
# Pin an issue to the current repository
$ gh issue pin 23
# Pin an issue by URL
$ gh issue pin https://github.com/owner/repo/issues/23
# Pin an issue to specific repository
$ gh issue pin 23 --repo owner/repo
```

# [SEE ALSO](#SEE_ALSO)

[**gh-issue(1)**](/man/os/gh/gh-issue.1)

Oct 2026

---

Document: gh-issue-pin(1) from gh 2.103.2-r0 (Chainguard OS)
Source: https://github.com/cli/cli
