Skip to content

Commit 0ab1adb

Browse files
📝[Fix]: Correct typo in PR prompt documentation and enhance clarity in execution steps
1 parent c4d0a55 commit 0ab1adb

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/prompts/pr.prompt.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ARGUMENTS
1919
| Major | 🌟 | `Major` | Breaking changes that affect compatibility |
2020
| Minor | 🚀 | `Minor` | New features or enhancements |
2121
| Patch | 🩹 | `Patch` | Small fixes or improvements |
22-
| Fix | 🪲 | `Fix`, `Patch` | Bug fixes |
22+
| Fix | 🪲 | `Fix`, `Patch` | Bugfixes |
2323
| Docs | 📖 | `Docs` | Documentation changes only |
2424

2525
## Execution Steps
@@ -132,16 +132,9 @@ $ARGUMENTS
132132
- Set PR to target the default branch (main/master) of the target repository
133133
- Open as a **draft PR** (or keep as draft if updating)
134134
- **Use GitHub MCP tools** to perform these operations in the **target repository**:
135-
```
136-
# Create PR (if not exists) - owner/repo should be target repository
137-
mcp_github_github_create_pull_request
138-
139-
# Update PR (if exists) - owner/repo should be target repository
140-
mcp_github_github_update_pull_request
141-
142-
# Add labels to PR - owner/repo should be target repository
143-
mcp_github_github_add_labels_to_issue (PRs are issues in GitHub API)
144-
```
135+
- Create PR (if not exists) - owner/repo should be target repository, use `mcp_github_github_create_pull_request`
136+
- Update PR (if exists) - owner/repo should be target repository, use `mcp_github_github_update_pull_request`
137+
- Add labels to PR - owner/repo should be target repository, use `mcp_github_github_add_labels_to_issue` (PRs are issues in GitHub API)
145138

146139
8. **Apply labels to the PR**:
147140
- Add the **change type label** based on the type specified (Major, Minor, Patch, Fix, or Docs)
@@ -154,15 +147,17 @@ $ARGUMENTS
154147
- Summarize the PR title, type, and labels applied
155148
- If in fork mode, remind the user that the PR was created in the upstream repository
156149

157-
**Example Usage**:
150+
## Example usage
151+
158152
- `/PR` - Create a PR for the current changes
159153
- `/PR Minor` - Create a PR for a new feature
160-
- `/PR Fix` - Create a PR for a bug fix
154+
- `/PR Fix` - Create a PR for a bugfix
161155
- `/PR Docs` - Create a PR for documentation changes
162156
- `/PR Major` - Create a PR for breaking changes
163157
- `/PR Patch` - Create a PR for small improvements
164158

165-
**Notes**:
159+
## Notes
160+
166161
- **This command always stages all changes (`git add .`), commits if needed, and pushes to origin before creating/updating the PR**
167162
- Changes are always pushed to `origin` remote
168163
- In fork mode, PRs and Issue operations are performed on the `upstream` repository

0 commit comments

Comments
 (0)