Skip to main content
statuslinesSource-backed
GitHub logo

PR Closing Keywords Statusline

Claude Code statusline that checks the active pull request body for GitHub closing keywords and shows whether issue auto-closure linkage is present.

by MkDev11·added 2026-06-04·
Language:bash
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue, https://github.com/JSONbored/awesome-claude/blob/main/content/statuslines/pr-closing-keywords-statusline.mdx
Brand
GitHub
Brand domain
github.com
Brand asset source
brandfetch
Safety notes
Closing keywords are workflow signals, not proof that the PR actually satisfies the linked issue., Some repositories use manual issue closure or external trackers, so missing keywords should be interpreted with project policy., Keep automated PR body edits separate from this read-only statusline.
Privacy notes
The script prints only aggregate closing-reference counts and the pull request number., It reads the pull request body, which can contain private planning details in private repositories., Private repository access follows the local GitHub CLI account and organization policy.
Author
MkDev11
Submitted by
MkDev11
Claim status
unclaimed
Last verified
2026-06-04

Decision playbook

Review trust signals before you adopt

Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.

Compare context
Selected

0

Current score

78

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Complete

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as source-backed.

    Done
  • Metadata reviewed

    Registry metadata indicates a reviewed listing.

    Done

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Needs review

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    No package verification flag provided.

    Pending
  • Checksum metadata

    No checksum provided for downloaded artifact.

    Pending

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

Config edit

Copy-ready — paste the snippet to get started.

Adoption plan

Balanced adoption plan

Current risk score 16/100. Use staged verification before broader rollout.

Risk 16

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    Listing has review metadata.

    Done
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    No package verification/checksum metadata.

    Pending

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Required evidence gates are covered (5/6 signals complete).

Risk 15

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Present

Review metadata is present.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Missing

Package integrity metadata is missing.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required evidence gates are covered for this preset.

Decision timeline

Decision timeline · balanced

5/6 steps complete with no blocking gaps for this preset.

Risk 14

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is available.

Done

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is missing.

Pending

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

No required blockers for this timeline preset.

Prerequisite readiness

Prerequisite readiness

3 prerequisites to line up before setup. Have accounts and credentials ready first.

0/3 ready
Account & credentials1Install & runtime1General1

Safety & privacy surface

Safety & privacy surface

3 safety and 3 privacy notes across 2 risk areas. Review closely: network access.

2 areas
  • SafetyGeneralClosing keywords are workflow signals, not proof that the PR actually satisfies the linked issue.
  • SafetyGeneralSome repositories use manual issue closure or external trackers, so missing keywords should be interpreted with project policy.
  • SafetyGeneralKeep automated PR body edits separate from this read-only statusline.
  • PrivacyNetwork accessThe script prints only aggregate closing-reference counts and the pull request number.
  • PrivacyNetwork accessIt reads the pull request body, which can contain private planning details in private repositories.
  • PrivacyGeneralPrivate repository access follows the local GitHub CLI account and organization policy.

Safety notes

  • Closing keywords are workflow signals, not proof that the PR actually satisfies the linked issue.
  • Some repositories use manual issue closure or external trackers, so missing keywords should be interpreted with project policy.
  • Keep automated PR body edits separate from this read-only statusline.

Privacy notes

  • The script prints only aggregate closing-reference counts and the pull request number.
  • It reads the pull request body, which can contain private planning details in private repositories.
  • Private repository access follows the local GitHub CLI account and organization policy.

Prerequisites

  • GitHub CLI installed and logged in for the current repository.
  • jq available for reading pull request JSON.
  • The current branch has an associated pull request with a body that can be read by the local account.

Schema details

Install type
config
Troubleshooting
No
Runtime and command metadata
Script language
bash
Script body
#!/usr/bin/env bash
set -u

main() {
if ! command -v gh >/dev/null 2>&1; then
  echo "linkage: gh missing"
  exit 0
fi
if ! command -v jq >/dev/null 2>&1; then
  echo "linkage: jq missing"
  exit 0
fi

pr_json=$(gh pr view --json number,body 2>/dev/null || true)
if [ -z "$pr_json" ]; then
  echo "linkage: no active PR"
  exit 0
fi

number=$(printf '%s' "$pr_json" | jq -r '.number // empty')
body=$(printf '%s' "$pr_json" | jq -r '.body // ""')
closing_refs=$(printf '%s\n' "$body" | grep -Eio '\b(close[sd]?|fix(e[sd])?|resolve[sd]?)[: ]+#([0-9]+)' | wc -l | tr -d ' ')

if [ "$closing_refs" -gt 0 ]; then
  state="linked"
else
  state="missing close"
fi

printf 'linkage: PR #%s | closing refs %s | %s\n' "$number" "$closing_refs" "$state"
}

case $- in
  *n*) ;;
  *) main "$@" ;;
esac
Full copyable content
{
  "statusLine": {
    "type": "command",
    "command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/pr-closing-keywords-statusline.sh"
  }
}

About this resource

Source notes

  • GitHub documents closing keywords that link pull requests to issues and close the linked issues when the pull request merges.
  • This entry checks for those documented keywords in the active pull request body rather than relying on GitHub CLI metadata docs.

