/pr-link-issue
Append a GitHub issue link and its Linear ticket to the current PR's description. Use when asked to "link issue to pr", "fill in issue and linear in pr", "add issue refs to pr", or when given a GitHub issue URL and asked to attach it to the current PR. Resolves the Linear ticket
One skill from sentry-skills.
shell
$ npx -y skills add getsentry/skills --skill pr-link-issue --agent claude-codeInstalls just this skill. Get the whole plugin for auto-invocation.
How it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/pr-link-issue
Context preview
The summary Claude sees to decide when to auto-load this skill.
Append a GitHub issue link and its Linear ticket to the current PR's description. Use when asked to "link issue to pr", "fill in issue and linear in pr", "add issue refs to pr", or when given a GitHub issue URL and asked to attach it to the current PR. Resolves the Linear ticket
Stats
Stars883
Forks45
LanguagePython
LicenseApache-2.0
Ships with sentry-skills
SKILL.md
pr-link-issue.SKILL.md
--- name: pr-link-issue description: Append a GitHub issue link and its Linear ticket to the current PR's description. Use when asked to "link issue to pr", "fill in issue and linear in pr", "add issue refs to pr", or when given a GitHub issue URL and asked to attach it to the current PR. Resolves the Linear ticket automatically from the issue's linear-linkback comment. --- # Link a GitHub Issue + Linear Ticket on a PR Appends a Sentry-style `#### Issues` block to a PR description, referencing both the GitHub issue and the Linear ticket pulled from the issue's `linear-linkback` comment. ## Inputs - `<issue-url>` โ GitHub issue URL like `https://github.com/<owner>/<repo>/issues/<n>`. Issue number alone is fine if the PR is in the same repo. - (optional) `<pr-number>` โ defaults to the open PR for the current branch. ## Steps 1. **Resolve the PR number** โ skip if user supplied one: ```bash gh pr view --json number,body -q '.number' ``` If no PR exists on the branch, stop and tell the user. 2. Extract issue number + repo from the input URL, or accept a bare `#1234` for current repo. 3. Fetch the Linear ticket from the issue's linear-linkback comment: ```bash gh issue view <n> --repo <owner>/<repo> --json comments \ -q '.comments[] | select(.author.login=="linear-code") | .body' \
