Skip to content

fix(update): skip followed checkouts regardless of directory prefix - #426

Merged
runkids merged 1 commit into
mainfrom
runkids/417-followed-checkout-prefix
Oct 5, 2026
Merged

runkids merged 1 commit into
mainfrom
runkids/417-followed-checkout-prefix

Conversation

@runkids

@runkids runkids commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Why

Follow-up to the post-merge Codex P2 on #417 (#417 (comment)).

update --all only ran followedRepoSkipped for _-prefixed directories. A followed checkout linked under another name (e.g. skillshare link ~/code/dev-skills --name dev-skills) whose root holds a SKILL.md with recorded metadata was therefore scheduled as a regular skill: --all ran git pull against the user's own checkout, and --force reset 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): a dev-skills link with a root SKILL.md and metadata is reported as skipped and its HEAD is unchanged after --all --force. Fails on main (the checkout was updated), passes with the fix.

Verification

  • make check inside the devcontainer: all tests passed.
  • python3 scripts/ai-context.py check: ok.
  • No doc change: the docs already describe the skip without a naming condition.

`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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-05T16:23:13.941063Z 96ca1f6 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@runkids

runkids commented Oct 5, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 96ca1f6d02

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@runkids
runkids merged commit 6c76437 into main Oct 5, 2026
8 checks passed
@runkids
runkids deleted the runkids/417-followed-checkout-prefix branch October 5, 2026 17:00
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.

1 participant