Duplicate check

Checked existing statuslines, live HeyClaude statuslines, open pull requests, and repository content for pr-closing-keywords-statusline, PR issue linkage, closing keywords, GitHub pull request linkage, and gh-pr-issue-linkage-statusline. The earlier cli.github.com submission was self-closed after #960 showed that source domain overlaps the accepted repository-health statusline; this replacement uses GitHub's issue-linking documentation and a closing-keyword-focused scope.

Disclosure

Editorial statusline recipe. No paid placement or affiliate link is used.

Source citations

Add this badge to your README

Show that PR Closing Keywords Statusline is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/statuslines/pr-closing-keywords-statusline.svg)](https://heyclau.de/entry/statuslines/pr-closing-keywords-statusline)

How it compares

PR Closing Keywords Statusline side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

Field

Claude Code statusline that checks the active pull request body for GitHub closing keywords and shows whether issue auto-closure linkage is present.

Open dossier

Claude Code statusline that reads GitHub REST check runs for the active pull request head commit and summarizes failed, pending, and passing checks.

Open dossier

Claude Code statusline that counts GitHub Flavored Markdown task list items from a linked issue body or local issue-body file.

Open dossier

Claude Code statusline that uses GitHub CLI to show repository health basics: archive state, open PR count, open issue count, and default branch.

Open dossier
Next steps
Trust
Review statusReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewed
Package trustPackage not verifiedPackage not verifiedPackage not verifiedPackage not verified
Source provenanceSource-backedSource-backedSource-backedSource-backed
SubmitterMkDev11MkDev11MkDev11MkDev11
Install riskReview firstReview firstReview firstReview first
Notes Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓
BrandGitHub logoGitHubGitHub logoGitHubGitHub logoGitHub
Categorystatuslinesstatuslinesstatuslinesstatuslines
SourceSource-backedSource-backedSource-backedSource-backed
AuthorMkDev11MkDev11MkDev11MkDev11
Added2026-06-042026-06-042026-06-042026-06-04
Platforms
Harness
Source repo
Safety notesClosing keywords are workflow signals, not proof that the PR actually satisfies the linked issue. Some repositories use manual issue closure or external trackers, so missing keywords should be interpreted with project policy. Keep automated PR body edits separate from this read-only statusline.Check-run counts are a review prompt, not proof that every required branch protection rule is satisfied. Repositories with more than 100 check runs may need pagination or a slower dedicated dashboard. Keep the refresh interval moderate so the statusline does not repeatedly query GitHub APIs.Task completion is a planning signal and should not replace tests, review, or acceptance criteria. Branch-derived issue numbers are a convenience; set GITHUB_ISSUE_NUMBER explicitly when branch names contain unrelated numbers. Keep issue bodies free of secrets before using them in terminal-visible automation.Repository counts are orientation signals and should not replace issue triage, release gates, or maintainer review. The `--limit 100` query cap keeps the statusline fast; very large queues may need a dedicated dashboard. The script does not modify repository settings, issues, or pull requests.
Privacy notesThe script prints only aggregate closing-reference counts and the pull request number. It reads the pull request body, which can contain private planning details in private repositories. Private repository access follows the local GitHub CLI account and organization policy.The script prints aggregate check-run counts and the pull request number. Private repository metadata follows the local GitHub CLI account and may appear in terminal recordings. The statusline does not print check names, workflow names, branch names, or commit messages.The statusline prints only aggregate task counts and an issue number or local label. If GitHub CLI fetches private issue bodies, access follows the local account and organization policy. Local issue-body files can contain sensitive planning details; avoid echoing raw bodies in shared logs.The statusline prints repository owner/name, counts, default branch, and state. Private repository metadata follows the local GitHub CLI login and may appear in terminal screenshots. Organization policies can restrict which counts are visible to the local account.
Prerequisites
  • GitHub CLI installed and logged in for the current repository.
  • jq available for reading pull request JSON.
  • The current branch has an associated pull request with a body that can be read by the local account.
  • GitHub CLI installed and logged in for the repository.
  • jq available for counting GitHub REST check-run states.
  • The current branch has an associated pull request and the account can read check runs for its head commit.
  • An issue body available through GFM_TASK_BODY_FILE, GITHUB_ISSUE_NUMBER plus GitHub CLI, or a branch name containing the issue number.
  • The issue body uses GitHub Flavored Markdown task list syntax.
  • GitHub CLI is optional unless the statusline should fetch the issue body directly.
  • GitHub CLI installed and logged in with access to the current repository.
  • jq available for reading GitHub CLI JSON output.
  • A refresh interval that respects repository size and GitHub API rate limits.
Install
Config
{
  "statusLine": {
    "type": "command",
    "command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/pr-closing-keywords-statusline.sh"
  }
}
{
  "statusLine": {
    "type": "command",
    "command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/github-check-runs-statusline.sh"
  }
}
{
  "statusLine": {
    "type": "command",
    "command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/gfm-issue-task-progress-statusline.sh"
  }
}
{
  "statusLine": {
    "type": "command",
    "command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/gh-repo-health-statusline.sh"
  }
}
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed
Open 4 picks in the interactive comparison tool

Related guides

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.