Skip to content

Promote operational baseline to main - #34

Merged
ptr727 merged 2 commits into
mainfrom
develop
Jul 13, 2026
Merged

ptr727 merged 2 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Bless the current known-good develop snapshot onto main.

Adopts the fleet operational workflow model (registry workflowModel: operational): develop takes direct signed commits (advisory CI), and this develop -> main promotion is the enforced gate.

  • Full governance baseline (CODESTYLE/WORKFLOW/HISTORY/copilot-instructions/cspell/version.json).
  • CI aligned to the canonical required check Check pull request workflow status job (lint/validation only; operational triggers).
  • publish-release.yml for dispatch-only source releases.
  • Line endings stay LF (this repo is a view into the ESPHome config dir on Linux; registry lineEndings: lf).

🤖 Generated with Claude Code

ptr727 and others added 2 commits July 13, 2026 08:35
Bring the repo up to the fleet operational (live-config) baseline:

- Full governance baseline: CODESTYLE.md, WORKFLOW.md, HISTORY.md,
  .github/copilot-instructions.md (owner/repo filled), cspell.json (with
  ESPHome/USB domain terms), version.json (NBGV, for dispatch releases).
- CI: rename the aggregator to the canonical ruleset-bound name
  "Check pull request workflow status job"; modernize linters to the pinned
  action wrappers and add spell-check; operational triggers - push to
  develop (advisory) + pull_request to main (enforced promotion gate).
- Add publish-release.yml: dispatch-only source release (NBGV tag + source
  zip + README + LICENSE); operational repos never auto-publish.

Files copied from ptr727/ProjectTemplate are converted to LF to match this
repo's all-LF .editorconfig. Full esphome-config validation in CI is a
follow-up (needs the ESPHome image + device secrets).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Whitelist the device, tool, and path terms already present in README.md and
the repo-specific AGENTS.md (esptool, reflash, ceilsense, smarthomeshop, the
PIETER-DESKTOP path fragment, etc.) so the newly-enabled spell-check passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 13, 2026 16:26
@ptr727
ptr727 merged commit a96d0b4 into main Jul 13, 2026
5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR promotes the current develop snapshot to main and establishes an "operational" workflow baseline for this ESPHome config repository, including governance documentation and a dispatch-only source release flow.

Changes:

  • Add governance and workflow contract documentation (WORKFLOW.md, CODESTYLE.md, HISTORY.md) plus repo-level tooling configs (cspell.json, version.json).
  • Update PR CI to match the operational model (advisory lint on develop pushes, enforced lint gate on develop -> main promotion PRs).
  • Add a manual (workflow_dispatch) source-release workflow using NBGV versioning.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
WORKFLOW.md Adds the workflow contract, guarantees, and audit methodology for the fleet workflows.
version.json Introduces Nerdbank.GitVersioning configuration for tagging and release classification.
HISTORY.md Adds template-oriented release history documenting the repo’s repurpose and baseline version.
cspell.json Adds shared CSpell configuration and dictionary words for governance docs and workflows.
CODESTYLE.md Adds fleet-wide formatting, linting, and language-specific style conventions.
.github/workflows/test-pull-request.yml Updates CI triggers and lint steps for the operational develop push and main promotion gate.
.github/workflows/publish-release.yml Adds dispatch-only release publishing (tag + source release assets).
.github/copilot-instructions.md Adds Copilot-specific repository conventions and a review runbook.

Comment on lines +48 to +49
- name: Check EditorConfig step
run: docker run --rm -v "$PWD":/check --workdir /check mstruebing/editorconfig-checker:latest
Comment on lines +49 to +66
# Skip create on an existing tag (no-op republish). A re-dispatch refreshes it.
- name: Check for existing release step
id: release-exists
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ steps.nbgv.outputs.SemVer2 }}
run: |
set -euo pipefail
if gh release view "$TAG" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi

# target_commitish pins the tag to the exact built commit (GitCommitId), not the default branch. The release is
# the tag plus GitHub's auto source archive, README, and LICENSE - no build assets (source-only).
- name: Create GitHub release step
if: ${{ steps.release-exists.outputs.exists == 'false' || github.event_name == 'workflow_dispatch' }}
ptr727 added a commit that referenced this pull request Jul 22, 2026
Promote operational baseline to main
ptr727 added a commit that referenced this pull request Jul 22, 2026
Promote operational baseline to main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants