{
 "schema_version": 1,
 "generated": "2026-10-23",
 "id": "croffasia-itsaplan--link-pull-requests-to-issues-automatically",
 "repo": "croffasia/itsaplan",
 "repo_url": "https://github.com/croffasia/itsaplan",
 "repo_slug": "croffasia-itsaplan",
 "title": "Link pull requests to issues and move them on merge",
 "page_title": "How to link pull requests to issues and move them on merge with Itsaplan",
 "summary": "Write Fixes KEY-42 in a pull request so the issue follows the code through review.",
 "who": "A developer or tech lead whose team tracks work in It's a Plan but ships code on GitHub, GitLab, Gitea, Forgejo, or Bitbucket.",
 "problem": "Issues go stale after the code is merged because nobody updates the tracker by hand.",
 "outcome": "The pull request is linked to the issue, and the issue moves when the pull request opens and merges.",
 "steps": [
  "Connect your repository's forge to the instance, using GitHub, GitLab, Gitea, Forgejo, or Bitbucket.",
  "Find the issue key on the board, for example KEY-42.",
  "Write \"Fixes KEY-42\" in the pull request title or description.",
  "Open the pull request and check that it appears on the linked issue.",
  "Merge the pull request and confirm the issue moved to the state you expect."
 ],
 "agent_prompt": "For the itsaplan issue <issue key>, open a pull request in <repo> whose description says \"Fixes <issue key>\". Report whether the pull request is linked to the issue and whether the issue state changes after the pull request opens and after it merges.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README gives the \"Fixes KEY-42\" pattern as an example only, so test it on one pull request before relying on it across the team.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "typescript",
 "requirements": [
  "Docker and Bun for a local try-out, or a Railway account with a domain of your own for hosted deploy",
  "A model or coding CLI for internal or external agents, if you use agents",
  "Admin access to the instance to set up agents and API keys"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/croffasia-itsaplan/link-pull-requests-to-issues-automatically/",
 "md": "https://dedupedai.com/use-cases/croffasia-itsaplan/link-pull-requests-to-issues-automatically/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/croffasia-itsaplan--link-pull-requests-to-issues-automatically.json",
 "api_version": "v1"
}
