@@ -20,14 +20,14 @@ Given the implementation details provided as an argument, do this:
2020
21211 . ** 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
86868 . 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
0 commit comments