You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a new CLI flag that filters out GitHub template repositories
from search results. Template repos are marked with is_template in
the GitHub API response.
- Add isTemplate: boolean to CodeMatch in types.ts
- Map is_template from GitHub API in api.ts
- Add excludeTemplates param to aggregate() with guard
- Thread excludeTemplates through output.ts (ReplayOptions,
buildReplayCommand, buildOutput)
- Add excludeTemplates param to runInteractive() in tui.ts
- Register --exclude-template-repositories CLI flag and wire through
searchAction in github-code-search.ts
- Add shell completion entry in completions.ts
- Add unit tests for the new filter in aggregate.test.ts
- Update docs: filtering.md, cli-options.md, README.md
Closes#116
|`--include-archived`| boolean (flag) | ❌ |`false`| Include archived repositories in results (excluded by default). |
43
+
|`--exclude-template-repositories`| boolean (flag) | ❌ |`false`| Exclude template repositories from results (included by default). See [Filtering](/usage/filtering#--exclude-template-repositories). |
43
44
|`--group-by-team-prefix <prefixes>`| string | ❌ |`""`| Comma-separated team-name prefixes for grouping result repos by GitHub team (e.g. `squad-,chapter-`). Requires `read:org` scope. |
44
45
|`--no-cache`| boolean (flag) | ❌ |`true` (on) | Bypass the 24 h team-list cache and re-fetch teams from GitHub. Cache is **on** by default; pass this flag to disable it. Only applies with `--group-by-team-prefix`. |
45
46
|`--regex-hint <term>`| string | ❌ | — | Override the API search term used when the query is a regex (`/pattern/`). Useful when auto-extraction produces a term that is too broad or too narrow. See [Regex queries](/usage/search-syntax#regex-queries). |
Template repositories (marked as templates on GitHub) are filtered out in the aggregation step before the TUI is shown. Useful when your organisation uses template repos for boilerplate that should not appear in search results.
0 commit comments