Record an existing GitHub PR or GitLab MR in a Pappardelle workspace so rail status follows its published branch. Use after creating or reusing a PR/MR, especially when its remote branch differs from the workspace name.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Link Pr?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/chardigio-link-pr)
---
name: link-pr
description: Record an existing GitHub PR or GitLab MR in a Pappardelle workspace so rail status follows its published branch. Use after creating or reusing a PR/MR, especially when its remote branch differs from the workspace name.
---
# Link a workspace PR or MR
After successfully creating or reusing a PR/MR for a Pappardelle workspace, call the `link_pr` tool with its URL before reporting the workflow complete, passing `repository` when the source repository isn't the directory this session started in. Without the tool, run `pappardelle link-pr <url>` from the source repository. The command verifies the URL through `gh` or `glab` and saves the published branch; rerunning replaces the mapping for that repository and local branch.
For a nested repository, pass the outer workspace root as `workspace` (`--workspace` on the command) so the mapping belongs to the outer workspace. Run once for each repository with a PR/MR. Do not create another PR just to repair an indicator.
If linking fails, report the failure and preserve the existing PR/MR. Do not claim the workspace is linked or hand-edit its cached pipeline status. This step records an existing PR/MR; it does not authorize creating, pushing, or publishing one.