Skip to content

Commit 53a416c

Browse files
📝[Fix]: Enhance repository handling instructions across prompts for clarity and consistency
1 parent c994a0b commit 53a416c

File tree

4 files changed

+38
-38
lines changed

4 files changed

+38
-38
lines changed

.github/prompts/implement.prompt.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ $ARGUMENTS
2525

2626
1. **Set Implementing label immediately**
2727
- **Determine target repository**:
28-
- Run `git remote -v` to check configured remotes
28+
- Run `git remote -v` to check configured remotes.
2929
- **If `upstream` remote exists**: Fork mode
30-
- Parse the upstream URL to extract owner and repo name
31-
- Example: `upstream https://github.com/PSModule/Utilities.git` → owner: `PSModule`, repo: `Utilities`
32-
- Use `upstream_owner/upstream_repo` for all GitHub operations
30+
- Use `upstream` owner/repo for all GitHub operations (PRs, Issues, labels)
31+
- Use `origin` for all git operations (push, fetch)
3332
- **If only `origin` remote exists**: Origin mode
34-
- Parse the origin URL to extract owner and repo name
35-
- Use `origin_owner/origin_repo` for all GitHub operations
33+
- Use `origin` owner/repo for all operations (both git push and GitHub operations)
34+
- Parse the URLs to extract owner and repo name: `https://github.com/<owner>/<repository>.git`.
35+
- If in doubt, ask the user to clarify which repository to target.
3636
- Get the issue number associated with the current feature branch.
3737
- **Add `Implementing` label** to the issue and PR immediately in the target repository.
3838
- **Remove `Planning` label** from the issue and PR.

.github/prompts/plan.prompt.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ Given the implementation details provided as an argument, do this:
2020

2121
1. **Set Planning label immediately**:
2222
- **Determine target repository**:
23-
- Run `git remote -v` to check configured remotes
23+
- Run `git remote -v` to check configured remotes.
2424
- **If `upstream` remote exists**: Fork mode
25-
- Parse the upstream URL to extract owner and repo name
26-
- Example: `upstream https://github.com/PSModule/Utilities.git` → owner: `PSModule`, repo: `Utilities`
27-
- Use `upstream_owner/upstream_repo` for all GitHub operations
25+
- Use `upstream` owner/repo for all GitHub operations (PRs, Issues, labels)
26+
- Use `origin` for all git operations (push, fetch)
2827
- **If only `origin` remote exists**: Origin mode
29-
- Parse the origin URL to extract owner and repo name
30-
- Use `origin_owner/origin_repo` for all GitHub operations
28+
- Use `origin` owner/repo for all operations (both git push and GitHub operations)
29+
- Parse the URLs to extract owner and repo name: `https://github.com/<owner>/<repository>.git`.
30+
- If in doubt, ask the user to clarify which repository to target.
3131
- Get the issue number associated with the current feature branch
3232
- **Add 'Planning' label** to the issue immediately in the target repository
3333
- **Remove 'Specification' label** from the issue
@@ -85,14 +85,14 @@ Given the implementation details provided as an argument, do this:
8585

8686
8. Create or update a Pull Request:
8787
- **Determine workflow mode and target repository**:
88-
- Run `git remote -v` to check configured remotes
89-
- **If `upstream` remote exists** (fork mode):
90-
- Parse the upstream URL to extract owner and repo name
91-
- Example: `upstream https://github.com/PSModule/Utilities.git` → owner: `PSModule`, repo: `Utilities`
92-
- Use `upstream_owner/upstream_repo` for all GitHub operations
93-
- **If only `origin` remote exists** (local mode - default):
94-
- Parse the origin URL to extract owner and repo name
95-
- Use `origin_owner/origin_repo` for all GitHub operations
88+
- Run `git remote -v` to check configured remotes.
89+
- **If `upstream` remote exists**: Fork mode
90+
- Use `upstream` owner/repo for all GitHub operations (PRs, Issues, labels)
91+
- Use `origin` for all git operations (push, fetch)
92+
- **If only `origin` remote exists**: Origin mode
93+
- Use `origin` owner/repo for all operations (both git push and GitHub operations)
94+
- Parse the URLs to extract owner and repo name: `https://github.com/<owner>/<repository>.git`.
95+
- If in doubt, ask the user to clarify which repository to target.
9696
- **Determine PR operation** (create vs update):
9797
- If PR already exists for this branch, UPDATE it
9898
- If no PR exists, CREATE a new one

