Skip to content

Float dotnet/nbgv on @master instead of SHA-pinning#777

Merged
ptr727 merged 3 commits into
developfrom
fix/nbgv-master
Jun 29, 2026
Merged

Float dotnet/nbgv on @master instead of SHA-pinning#777
ptr727 merged 3 commits into
developfrom
fix/nbgv-master

Conversation

@ptr727

@ptr727 ptr727 commented Jun 29, 2026

Copy link
Copy Markdown
Owner

The dotnet/nbgv tag stream lags master substantially, so the v0.5.2 SHA pin only drew spurious Dependabot downgrade PRs. This switches it to @master (the documented no-SHA-pin exception, with the rationale inline in the workflow) and records the rule in AGENTS.md.

Converges with ESPHome-NonRoot / NxWitness, which already float @master. Part of fleet-wide nbgv convergence.

The nbgv tag stream lags master substantially, so the v0.5.2 SHA pin only drew spurious Dependabot
downgrade PRs. Consume it via @master (the documented no-SHA-pin exception) with the rationale inline,
and record the rule in AGENTS.md. Converges with ESPHome/NxWitness which already float @master.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 29, 2026 14:51

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 updates the reusable “get version” workflow to run Nerdbank.GitVersioning via dotnet/nbgv@master instead of a commit-SHA pin, and documents that choice in AGENTS.md to prevent future re-pinning.

Changes:

  • Switch dotnet/nbgv GitHub Action usage from a pinned commit SHA (v0.5.2) to the floating @master ref in get-version-task.yml.
  • Add an AGENTS.md rule stating dotnet/nbgv should remain floated on @master, with rationale pointing back to the workflow comment.

Reviewed changes

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

File Description
AGENTS.md Adds guidance documenting the intended non-SHA-pinned consumption pattern for dotnet/nbgv.
.github/workflows/get-version-task.yml Changes the dotnet/nbgv action ref from a pinned SHA to @master and adds inline rationale.

Comment thread .github/workflows/get-version-task.yml Outdated
Comment thread AGENTS.md Outdated
The SHA-pin guarantee (D9.1) now notes dotnet/nbgv@master as the sole exception, matching the inline
rationale and AGENTS.md, and converging with LanguageTags/Utilities which already document it. Keeps the
workflow contract self-consistent after floating nbgv on @master.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Reword the inline comment and AGENTS note to the established cause (WORKFLOW.md D9.1 / 79-83): nbgv's
tag stream lags master, so Dependabot tag-tracking would only propose downgrades to stale tags - not the
imprecise "a pin draws downgrades" phrasing. Converges wording with the sibling repos.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@ptr727 ptr727 merged commit feb7de7 into develop Jun 29, 2026
13 checks passed
@ptr727 ptr727 deleted the fix/nbgv-master branch June 29, 2026 15:07
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