Skip to content

Commit 150c481

Browse files
🩹 [Patch]: Update supported change types and execution steps in PR prompt
1 parent 64f6e27 commit 150c481

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

ā€Ž.github/prompts/PSModule.pr.prompt.mdā€Ž

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ $ARGUMENTS
1414

1515
## Supported Change Types
1616

17-
| Type | Icon | Labels | Description |
18-
| ----- | ---- | -------------- | ------------------------------------------ |
19-
| Major | 🌟 | `Major` | Breaking changes that affect compatibility |
20-
| Minor | šŸš€ | `Minor` | New features or enhancements |
21-
| Patch | 🩹 | `Patch` | Small fixes or improvements |
22-
| Fix | 🪲 | `Fix`, `Patch` | Bugfixes |
23-
| Docs | šŸ“– | `Docs` | Documentation changes only |
17+
| Type | Icon | Labels | Description |
18+
| ----------- | ---- | -------------- | -------------------------------------------|
19+
| Major | 🌟 | `Major` | Breaking changes that affect compatibility |
20+
| Minor | šŸš€ | `Minor` | New features or enhancements |
21+
| Patch | 🩹 | `Patch` | Small fixes or improvements |
22+
| Docs | šŸ“– | `NoRelease` | Documentation changes only |
23+
| Maintenance | āš™ļø | `NoRelease` | CI/CD, build configs, internal maintenance |
2424

2525
## Execution Steps
2626

@@ -37,13 +37,13 @@ $ARGUMENTS
3737
- If in doubt, ask the user to clarify which repository to target.
3838

3939
2. **Determine the change type**:
40-
1. Parse the user input to identify the change type (Major, Minor, Patch, Fix, or Docs)
40+
1. Parse the user input to identify the change type (Major, Minor, Patch, Fix, Docs, or Maintenance)
4141
2. If nothing is provided, **analyze ALL changes in the branch** to infer the type:
4242
- Run `git diff origin/main...HEAD --name-only` to get all changed files in the branch
4343
- Read the diff content using `git diff origin/main...HEAD` to understand the nature of changes
4444
- Categorize based on ALL changes combined, not just recent commits:
45+
* **Maintenance**: CI/CD workflows, build configs, dependency updates, or internal tooling with no user-facing changes
4546
* **Docs**: ONLY if ALL changes are to documentation files (*.md, docs/, .github/prompts/, etc.) with no code/functionality changes
46-
* **Fix**: If changes specifically fix bugs without adding new features
4747
* **Patch**: Small fixes or improvements that do not add new features
4848
* **Minor**: New features or enhancements that do not break existing functionality
4949
* **Major**: Changes that break backward compatibility (e.g., removing public APIs, changing method signatures)
@@ -69,11 +69,12 @@ $ARGUMENTS
6969
- Stop if the user cannot provide either of these.
7070

7171
5. **Generate PR title**:
72-
- **If issue title retrieved**: Use format `<Icon> <Issue Title>`
72+
- **If issue title retrieved**: Use format `<Icon> [<type of change>]: <Issue Title>`
7373
- Examples:
7474
- `šŸš€ [Feature]: Add support for custom module templates`
7575
- `🪲 [Fix]: Resolve null reference in parameter validation`
7676
- `šŸ“– [Docs]: Update installation guide with prerequisites`
77+
- `āš™ļø [Maintenance]: Update Release workflow and dependencies`
7778

7879
6. **Generate release note style description**:
7980
- The PR description will be used automatically as the release note in an automated release
@@ -139,8 +140,7 @@ $ARGUMENTS
139140
- Add labels to PR - owner/repo should be target repository, use `update_issue` (PRs are issues in GitHub API)
140141

141142
8. **Apply labels to the PR**:
142-
- Add the **change type label** based on the type specified (Major, Minor, Patch, Fix, or Docs)
143-
- For Fix type, add both `Fix` and `Patch` labels
143+
- Add the **change type label** based on the type specified (Major, Minor, Patch, Fix, Docs, or Maintenance)
144144
- If currently in a feature workflow phase (e.g., Planning, Implementation), also apply that phase label
145145
- Use GitHub MCP to add labels in the **target repository** (upstream in fork mode, origin otherwise)
146146

@@ -149,14 +149,6 @@ $ARGUMENTS
149149
- Summarize the PR title, type, and labels applied
150150
- If in fork mode, remind the user that the PR was created in the upstream repository
151151

152-
## Example usage
153-
154-
- `/PR` - Create a PR for the current changes
155-
- `/PR Minor` - Create a PR for a new feature
156-
- `/PR Fix` - Create a PR for a bugfix
157-
- `/PR Docs` - Create a PR for documentation changes
158-
- `/PR Major` - Create a PR for breaking changes
159-
- `/PR Patch` - Create a PR for small improvements
160152

161153
## Notes
162154

0 commit comments

Comments
Ā (0)