.github/prompts/specify.prompt.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ The text the user typed after `/specify` in the triggering message **is** the fe
2121
Given that feature description, do this:
2222

2323
1. **Detect repository mode**:
24-
- Run `git remote -v` to check configured remotes
25-
- **If `upstream` remote exists**: Fork mode detected
26-
- Parse the upstream URL to extract owner and repo name
27-
- Example: `upstream https://github.com/PSModule/Utilities.git` → owner: `PSModule`, repo: `Utilities`
28-
- Inform user: "Fork contribution detected. Issues and PRs will target `<upstream_owner>/<upstream_repo>`"
29-
- **If only `origin` remote exists**: Origin mode (default)
30-
- Parse the origin URL to extract owner and repo name
31-
- Use `origin_owner/origin_repo` for all GitHub operations
24+
- Run `git remote -v` to check configured remotes.
25+
- **If `upstream` remote exists**: Fork mode
26+
- Use `upstream` owner/repo for all GitHub operations (PRs, Issues, labels)
27+
- Use `origin` for all git operations (push, fetch)
28+
- **If only `origin` remote exists**: Origin mode
29+
- Use `origin` owner/repo for all operations (both git push and GitHub operations)
30+
- Parse the URLs to extract owner and repo name: `https://github.com/<owner>/<repository>.git`.
31+
- If in doubt, ask the user to clarify which repository to target.
3232

3333
2. Analyze the feature description and generate a concise, descriptive branch name:
3434
- Extract the core concept/action from the description (2-4 words maximum)
@@ -69,8 +69,8 @@ Given that feature description, do this:
6969

7070
6. Create or update a GitHub issue for this feature:
7171
- **Use target repository determined in step 1**:
72-
- If fork mode: Use `upstream_owner/upstream_repo` for all GitHub operations
73-
- If origin mode: Use `origin_owner/origin_repo` for all GitHub operations
72+
- If fork mode: Use `upstream` owner/repo for all GitHub operations (PRs, Issues, labels)
73+
- If origin mode: Use `origin` owner/repo for all operations (both git push and GitHub operations)
7474
- **Generate the issue title** in format `<Icon> [Type]: <Feature name>` where:
7575
- Icon: 📖 (Docs), 🪲 (Fix), ⚠️ (Security fix), 🩹 (Patch), 🚀 (Feature/Minor), 🌟 (Breaking change/Major)
7676
- Type: Docs, Fix, Patch, Feature, or Breaking change

.github/prompts/tasks.prompt.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ $ARGUMENTS
8383

8484
8. Update the Pull Request description:
8585
- **Determine workflow mode and target repository**:
86-
- Run `git remote -v` to check configured remotes
87-
- **If `upstream` remote exists** (fork mode):
88-
- Parse the upstream URL to extract owner and repo name
89-
- Example: `upstream https://github.com/PSModule/Utilities.git` → owner: `PSModule`, repo: `Utilities`
90-
- Use `upstream_owner/upstream_repo` for all GitHub operations
91-
- **If only `origin` remote exists** (local mode - default):
92-
- Parse the origin URL to extract owner and repo name
93-
- Use `origin_owner/origin_repo` for all GitHub operations
86+
- Run `git remote -v` to check configured remotes.
87+
- **If `upstream` remote exists**: Fork mode
88+
- Use `upstream` owner/repo for all GitHub operations (PRs, Issues, labels)
89+
- Use `origin` for all git operations (push, fetch)
90+
- **If only `origin` remote exists**: Origin mode
91+
- Use `origin` owner/repo for all operations (both git push and GitHub operations)
92+
- Parse the URLs to extract owner and repo name: `https://github.com/<owner>/<repository>.git`.
93+
- If in doubt, ask the user to clarify which repository to target.
9494
- Append or update the tasks.md content in the existing PR description
9595
- Format tasks with checkboxes for each task phase:
9696
* Setup: `- [ ] T001: Task description`

0 commit comments

Comments
 (0)