Skip to content

Commit 01ede53

Browse files
author
Tom Brandenburg
committed
fix: ghar issue fix
1 parent dfd0c5b commit 01ede53

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.opencode/commands/ghar-issue-fix.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
---
22
description: Implement a fix for the latest open issue
3+
argument-hint: <issue-number|url>
34
---
45

56
# Implement Issue Fix
67

8+
**Input**: $ARGUMENTS
9+
710
---
811

912
## Your Mission
@@ -24,11 +27,15 @@ Execute the implementation plan from:
2427

2528
## Phase 1: LOAD - Get the Artifact
2629

27-
### 1.1 Get latest open Github issue with implementation plan
30+
### 1.1 Get Github issue with implementation plan
31+
32+
* Check the input format:
33+
* Looks like a number (`123`, `#123`) → GitHub issue number
34+
* Starts with `http` → GitHub URL → extract issue number
35+
* Anything else → IMMEDIATELY STOP here!
2836

29-
* Use `gh` CLI to get the **latest** **open** issue **without a linked PR**
30-
* Check if that issue already has an implementation plan comment
31-
* If not, IMMEDIATELY STOP here!
37+
* Check if that issue already has an implementation plan comment with `gh` CLI
38+
* If not, IMMEDIATELY STOP here!
3239

3340
### 1.2 Load and Parse Artifact
3441

0 commit comments

Comments
 (0)