Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
76532bf
docs: Add implementation plan for unified CI/CD workflow
MariusStorhaug Oct 2, 2025
45115ca
feat(workflow)!: unified CI/CD workflow configuration
MariusStorhaug Oct 2, 2025
95784c6
enhance: clarify task completion and PR description update process
MariusStorhaug Oct 2, 2025
4567217
Delete obsolete research, specification, tasks, and test plan documen…
MariusStorhaug Oct 2, 2025
81efd45
chore: remove obsolete integration tests for unified workflow
MariusStorhaug Oct 2, 2025
b65fd9a
feat: consolidate CI/CD workflows into a single configuration file an…
MariusStorhaug Oct 2, 2025
91de5d9
chore: streamline implementation prompt by removing redundant steps a…
MariusStorhaug Oct 2, 2025
1aa5895
πŸ“– Add specification for unified workflow configuration
MariusStorhaug Oct 2, 2025
70dc216
chore: add instruction files for PowerShell and Markdown in copilot g…
MariusStorhaug Oct 2, 2025
613f7ac
feat: add Lint-Repository job to workflow and update checkout steps f…
MariusStorhaug Oct 2, 2025
55941e0
feat: remove obsolete CI workflow files and update Lint-Repository jo…
MariusStorhaug Oct 2, 2025
7be2509
feat: update workflow conditions to handle closed pull requests and i…
MariusStorhaug Oct 2, 2025
8c0220a
feat: add scenario matrix to README for job execution based on trigge…
MariusStorhaug Oct 2, 2025
2c81030
feat: update README to include inputs, setup/teardown scripts, and pe…
MariusStorhaug Oct 3, 2025
068d360
feat: update workflows to disable credential persistence and set fetc…
MariusStorhaug Oct 3, 2025
488b3f3
Merge branch 'main' into 001-unified-workflow
MariusStorhaug Oct 3, 2025
7242662
fix(spec): correct capitalization of "SemVer" in workflow configurati…
MariusStorhaug Oct 3, 2025
e488fa9
fix(prompt): correct punctuation and formatting in implementation ins…
MariusStorhaug Oct 3, 2025
6efc10f
fix(prompt): remove unnecessary code block formatting for user input …
MariusStorhaug Oct 3, 2025
bc5d7e9
fix(prompt): correct code block formatting for GitHub issue edit command
MariusStorhaug Oct 3, 2025
243f3e7
fix(prompt): specify markdown formatting for commit message example
MariusStorhaug Oct 3, 2025
c6b1a2f
fix(workflow): remove unnecessary installation step for PSModuleHelpers
MariusStorhaug Oct 3, 2025
7e3a3d8
delete(spec): remove unified workflow configuration specification doc…
MariusStorhaug Oct 3, 2025
6d6f5a3
fix(constitution): update workflow requirements for git credential ha…
MariusStorhaug Oct 3, 2025
8b2d083
fix(workflow): remove conditional logic comments from Publish-Module job
MariusStorhaug Oct 3, 2025
49dfea7
fix(workflow): clean up commented job descriptions in workflow file
MariusStorhaug Oct 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,11 @@ pwsh -Command "ls -Recurse"
gh issue create --title "Feature" --body "Description"
```

## Other instructions

| Tech | Instruction file |
|------|------------------|
| PowerShell | [pwsh.instructions.md](./instructions/pwsh.instructions.md) |
| Markdown | [md.instructions.md](./instructions/md.instructions.md) |

<!-- MANUAL ADDITIONS END -->
31 changes: 11 additions & 20 deletions .github/prompts/implement.prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,20 @@ $ARGUMENTS
- Get the issue number associated with the current feature branch
- **Add 'Implementing' label** to the issue and PR immediately in the target repository
- **Remove 'Planning' label** from the issue and PR

**GitHub Integration**: If GitHub tools are available, update labels automatically in the target repository. If not available, use:
```bash
# If fork: gh issue edit <issue-number> --repo <upstream_owner>/<upstream_repo> --remove-label "Planning" --add-label "Implementing"
# If local: gh issue edit <issue-number> --remove-label "Planning" --add-label "Implementing"
gh issue edit <issue-number> --remove-label "Planning" --add-label "Implementing"
```

2. Run [`.specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks`](../../.specify/scripts/powershell/check-prerequisites.ps1) from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute.

3. Load and analyze the implementation context:
- **REQUIRED**: Read tasks.md for the complete task list and execution plan
- **REQUIRED**: Read plan.md for tech stack, architecture, and file structure
- **IF EXISTS**: Read data-model.md for entities and relationships
- **IF EXISTS**: Read contracts/ for API specifications and test requirements
- **IF EXISTS**: Read research.md for technical decisions and constraints
- **IF EXISTS**: Read quickstart.md for integration scenarios

4. Parse tasks.md structure and extract:
- **Detect iteration state**: Check task completion markers
- Tasks marked [X] are complete - skip unless user requests changes
Expand All @@ -53,7 +49,6 @@ $ARGUMENTS
- **Task dependencies**: Sequential vs parallel execution rules
- **Task details**: ID, description, file paths, parallel markers [P]
- **Execution flow**: Order and dependency requirements

5. Execute implementation following the task plan:
- **Skip completed tasks**: Don't re-implement tasks marked [X] unless explicitly requested
- **Resume from last incomplete task**: Start with first [ ] task found
Expand All @@ -62,36 +57,37 @@ $ARGUMENTS
- **Follow TDD approach**: Execute test tasks before their corresponding implementation tasks
- **File-based coordination**: Tasks affecting the same files must run sequentially
- **Validation checkpoints**: Verify each phase completion before proceeding

6. Implementation execution rules:
- **Setup first**: Initialize project structure, dependencies, and configuration
- **Tests before code**: If you need to write tests for contracts, entities, and integration scenarios
- **Core development**: Implement models, services, CLI commands, and endpoints
- **Integration work**: Database connections, middleware, logging, and external services
- **Polish and validation**: Unit tests, performance optimization, and documentation

7. Progress tracking and error handling:
- Report progress after each completed task
- Halt execution if any non-parallel task fails
- For parallel tasks [P], continue with successful tasks and report failed ones
- Provide clear error messages with context for debugging
- Suggest next steps if implementation cannot proceed
- **IMPORTANT**: For completed tasks, make sure to mark the task as [X] in the tasks file.

- **CRITICAL - Update task status immediately after completion**:
* After completing each task, mark it as [X] in tasks.md
* Update the PR description to mark the corresponding task checkbox from `- [ ] T###:` to `- [X] T###:`
* This MUST be done task-by-task as you progress, not at the end
* If GitHub tools are available, use them to update the PR description
* If not available, use: `gh pr edit <PR-number> --body "<updated-description>"`
* Ensure task progress is visible in real-time to users watching the PR
8. Completion validation:
- Verify all required tasks are completed
- Check that implemented features match the original specification
- Validate that tests pass and coverage meets requirements
- Confirm the implementation follows the technical plan
- Report final status with summary of completed work

