Skip to content

v1.7.0#82

Merged
shouze merged 2 commits intomainfrom
release/1.7.0
Mar 4, 2026
Merged

v1.7.0#82
shouze merged 2 commits intomainfrom
release/1.7.0

Conversation

@shouze
Copy link
Contributor

@shouze shouze commented Mar 4, 2026

No description provided.

@shouze shouze self-assigned this Mar 4, 2026
Copilot AI review requested due to automatic review settings March 4, 2026 21:04
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

Coverage after merging release/1.7.0 into main will be

96.46%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   aggregate.ts100%100%100%100%
   api-utils.ts97.50%100%100%97.18%52, 60
   api.ts93.43%100%100%92.51%235–239, 295, 312, 63–69
   cache.ts98.08%100%100%97.87%28
   completions.ts99.35%100%100%99.29%252
   group.ts100%100%100%100%
   output.ts99.12%100%94.74%99.52%58
   render.ts93.11%100%84.62%93.49%100, 102–104, 106–107, 134, 298–299, 342–345, 76, 95–99
   upgrade.ts88.06%100%94.12%87.50%122–123, 143–150, 153–159, 164, 169, 205–208
src/render
   filter-match.ts97.44%100%92.31%100%
   filter.ts100%100%100%100%
   highlight.ts96.62%100%90.40%99.31%284–285
   rows.ts97.87%100%100%97.73%54–55
   selection.ts100%100%100%100%
   summary.ts100%100%100%100%

@github-actions
Copy link

github-actions bot commented Mar 4, 2026

Coverage after merging release/1.7.0 into main will be

96.46%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   aggregate.ts100%100%100%100%
   api-utils.ts97.50%100%100%97.18%52, 60
   api.ts93.43%100%100%92.51%235–239, 295, 312, 63–69
   cache.ts98.08%100%100%97.87%28
   completions.ts99.35%100%100%99.29%252
   group.ts100%100%100%100%
   output.ts99.12%100%94.74%99.52%58
   render.ts93.11%100%84.62%93.49%100, 102–104, 106–107, 134, 298–299, 342–345, 76, 95–99
   upgrade.ts88.06%100%94.12%87.50%122–123, 143–150, 153–159, 164, 169, 205–208
src/render
   filter-match.ts97.44%100%92.31%100%
   filter.ts100%100%100%100%
   highlight.ts96.62%100%90.40%99.31%284–285
   rows.ts97.87%100%100%97.73%54–55
   selection.ts100%100%100%100%
   summary.ts100%100%100%100%

@shouze shouze merged commit 5e0d8a9 into main Mar 4, 2026
5 checks passed
@shouze shouze deleted the release/1.7.0 branch March 4, 2026 21:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Release prep for v1.7.0, updating the package version and publishing corresponding release documentation in the VitePress blog and changelog.

Changes:

  • Bump package.json version from 1.6.1 to 1.7.0.
  • Add a new release blog post for v1.7.0 and link it from the blog index.
  • Add v1.7.0 entry to CHANGELOG.md.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
package.json Updates the npm/package version to 1.7.0.
docs/blog/release-v1-7-0.md Adds the v1.7.0 release post (completions + syntax highlighting highlights).
docs/blog/index.md Adds v1.7.0 to the blog release index table.
CHANGELOG.md Adds a v1.7.0 row pointing to the new blog post.

The completion scripts cover:

- All subcommands (`query`, `upgrade`, `completions`)
- All flags (`--org`, `--format`, `--output-type`, `--exclude-repositories`, `--exclude-extracts`, `--group-by-team-prefix`, `--no-interactive`, `--include-archived`, `--no-cache`, `--debug`)
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The post claims the completion scripts cover all flags including --debug, but the completion generator metadata in src/completions.ts does not include a debug option, so the generated scripts won’t actually suggest it. Either add --debug to the completion option list (and consider scoping it to upgrade), or adjust this release note to match current completion behavior.

Suggested change
- All flags (`--org`, `--format`, `--output-type`, `--exclude-repositories`, `--exclude-extracts`, `--group-by-team-prefix`, `--no-interactive`, `--include-archived`, `--no-cache`, `--debug`)
- Commonly used flags (`--org`, `--format`, `--output-type`, `--exclude-repositories`, `--exclude-extracts`, `--group-by-team-prefix`, `--no-interactive`, `--include-archived`, `--no-cache`)

Copilot uses AI. Check for mistakes.
Comment on lines +17 to +39
```bash
# bash
github-code-search completions --shell bash >> ~/.bashrc

# zsh (place the script in a $fpath directory)
github-code-search completions --shell zsh > ~/.zfunc/_github-code-search

# fish
github-code-search completions --shell fish > ~/.config/fish/completions/github-code-search.fish
```

When `--shell` is omitted, the shell is auto-detected from `$SHELL`.

The completion scripts cover:

- All subcommands (`query`, `upgrade`, `completions`)
- All flags (`--org`, `--format`, `--output-type`, `--exclude-repositories`, `--exclude-extracts`, `--group-by-team-prefix`, `--no-interactive`, `--include-archived`, `--no-cache`, `--debug`)
- Enumerated flag values where applicable (`--format markdown|json`, `--output-type repo-and-matches|repo-only`)

#### Auto-refresh on upgrade

If you have installed completions, they are **refreshed automatically** every time you run `github-code-search upgrade`. No manual action needed — the completion file is overwritten in-place.

Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bash install example appends the generated script into ~/.bashrc, but the “Auto-refresh on upgrade” note below only applies when completions are written to the standard completion file path that upgrade refreshes (or when installed via install.sh). As written, users who follow the >> ~/.bashrc approach won’t get auto-refresh and may accumulate duplicate definitions; consider changing the bash example to the recommended install method (e.g. sourcing from the completion file path or using the eval "$(...)" pattern) and clarifying the auto-refresh requirement.

Copilot uses AI. Check for mistakes.
The `install.sh` script now calls `install_completions()` at the end of an installation, writing the completion file for the detected shell:

```bash
curl -sSL https://raw.githubusercontent.com/fulll/github-code-search/main/install.sh | bash
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The install command uses curl -sSL ... | bash. Using -f as well (-fsSL) is safer because it fails on non-2xx HTTP responses instead of piping an error page into the shell; this also matches the usage shown at the top of install.sh.

Suggested change
curl -sSL https://raw.githubusercontent.com/fulll/github-code-search/main/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/fulll/github-code-search/main/install.sh | bash

Copilot uses AI. Check for mistakes.
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.

2 participants