Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.5.0"
".": "0.6.0"
}
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## [0.6.0](https://github.com/divmora/code-review-bot/compare/v0.5.0...v0.6.0) (2026-11-23)


### Features

* only fixed findings raise scores; tell fixed from dismissed ([#24](https://github.com/divmora/code-review-bot/issues/24)) ([dfda305](https://github.com/divmora/code-review-bot/commit/dfda3051e425014229db5b0e326b9480a8eb2632)), closes [#15](https://github.com/divmora/code-review-bot/issues/15)


### Bug Fixes

* give existing score labels their band colour ([#18](https://github.com/divmora/code-review-bot/issues/18)) ([1d97934](https://github.com/divmora/code-review-bot/commit/1d979349ebe634a81ac13abc6e183ff98cde2e22))
* read the walkthrough leniently and don't guess scores when it fails ([#16](https://github.com/divmora/code-review-bot/issues/16)) ([e5a3f06](https://github.com/divmora/code-review-bot/commit/e5a3f06739565901ccd13ad971a0588e404f990d)), closes [#14](https://github.com/divmora/code-review-bot/issues/14)
* **security:** files the review skipped keep the bot from approving ([#27](https://github.com/divmora/code-review-bot/issues/27)) ([7bef50a](https://github.com/divmora/code-review-bot/commit/7bef50ae8cbd768ab85d06faade89ef49d8a4387)), closes [#20](https://github.com/divmora/code-review-bot/issues/20)
* **security:** neutralise GitLab quick actions and mentions in posted text ([#25](https://github.com/divmora/code-review-bot/issues/25)) ([ed3455f](https://github.com/divmora/code-review-bot/commit/ed3455f1175498152a7bc9687ae93f8fe8776caa))
* **security:** read back only the bot's own (or signed) comments as its state ([#28](https://github.com/divmora/code-review-bot/issues/28)) ([d26071f](https://github.com/divmora/code-review-bot/commit/d26071f48fb295d585c32368942e6239af67fc80))
* **security:** send tokens only to their configured host; refuse cross-host redirects ([#29](https://github.com/divmora/code-review-bot/issues/29)) ([4932c78](https://github.com/divmora/code-review-bot/commit/4932c7864952247d3414326008caaf44a67375ba)), closes [#23](https://github.com/divmora/code-review-bot/issues/23)
* **security:** withdraw the bot's approval when a new commit can't be judged ([#26](https://github.com/divmora/code-review-bot/issues/26)) ([0de525e](https://github.com/divmora/code-review-bot/commit/0de525e0e9693f8bcfadee641d9819e3abf9b8e5)), closes [#22](https://github.com/divmora/code-review-bot/issues/22)

## [0.5.0](https://github.com/divmora/code-review-bot/compare/v0.4.1...v0.5.0) (2026-11-23)


Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ Prebuilt binaries for Linux, macOS and Windows are on the [Releases](https://git
<!-- x-release-please-start-version -->
```bash
docker run --rm -e CODEREVIEW_MODEL -e ANTHROPIC_API_KEY -e GITHUB_TOKEN \
ghcr.io/divmora/code-review-bot:0.5.0 review https://github.com/org/repo/pull/123
ghcr.io/divmora/code-review-bot:0.6.0 review https://github.com/org/repo/pull/123

# local changes: mount the repository at /workspace
docker run --rm -v "$PWD:/workspace" -e CODEREVIEW_MODEL -e ANTHROPIC_API_KEY \
ghcr.io/divmora/code-review-bot:0.5.0 review --local
ghcr.io/divmora/code-review-bot:0.6.0 review --local
```
<!-- x-release-please-end -->

Expand Down Expand Up @@ -124,7 +124,7 @@ Every response is also parsed leniently (fenced or prose-wrapped JSON), so weake

<!-- x-release-please-start-version -->
```yaml
- uses: divmora/code-review-bot@v0.5.0
- uses: divmora/code-review-bot@v0.6.0
with:
model: anthropic:claude-sonnet-5-5
fail-on: critical # optional gate
Expand Down
10 changes: 5 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,11 @@ <h2>Review a pull request in a minute</h2>
codereview ask https://github.com/org/repo/pull/123 "Is the retry loop safe?"</pre></div>
<div class="codeblock" style="margin-top:16px"><div class="ttl">Docker <button class="copy" data-copy="qs-docker">Copy</button></div><pre id="qs-docker"><span class="c"># the image's entrypoint is the codereview binary</span>
docker run --rm -e CODEREVIEW_MODEL -e ANTHROPIC_API_KEY -e GITHUB_TOKEN \
ghcr.io/divmora/code-review-bot:0.5.0<!-- x-release-please-version --> review https://github.com/org/repo/pull/123
ghcr.io/divmora/code-review-bot:0.6.0<!-- x-release-please-version --> review https://github.com/org/repo/pull/123

<span class="c"># review local changes: mount the repository at /workspace</span>
docker run --rm -v "$PWD:/workspace" -e CODEREVIEW_MODEL -e ANTHROPIC_API_KEY \
ghcr.io/divmora/code-review-bot:0.5.0<!-- x-release-please-version --> review --local</pre></div>
ghcr.io/divmora/code-review-bot:0.6.0<!-- x-release-please-version --> review --local</pre></div>
</div>
</section>

Expand All @@ -360,7 +360,7 @@ <h2>Review every push, with no server</h2>
<span class="k">if:</span> ${{ !github.event.pull_request.head.repo.fork }}
<span class="k">runs-on:</span> ubuntu-latest
<span class="k">steps:</span>
- <span class="k">uses:</span> divmora/code-review-bot@v0.5.0<!-- x-release-please-version -->
- <span class="k">uses:</span> divmora/code-review-bot@v0.6.0<!-- x-release-please-version -->
<span class="k">with:</span>
<span class="k">model:</span> anthropic:claude-sonnet-5-5
<span class="c"># fail-on: critical</span>
Expand All @@ -369,7 +369,7 @@ <h2>Review every push, with no server</h2>
<div class="tabpanel" id="tab-gl" role="tabpanel" aria-labelledby="t-gl" hidden><div class="codeblock"><div class="ttl">.gitlab-ci.yml <button class="copy" data-copy="ci-gl">Copy</button></div><pre id="ci-gl"><span class="k">ai-code-review:</span>
<span class="k">stage:</span> test
<span class="k">image:</span>
<span class="k">name:</span> ghcr.io/divmora/code-review-bot:0.5.0<!-- x-release-please-version -->
<span class="k">name:</span> ghcr.io/divmora/code-review-bot:0.6.0<!-- x-release-please-version -->
<span class="k">entrypoint:</span> [<span class="s">""</span>]
<span class="k">rules:</span>
- <span class="k">if:</span> $CI_PIPELINE_SOURCE == <span class="s">"merge_request_event"</span>
Expand All @@ -387,7 +387,7 @@ <h2>Review every push, with no server</h2>
- <span class="k">step:</span>
<span class="k">name:</span> AI code review
<span class="k">script:</span>
- VERSION=0.5.0<!-- x-release-please-version -->
- VERSION=0.6.0<!-- x-release-please-version -->
- curl -fsSL -o crb.tgz <span class="s">"https://github.com/divmora/code-review-bot/releases/download/v${VERSION}/code-review-bot_${VERSION}_linux_amd64.tar.gz"</span>
- tar -xzf crb.tgz codereview
- export CODEREVIEW_MODEL=<span class="s">"openai:&lt;model&gt;"</span> <span class="c"># + BITBUCKET_TOKEN and the model key as secured variables</span>
Expand Down
2 changes: 1 addition & 1 deletion examples/bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipelines:
- step:
name: AI code review
script:
- VERSION=0.5.0 # x-release-please-version
- VERSION=0.6.0 # x-release-please-version
- curl -fsSL -o crb.tgz "https://github.com/divmora/code-review-bot/releases/download/v${VERSION}/code-review-bot_${VERSION}_linux_amd64.tar.gz"
- tar -xzf crb.tgz codereview && rm crb.tgz
# The PR, workspace and repository come from BITBUCKET_PR_ID,
Expand Down
2 changes: 1 addition & 1 deletion examples/github-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: ${{ !github.event.pull_request.head.repo.fork }} # secrets are not available to forks
runs-on: ubuntu-latest
steps:
- uses: divmora/code-review-bot@v0.5.0 # x-release-please-version
- uses: divmora/code-review-bot@v0.6.0 # x-release-please-version
with:
model: anthropic:claude-sonnet-5-5
# fail-on: critical
Expand Down
2 changes: 1 addition & 1 deletion examples/gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ai-code-review:
stage: test
image:
name: ghcr.io/divmora/code-review-bot:0.5.0 # x-release-please-version
name: ghcr.io/divmora/code-review-bot:0.6.0 # x-release-please-version
entrypoint: [""] # the image entrypoint is the binary; GitLab needs a shell
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
Expand Down
2 changes: 1 addition & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
package version

// Version is set at build time: -ldflags "-X github.com/divmora/code-review-bot/internal/version.Version=1.2.3".
var Version = "0.5.0" // x-release-please-version
var Version = "0.6.0" // x-release-please-version
Loading