9. Update the constitution:
- Read the [Constitution](../../.specify/memory/constitution.md) file.
- Read the [constitution prompt](./constitution.prompt.md) for guidance on how to update the constitution.
- Update the constitution file with details on what has been implemented in this PR
- Document the functionality that was added or changed, remove the sections that are no longer relevant
- Ensure the constitution reflects the current state of the codebase

10. Update the CHANGELOG:
- **Locate or create CHANGELOG.md** in the repository root
- **Add a new entry** for this feature/change following the Keep a Changelog format
Expand All @@ -109,7 +105,6 @@ $ARGUMENTS
* Include brief usage examples where helpful
* Link to the PR or issue: `[#<issue-number>]`
- **Keep it concise**: Focus on user-impacting changes, not internal refactoring details

11. Final commit and push:
- **Stage all implemented changes** including:
* All source code files created or modified
Expand All @@ -123,7 +118,6 @@ $ARGUMENTS
* Include reference to issue: `Fixes #<issue-number>`
- **Push the branch** to remote
- Verify the push completed successfully

12. Update PR description with release notes:
- **Determine workflow mode and target repository**:
- Check if `.fork-info.json` exists in the feature directory (same directory as spec.md)
Expand All @@ -141,7 +135,6 @@ $ARGUMENTS
- **Retrieve the issue title**: Get the title from the linked GitHub issue (created in `/specify`) from the target repository
- **Use the same title for the PR**: Verify the PR title matches the issue title exactly. If they differ, update the PR title to match the issue.
- If unable to retrieve the issue title, determine the PR type and icon based on the changes:

| Type of change | Icon | Label |
|-|-|-|
| Docs | πŸ“– | Docs |
Expand All @@ -150,9 +143,10 @@ $ARGUMENTS
| Patch | 🩹 | Patch |
| Feature | πŸš€ | Minor |
| Breaking change | 🌟 | Major |

- Fallback PR title format (if issue title unavailable): `<Icon> [Type of change]: <Short description>`
- **Write PR description as a release note**:
- **REPLACE the entire PR description with release notes**:
* **IMPORTANT**: Clear the existing PR description completely (including task list) and replace it with the release notes
* This ensures the PR description is ready to be used as GitHub Release notes when merged to main
* **Opening summary** (1-2 paragraphs):
- Start with what was accomplished in user-focused language
- Write in past tense: "Added...", "Improved...", "Fixed..."
Expand Down Expand Up @@ -183,15 +177,13 @@ $ARGUMENTS
- **Apply appropriate label(s)** based on the type of change
- **Link the PR** to the associated issue
- **Update `.fork-info.json`** (if it exists) with the latest PR number (if not already present)

**GitHub Integration**: If GitHub tools or integrations are available (such as GitHub MCP Server or other GitHub integrations), use them to update the PR description in the target repository. If not available, provide this fallback command:
```bash
# Update PR description
# Replace PR description with release notes
# If fork: gh pr edit <PR-number> --repo <upstream_owner>/<upstream_repo> --body "<release-note-description>"
# If local: gh pr edit <PR-number> --body "<release-note-description>"
gh pr edit <PR-number> --body "<release-note-description>"
```

13. Mark PR as ready for review:
- **Determine target repository** (same logic as step 12):
- Check if `.fork-info.json` exists in the feature directory
Expand All @@ -200,7 +192,6 @@ $ARGUMENTS
- **Remove 'Implementing' label** from the linked issue and the PR in the target repository
- **Mark PR as ready for review** (no longer draft)
- **After updates**: Ensure `.fork-info.json` (if it exists) has both issue and PR numbers stored

**GitHub Integration**: If GitHub tools are available, update labels and PR status automatically in the target repository. If not available, use:
```bash
# Mark PR as ready for review
Expand Down
Loading
Loading