Skip to content

Stop adding management comments to workflows - #115

Merged
nodeselector merged 1 commit into
mainfrom
nodeselector-drop-onboarding-comments
Aug 31, 2026
Merged

Stop adding management comments to workflows#115
nodeselector merged 1 commit into
mainfrom
nodeselector-drop-onboarding-comments

Conversation

@nodeselector

@nodeselector nodeselector commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Why

Onboarding a workflow should update its lockfile state without adding an ownership comment to the workflow file. Users have found this more annoying than helpful.

What

  • Remove the management-comment helper and commit hook
  • Keep no-rewrite workflows in the plan so lockfile onboarding still works
  • Remove the generated header from repository workflows and integration fixtures

@nodeselector
nodeselector marked this pull request as ready for review August 31, 2026 17:19
@nodeselector
nodeselector requested a review from a team as a code owner August 31, 2026 17:19
Copilot AI balanced review requested due to automatic review settings August 31, 2026 17:19

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.

Copilot review overview

🟢 Approval recommended

The implementation consistently removes comment injection while retaining and testing lockfile updates.

Review tier: Balanced
Findings: None

What changed in this PR

Stops adding management comments to workflows while preserving lockfile onboarding behavior.

Changes:

  • Removes sentinel-comment generation and related tests.
  • Keeps no-rewrite workflows eligible for lockfile updates.
  • Removes generated headers from workflows and integration fixtures.
File Description
test/​integration/​run.rb Removes headers from generated fixtures.
internal/​workflowfile/​rewrite.go Removes sentinel helper.
internal/​workflowfile/​rewrite_test.go Removes obsolete helper tests.
internal/​pin/​plan.go Clarifies no-rewrite lockfile planning.
internal/​pin/​commit.go Stops injecting workflow comments.
internal/​pin/​commit_test.go Verifies workflows remain unchanged.
cmd/​gh-actions-lock/​selfrepository_test.go Removes obsolete sentinel assertions.
.github/​workflows/​test.yml Removes generated header.
.github/​workflows/​release.yml Removes generated header.
.github/​workflows/​dependency-review.yml Removes generated header.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@nodeselector
nodeselector merged commit d996fae into main Aug 31, 2026
8 of 11 checks passed
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