Issues and pull requests / Issues
Pin an important issue
An important issue gets lost as new issues come in. Pin it, so that it shows above the issues list for everyone.
1 min read
You need write access to the repository: the write, maintain or admin role.
1. Pin the issue
Open the issue, then click Pin issue in the sidebar. In a terminal, run:
src issue pin 12
A repository has at most 3 pinned issues. Unpin one before you pin a fourth.
Note
Only issues can be pinned, not pull requests.
2. Unpin it when it no longer matters
Open the issue, then click Unpin issue in the sidebar. In a terminal, run:
src issue unpin 12
Done
- The pinned issues show above the issues list, under Pinned issues.
- They do not show while you search or filter by a label.
- The timeline of the issue shows who pinned it.
Later: REST and MCP
An agent or a script pins an issue with the same rules. The REST path is under /api/v1/repos/{owner}/{repo}.
| You want to | REST | MCP tool |
|---|---|---|
| Pin or unpin | PUT or DELETE /issues/{n}/pin | pin_issue, unpin_issue |
Use the REST API has the other routes.