Repository navigation
fix(update): skip followed checkouts regardless of directory prefix - #426
Merged
Merged
Conversation
`update --all` only consulted the follow policy for `_`-prefixed directories, so a followed checkout linked under another name (for example via `link --name dev-skills`) whose root holds a SKILL.md with recorded metadata was scheduled as a regular skill and `git pull`ed, and reset under `--force`, against the user's own checkout. Followed links carry no naming requirement, so run the guard for every directory before the tracked-repository naming rules apply, in both the global and project update loops. Follow-up to the Codex review on #417.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Owner
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Why
Follow-up to the post-merge Codex P2 on #417 (#417 (comment)).
update --allonly ranfollowedRepoSkippedfor_-prefixed directories. A followed checkout linked under another name (e.g.skillshare link ~/code/dev-skills --name dev-skills) whose root holds aSKILL.mdwith recorded metadata was therefore scheduled as a regular skill:--allrangit pullagainst the user's own checkout, and--forcereset it. Followed links have no naming requirement, so the guard now runs for every directory before the tracked-repository naming rules, in both the global and project loops.Changes
cmd/skillshare/update.go,cmd/skillshare/update_project.go: hoist the followed-checkout guard above the_prefix check.cmd/skillshare/update_follow_test.go:TestUpdateAllSkipsFollowedCheckoutWithoutPrefix(global + project): adev-skillslink with a rootSKILL.mdand metadata is reported as skipped and its HEAD is unchanged after--all --force. Fails onmain(the checkout was updated), passes with the fix.Verification
make checkinside the devcontainer: all tests passed.python3 scripts/ai-context.py check: ok.