Skip to content

Prefer release initiator for docs ownership - #1311

Merged
danbarr merged 1 commit into
mainfrom
fix-release-docs-owner
Nov 3, 2026
Merged

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

Conversation

@danbarr

@danbarr danbarr commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Description

Release-docs ownership currently falls to the upstream release PR's merger when a bot publishes the release. With a separate reviewer typically merging the release PR, this can assign ownership to someone who did not initiate the release.

Prefer the human initiator recorded in the tagged commit's Release-Triggered-By trailer. Preserve the existing human release author, release PR merger, and tagged commit author fallbacks. Accept the squash-merge format that separates the initiator trailer from Co-authored-by with a blank line, and fall back for missing, malformed, duplicate, or bot initiators.

Validation: 19 release-docs helper tests and 12 reviewer-routing tests pass, along with focused Prettier, ESLint, and git diff --check. A read-only execution of the updated workflow step against ToolHive v0.60.0 resolves jhrozek. The production site build passes. Local actionlint reports the existing $/.github/actions/setup action alias, which it does not recognize.

Type of change

  • Bug fix

Related issues/PRs

Submitter checklist

Content and formatting

  • I have reviewed the content for technical accuracy
  • I have reviewed the content for spelling, grammar, and style

Reviewer checklist

Content

  • I have reviewed the content for technical accuracy
  • I have reviewed the content for spelling, grammar, and style

@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 12:54am UTC

Request Review

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

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.

🟡 Changes recommended

Duplicate initiator trailers and mixed-case bot logins can incorrectly bypass ownership fallbacks in the release-docs workflow.

2 open issues
What changed in this PR

This PR updates release-docs ownership routing to prefer the release initiator over the person who merged the upstream release PR.

Changes:

  • Reads Release-Triggered-By from the tagged commit, including squash-merge messages with blank lines between trailers.
  • Preserves release author, release PR merger, and commit author fallbacks.
  • Adds workflow tests for tag types, unusable metadata, and fallback behavior.
File Description
scripts/​upstream-release/​workflow.test.mjs Adds owner-resolution fixtures and regression tests.
.github/​workflows/​upstream-release-docs.yml Prioritizes initiator metadata and reuses tagged commit data for fallback resolution.

Review effort: Balanced

Comment on lines +560 to +561
INITIATOR=$(printf '%s\n' "$COMMIT_MESSAGE" \
| sed -n 's/^Release-Triggered-By:[[:blank:]]*//p')
| sed -n 's/^Release-Triggered-By:[[:blank:]]*//p')
# Accept a single GitHub login. Missing, malformed, duplicate,
# or bot trailers fall through to the existing owner sources.
if [[ "$INITIATOR" =~ ^[a-zA-Z0-9]([a-zA-Z0-9-]{0,37}[a-zA-Z0-9])?$ ]] && ! is_bot "$INITIATOR"; then
@danbarr
danbarr merged commit 590057b into main Nov 3, 2026
9 checks passed
@danbarr
danbarr deleted the fix-release-docs-owner branch November 3, 2026 00:57

This branch was successfully deployed

1 active deployment
Preview — ddadd2ff 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