Skip to content

Harden release docs owner resolution - #1312

Merged
danbarr merged 1 commit into
mainfrom
harden-release-docs-owner
Nov 4, 2026
Merged

danbarr merged 1 commit into
mainfrom
harden-release-docs-owner

Conversation

@danbarr

@danbarr danbarr commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Release-docs owner resolution can accept a valid initiator followed by an empty duplicate trailer because shell command substitution removes the trailing newline. Count matching Release-Triggered-By lines before extracting the value and require exactly one, so duplicate metadata falls back to the existing owner sources.

Make the shared bot filter case-insensitive to match GitHub login semantics. This excludes mixed-case bot names from initiator and fallback ownership while preserving human login spelling.

Validation: all 28 release-docs helper tests pass, including regressions for empty and whitespace-only duplicates, mixed-case bot initiators and fallback owners, and human login casing. Focused Prettier, ESLint, git diff --check, and the production site build pass.

Type of change

  • Bug fix

Related issues/PRs

Follow-up to #1311, addressing both Copilot review findings.

@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs-website Ready Ready Preview Nov 3, 2026 1:01am UTC

Request Review

Copilot AI balanced review requested due to automatic review settings November 3, 2026 00:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the release-docs ownership-resolution changes.

No open issues 🎉

What changed in this PR

Hardens release-docs ownership resolution so duplicate initiator metadata and mixed-case bot names fall back to the existing owner sources.

Changes:

  • Requires exactly one Release-Triggered-By line before extracting the initiator.
  • Makes bot detection case-insensitive while preserving human login spelling.
  • Adds regression tests for empty duplicate trailers, mixed-case bots, and human login casing.
File Description
scripts/​upstream-release/​workflow.test.mjs Adds ownership-resolution regression tests.
.github/​workflows/​upstream-release-docs.yml Counts initiator trailers before extraction and makes bot filtering case-insensitive.

Review effort: Balanced

@danbarr
danbarr merged commit c4633bd into main Nov 4, 2026
8 checks passed
@danbarr
danbarr deleted the harden-release-docs-owner branch November 4, 2026 20:50

This branch was successfully deployed

1 active deployment
Preview — a6e16294 Deployed Nov 3, 2026 by vercel[bot]
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.

3 participants