Skip to content

Commit e2ed0e5

Browse files
Merge branch 'workflow-updates' of https://github.com/PSModule/Process-PSModule into test/important-file-changes
2 parents 0b403ab + 150c481 commit e2ed0e5

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
@@ -16,13 +16,13 @@ $ARGUMENTS
1616

1717
## Supported Change Types
1818

19-
| Type | Icon | Labels | Description |
20-
| ----- | ---- | -------------- | ------------------------------------------ |
21-
| Major | 🌟 | `Major` | Breaking changes that affect compatibility |
22-
| Minor | 🚀 | `Minor` | New features or enhancements |
23-
| Patch | 🩹 | `Patch` | Small fixes or improvements |
24-
| Fix | 🪲 | `Fix`, `Patch` | Bugfixes |
25-
| Docs | 📖 | `Docs` | Documentation changes only |
19+
| Type | Icon | Labels | Description |
20+
| ----------- | ---- | -------------- | -------------------------------------------|
21+
| Major | 🌟 | `Major` | Breaking changes that affect compatibility |
22+
| Minor | 🚀 | `Minor` | New features or enhancements |
23+
| Patch | 🩹 | `Patch` | Small fixes or improvements |
24+
| Docs | 📖 | `NoRelease` | Documentation changes only |
25+
| Maintenance | ⚙️ | `NoRelease` | CI/CD, build configs, internal maintenance |
2626

2727
## Execution Steps
2828

@@ -39,13 +39,13 @@ $ARGUMENTS
3939
- If in doubt, ask the user to clarify which repository to target.
4040

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

7373
5. **Generate PR title**:
74-
- **If issue title retrieved**: Use format `<Icon> [<Change Type>]: <Issue Title>`
74+
- **If issue title retrieved**: Use format `<Icon> [<type of change>]: <Issue Title>`
7575
- Examples:
7676
- `🚀 [Feature]: Add support for custom module templates`
7777
- `🪲 [Fix]: Resolve null reference in parameter validation`
7878
- `📖 [Docs]: Update installation guide with prerequisites`
79+
- `⚙️ [Maintenance]: Update Release workflow and dependencies`
7980

8081
6. **Generate release note style description**:
8182
- The PR description will be used automatically as the release note in an automated release
@@ -141,8 +142,7 @@ $ARGUMENTS
141142
- Add labels to PR - owner/repo should be target repository, use `update_issue` (PRs are issues in GitHub API)
142143

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

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

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

163155
## Notes
164156

0 commit comments

Comments
 (0)