Repository navigation
Fix release docs commit path and session limits - #1381
Merged
Merged
Conversation
The generation and editorial sessions have run in agent mode since the move to workflow_dispatch, which grants no git write tools. Their edits stayed uncommitted, so the skill-commit count was always 0, the PR body and Slack summary called every run silent, and the autofix step swept everything (including scratch files) into a commit titled as formatting fixups. - Stage changes only under docs/, static/img/, sidebars.ts, vercel.json, and scripts/lib/crd-intros.mjs. Revert tracked edits elsewhere and skip other new files, with a warning for each. - Count staged files for the PR body instead of skill commits, and list them as the SUMMARY.md fallback. - Drop the pre-skill SHA, branch sync, and commit-count steps. - Set CLAUDE_CODE_DISABLE_BACKGROUND_TASKS: the action stops at the first result message, which killed background subagents. - Pass --add-dir for the upstream clone so Read/Grep work there. - Point the editorial session at the uncommitted edits. - Count permission denials from the result's permission_denials array and log the denied tool names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Document that the unattended session has no git write access, should keep scratch files out of the working tree, and must wait for its subagents before ending its turn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
1 task
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
A live workflow_dispatch run is needed to verify that the pinned Claude action honors the background-task flag, subagents finish before session termination, and uncommitted edits survive both sessions—behaviors not covered by staging tests.
No open issues 🎉
What changed in this PR
This PR adapts release documentation automation to the agent-mode sessions introduced by #1298, so uncommitted edits are collected and reported accurately without publishing unrelated scratch files.
Changes:
- Restricts staging to approved paths and reports hand-written changes by file count.
- Disables background tasks, grants upstream-clone access, and directs editorial review to uncommitted edits.
- Corrects permission-denial reporting and adds staging regression tests.
| File | Description |
|---|---|
scripts/upstream-release/workflow.test.mjs |
Tests allowed-path staging, cleanup, and zero-edit runs. |
scripts/upstream-release/render-pr-body.mjs |
Uses file counts for change reporting and silent-run detection. |
scripts/upstream-release/fixtures/release-1181-section.txt |
Updates expected output to report files instead of commits. |
scripts/upstream-release/fixtures/release-1181-env.json |
Supplies the renamed file-count input. |
.github/workflows/upstream-release-docs.yml |
Revises session settings, staging, publication, and reporting. |
.claude/skills/upstream-release-docs/SKILL.md |
Documents unattended editing, scratch-file, and subagent constraints. |
Review effort: Balanced
danbarr
enabled auto-merge (squash)
November 30, 2026 03:52
aponcedeleonch
approved these changes
Nov 30, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Since #1298 moved the release docs workflow to
workflow_dispatch, the Claude sessions run in claude-code-action's agent mode. Tag mode, whichtrack_progressused to trigger on PR events, granted git write tools. Agent mode doesn't, so the sessions have been leaving their edits uncommitted. That had three effects:git add -Aand committed the session's edits under "Apply prettier and eslint fixups to skill output". In Update stacklok/toolhive to v0.70.1 #1380 that swept in about 6,400 lines of.tmp-*scratch files.This PR:
docs/,static/img/,sidebars.ts,vercel.json, andscripts/lib/crd-intros.mjs. Edits to other existing files are reverted and other new files are left out, with a warning for each, because the sessions read untrusted upstream content.SUMMARY.mdfallback.CLAUDE_CODE_DISABLE_BACKGROUND_TASKSon both sessions, so subagents still run in parallel but the session waits for them.--add-dirfor the upstream clone so Read and Grep work there, as the prompt and skill already assume.HEAD, which was the reference refresh commit.Type of change
Related issues/PRs
🤖 Generated with Claude Code