Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb9edb5

Browse files
committed
Add open PR check to upgrade-pylib-next command
1 parent 61abc36 commit cb9edb5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.claude/commands/upgrade-pylib-next.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
allowed-tools: Skill(upgrade-pylib)
2+
allowed-tools: Skill(upgrade-pylib), Bash(gh pr list:*)
33
---
44

55
# Upgrade Next Python Library
@@ -10,6 +10,10 @@ Find the next Python library module ready for upgrade and run `/upgrade-pylib` f
1010

1111
!`cargo run --release -- scripts/update_lib todo 2>/dev/null`
1212

13+
## Open Upgrade PRs
14+
15+
!`gh pr list --search "Update in:title" --json number,title --template '{{range .}}#{{.number}} {{.title}}{{"\n"}}{{end}}'`
16+
1317
## Instructions
1418

1519
From the TODO list above, find modules matching these patterns (in priority order):
@@ -19,6 +23,8 @@ From the TODO list above, find modules matching these patterns (in priority orde
1923

2024
These patterns indicate modules that are ready to upgrade without blocking dependencies.
2125

26+
**Important**: Skip any modules that already have an open PR in the "Open Upgrade PRs" list above.
27+
2228
**After identifying a suitable module**, run:
2329
```
2430
/upgrade-pylib <module_name>

0 commit comments

Comments
 (0)