ADR-234: Add auto-update hook#34
Merged
jodavis merged 2 commits intoJun 12, 2026
Merged
Conversation
build-and-test: Python test resultsStatus: ✅ Passed Test log |
There was a problem hiding this comment.
Pull request overview
This PR adds a SessionStart hook and companion script to automatically fast-forward update the dev-team plugin repo on a configurable cadence, using a persisted timestamp in the plugin data directory.
Changes:
- Added
scripts/dev_team_update.pyto check alast_updatetimestamp and rungit pull --ff-only --quietwhen stale. - Added
hooks/hooks.jsonto invoke the update script onSessionStart.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| scripts/dev_team_update.py | Implements the timestamp-based auto-update behavior and stderr-only logging for failures. |
| hooks/hooks.json | Registers the SessionStart hook to run the updater with plugin root/data substitutions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
… quoted paths
- Wrap parse_args() in try/except SystemExit so --help and argument
errors exit 0 instead of propagating and blocking SessionStart.
- Check git status --porcelain before pulling; skip and log to stderr
when the working tree has local changes.
- Run both git invocations with GIT_TERMINAL_PROMPT=0 and timeout=30
to prevent interactive credential prompts from hanging the hook.
- Quote \${CLAUDE_PLUGIN_ROOT} and \${CLAUDE_PLUGIN_DATA} in hooks.json
so paths containing spaces are passed as single arguments.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jodavis
added a commit
that referenced
this pull request
Jun 19, 2026
* ADR-234: uncommitted changes at validation
* ADR-234: Address review comments — exit-0 guarantee, dirty-tree skip, quoted paths
- Wrap parse_args() in try/except SystemExit so --help and argument
errors exit 0 instead of propagating and blocking SessionStart.
- Check git status --porcelain before pulling; skip and log to stderr
when the working tree has local changes.
- Run both git invocations with GIT_TERMINAL_PROMPT=0 and timeout=30
to prevent interactive credential prompts from hanging the hook.
- Quote \${CLAUDE_PLUGIN_ROOT} and \${CLAUDE_PLUGIN_DATA} in hooks.json
so paths containing spaces are passed as single arguments.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Joe Davis <ElwoodMoves@hotmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Create a hook that will make it easier to update plugins as development continues