Remove "Generated by construct" watermark from git commits#5
Merged
Conversation
Co-authored-by: mtsfoni <80639729+mtsfoni@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix removal of watermark in git commits
Remove "Generated by construct" watermark from git commits
Mar 12, 2026
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.
construct was silently appending a
Generated by constructtrailer to every commit made inside a session via acommit-msghook injected at container startup. This removes that watermark entirely.Changes
internal/runner/runner.go— drop thecommit-msghook block fromgeneratedEntrypoint()(mkdir .githooks, hook script,chmod +x,git config core.hooksPath); clean up the related comment inbuildRunArgsinternal/runner/runner_test.go— replace the two hook-specific tests with a singleTestGeneratedEntrypoint_EndsWithExecdocs/spec/git-identity.md— remove section 3 ("Commit-msg hook") and update the files-changed tabledocs/spec/image-build-layers.md— remove hook step from entrypoint description and hook row from the layer-responsibility tabledocs/spec/construct-agents-md.md— remove hook reference from files-changed tabledocs/threat-model.md— remove mention of the trailer from the attribution noteCHANGELOG.md— remove the commit-msg hook bullet from[Unreleased]Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.