Files
ThreadPilot/docs/CONTRIBUTING.md
T
PrimeBuild-pc c9253f879d Enhance CI/release workflow and app robustness
Add comprehensive CI and release improvements (coverage collection, Codecov upload, SBOM generation), split release workflow into build/smoke-test/release stages with deterministic version resolution, artifact uploads, winget manifest updates and changelog generation. Add a pre-commit hook to block large or unwanted artifacts. Introduce runtime improvements: smoke-test startup mode, improved unhandled/dispatcher/task-exception reporting, ThreadPilotException error codes, single-instance behavior adjustments, and logging enhancements. UI and UX changes include a new Logs tab and LogViewer wiring, DWM title-bar theming helper, navigation serialization/unsaved-changes guard, system-tray update backoff logic, and related viewmodel/service integrations. Also add installer template, helper classes, tests, docs, packaging and build scripts, and minor .gitignore updates.
2026-04-15 22:38:35 +02:00

2.5 KiB

Contributing to ThreadPilot

Thanks for helping improve ThreadPilot.

Before You Start

  • Search existing issues before opening a new one.
  • Keep pull requests scoped to a single concern.
  • For security issues, do not open a public issue. Follow the process in SECURITY.md.

Development Setup

  1. Install .NET 8 SDK.
  2. Clone the repository.
  3. Restore and build:
    • dotnet restore ThreadPilot_1.sln
    • dotnet build ThreadPilot_1.sln --configuration Release
  4. Run application:
    • dotnet run --project ThreadPilot.csproj --configuration Release

Branch and Commit Guidelines

  • Use short-lived feature branches.
  • Use clear commit messages in imperative mood.
  • Keep history clean and avoid unrelated formatting churn.

Branch Policy

  • main is protected: no direct pushes.
  • Pull requests into main require at least 1 approval.
  • All required CI checks must pass before merge.
  • Branch naming must follow one of these prefixes:
    • feat/
    • fix/
    • perf/
    • chore/
    • release/
  • Commit messages should follow Conventional Commits:
    • feat: ...
    • fix: ...
    • perf: ...
    • docs: ...
    • chore: ...

Pull Request Checklist

  • I built the solution successfully in Debug and Release.
  • I ran tests and validated impacted features.
  • I updated documentation for any user-facing or architectural changes.
  • I validated no credentials or secrets were introduced.
  • I included risk notes for any changes touching elevation, process control, or power plans.

Coding Standards

  • Follow existing MVVM and DI patterns.
  • Prefer async APIs and avoid blocking calls on UI paths.
  • Add XML documentation comments for public APIs.
  • Keep classes cohesive and avoid mixing UI logic with system logic.

Testing Expectations

  • Add unit tests for new logic when feasible.
  • Add or update integration checks for process and power plan workflows.
  • Validate behavior on Windows 11; Windows 10 is best effort.

Artifact Cleanup Policy

Before committing, ensure local/generated artifacts are not staged.

  • AI workspace artifacts: .kilo/, .roo/, .cursor/, .continue/, .aider*/
  • Build artifacts: bin/, obj/, artifacts/ generated outputs
  • Logs/temp: *.log, *.tmp, checkpoint*/

If an artifact is accidentally tracked, remove it from index without deleting local copy:

  • git rm --cached <path>

Then update .gitignore when needed.

Optional local enforcement:

  • ./build/install-git-hooks.ps1

This enables the repository pre-commit hook (.githooks/pre-commit.ps1) that blocks common artifact patterns and large files.