scripts: make gen-index auto-discover branches; fix lint false positives#1
Open
blackrocx0 wants to merge 1 commit intocablate:mainfrom
Open
scripts: make gen-index auto-discover branches; fix lint false positives#1blackrocx0 wants to merge 1 commit intocablate:mainfrom
blackrocx0 wants to merge 1 commit intocablate:mainfrom
Conversation
gen-index.sh: switch BRANCHES from a hardcoded 11-item list to an empty array so the script auto-discovers branches by filename prefix. This makes the framework immediately usable in any fork without manual branch config. lint.sh: skip _template and README slugs in all four check loops to avoid spurious ghost-link and format errors on framework template files. 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.
Summary
gen-index.sh: Replace hardcoded 11-itemBRANCHESarray withdeclare -a BRANCHES=()+ auto-discovery loop so new branches are picked up without editing the script.lint.sh: Add_templateandREADMEto the skip list in all 4 check loops to prevent false positives on template files.Test plan
./scripts/gen-index.shon a repo with branches not in the old hardcoded list — confirm they appear inindex.md./scripts/lint.sh— confirm no false-positive errors foratoms/_template.mdorwiki/_template.md🤖 Generated with Claude Code