
Pr Link Issue
- 10 installs
- 898 repo stars
- Updated August 3, 2026
- getsentry/sentry-skills
pr-link-issue links GitHub pull requests to Sentry issues using Sentry CLI and API workflows with issue ID extraction from branch names or commit messages.
Key points
- Append a GitHub issue link and its Linear ticket to the current PR's description.
- Platform-specific setup patterns for pr-link-issue.
- Evidence-backed steps from upstream SKILL.md.
- When-to-use criteria for pr-link-issue versus alternatives.
Pr Link Issue by the numbers
- 10 all-time installs (skills.sh)
- Ranked #431 of 733 Git & Pull Requests skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
pr-link-issue capabilities & compatibility
- Capabilities
- pr link issue quick start · pr link issue when to use guidance · pr link issue integration patterns
- Works with
- github · sentry
- Use cases
- code review
What pr-link-issue says it does
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.
npx skills add https://github.com/getsentry/sentry-skills --skill pr-link-issueAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 10 |
|---|---|
| repo stars | ★ 898 |
| Last updated | August 3, 2026 |
| Repository | getsentry/sentry-skills ↗ |
How do I use pr-link-issue correctly?
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
Who is it for?
Teams implementing pr-link-issue workflows from the catalog.
Skip if: Skip when requirements clearly match a different specialized stack.
When should I use this skill?
User asks about pr-link-issue, append a github issue link and its linear ticket to the current pr's description. use when.
What you get
Working pr-link-issue setup with validated configuration and next steps.
Files
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 likehttps://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:
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:
gh issue view <n> --repo <owner>/<repo> --json comments \
-q '.comments[] | select(.author.login=="linear-code") | .body' \
| grep -Eioe '[a-z]+-[0-9]+' | head -1If no match, fall back to asking the user for the Linear key, or omit it.
4. Read the existing PR body so you can append rather than overwrite:
gh pr view <pr-number> --json body -q '.body'5. Construct the new body. If the body is empty, use just the #### Issues block. Otherwise, append it after a blank line. Don't duplicate — if #### Issues is already present, replace that section instead of adding a second one.
Format:
#### Issues
* Resolves: #<n>
* Resolves: <linear-key>6. Update the PR with a heredoc to preserve newlines:
gh pr edit <pr-number> --body "$(cat <<'EOF'
<new body>
EOF
)"7. Confirm by echoing the resulting PR URL:
gh pr view <pr-number> --json url -q '.url'Notes
- Linear linkback comments are posted by the GitHub user
linear-code. The body contains a markdown link whose text is the Linear key, e.g.PY-2357. - Project keys vary per repo (
PY-…for sentry-python,JS-…for sentry-javascript, etc.) — the regex[a-z]+-[0-9]+covers them. - Don't strip existing PR content. Always read first, append/replace second.
- If the issue doesn't have a Linear linkback yet (newly filed), proceed with just the GitHub issue reference and tell the user the Linear key is missing.
Related skills
FAQ
What does pr-link-issue do?
pr-link-issue links GitHub pull requests to Sentry issues using Sentry CLI and API workflows with issue ID extraction from branch names or commit messages.
When should I use pr-link-issue?
User asks about pr-link-issue, append a github issue link and its linear ticket to the current pr's description. use when.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.