Loading...
Loading...
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.
npx skill4agent add getsentry/skills pr-link-issue#### Issueslinear-linkback<issue-url>https://github.com/<owner>/<repo>/issues/<n><pr-number>gh pr view --json number,body -q '.number'#1234gh issue view <n> --repo <owner>/<repo> --json comments \
-q '.comments[] | select(.author.login=="linear-code") | .body' \
| grep -Eioe '[a-z]+-[0-9]+' | head -1gh pr view <pr-number> --json body -q '.body'#### Issues#### Issues#### Issues
* Resolves: #<n>
* Resolves: <linear-key>gh pr edit <pr-number> --body "$(cat <<'EOF'
<new body>
EOF
)"gh pr view <pr-number> --json url -q '.url'linear-codePY-2357PY-…JS-…[a-z]+-[0-9]+