From 6a1ae927c1cf48a921d16f37120314631e3e4f47 Mon Sep 17 00:00:00 2001 From: Jayashree Huttanagoudar Date: Wed, 12 Nov 2025 16:01:41 +0530 Subject: [PATCH] Add slash command /pr:open to list open PRs with useful information --- .claude/commands/pr/open.md | 79 +++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 .claude/commands/pr/open.md diff --git a/.claude/commands/pr/open.md b/.claude/commands/pr/open.md new file mode 100644 index 000000000000..4c1c8ee6ca2d --- /dev/null +++ b/.claude/commands/pr/open.md @@ -0,0 +1,79 @@ +--- +description: Show open pull requests in the repository +--- + +## Usage + +List open pull requests in the repository with various filtering options. + +**Basic usage:** +```bash +/pr:open +``` + +**Filter by author:** +```bash +/pr:open --author @me +/pr:open --author username +``` + +**Filter by label:** +```bash +/pr:open --label bug +/pr:open --label do-not-merge/hold +``` + +**Filter by assignee:** +```bash +/pr:open --assignee username +``` + +**Change state filter:** +```bash +/pr:open --state all +/pr:open --state closed +/pr:open --state merged +``` + +**Limit results:** +```bash +/pr:open --limit 10 +``` + +**Combine filters:** +```bash +/pr:open --author @me --state all --limit 5 +/pr:open --label bug --assignee username +``` + +--- + +You are helping the user list open pull requests in this repository. + +Follow these steps: +1. Parse the args to check for any filters (author, label, etc.) +2. Use `gh pr list` to get open PRs with relevant information +3. Display the results in a clear, readable format + +Available filters from args: +- `--author ` - Filter by author +- `--label