git-bot-feedback 0.5.0__tar.gz → 0.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/AGENTS.md +5 -4
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/CHANGELOG.md +23 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/CONTRIBUTING.md +26 -6
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/Cargo.lock +104 -104
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/Cargo.toml +2 -2
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/PKG-INFO +1 -1
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/README.md +5 -4
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/bindings/python/CHANGELOG.md +34 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/bindings/python/Cargo.toml +4 -4
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/bindings/python/git_bot_feedback.pyi +38 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/bindings/python/src/lib.rs +16 -0
- git_bot_feedback-0.6.0/bindings/python/src/py_types.rs +232 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/bindings/python/src/wrapper.rs +157 -96
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/cspell.config.yml +3 -0
- git_bot_feedback-0.6.0/docs/API/errors.rst +12 -0
- git_bot_feedback-0.6.0/docs/API/http.rst +8 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/index.rst +2 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/git_bot_feedback.pyi +38 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/nurfile +12 -0
- git_bot_feedback-0.6.0/src/client/common.rs +87 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitea/mod.rs +44 -7
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitea/specific_api.rs +190 -48
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/github/mod.rs +25 -24
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/github/specific_api.rs +84 -211
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitlab/mod.rs +34 -3
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitlab/specific_api.rs +141 -12
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/mod.rs +115 -0
- git_bot_feedback-0.6.0/src/file_annotations.rs +442 -0
- git_bot_feedback-0.6.0/uv.lock +942 -0
- git_bot_feedback-0.5.0/src/client/common.rs +0 -31
- git_bot_feedback-0.5.0/src/file_annotations.rs +0 -117
- git_bot_feedback-0.5.0/uv.lock +0 -658
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/.gitattributes +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/.gitignore +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/.pre-commit-config.yaml +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/LICENSE +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/README.rst +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/bindings/python/README.rst +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/build.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/codecov.yml +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/client.rst +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/file-annotations.rst +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/file-changes.rst +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/output-variables.rst +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/pr-reviews.rst +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/thread-comments.rst +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/_static/favicon.ico +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/_static/logo.png +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/conf.py +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/index.rst +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/logo.xcf +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/permissions/gitlab.md +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/pyproject.toml +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitea/serde_structs.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/github/graphql.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/github/serde_structs.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitlab/diff_positions.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitlab/reviews.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitlab/serde_structs.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/local.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/comments/mod.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/comments/review_comments.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/comments/thread_comments.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/error.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/file_utils/file_filter.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/file_utils/mod.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/git_diff.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/lib.rs +0 -0
- {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/output_variable.rs +0 -0
|
@@ -12,11 +12,11 @@ This document provides conventions, architectural context, and workflow commands
|
|
|
12
12
|
|
|
13
13
|
## Critical Invariants & Rules
|
|
14
14
|
|
|
15
|
-
### 1. Test Execution
|
|
15
|
+
### 1. Test Execution Rules
|
|
16
16
|
> [!IMPORTANT]
|
|
17
|
-
> Do **not** run raw `cargo test` for unit or integration tests!
|
|
18
|
-
> The test suite relies heavily on manipulating environment variables. `cargo test` executes tests concurrently within the same process space, causing severe cross-test pollution and intermittent failures.
|
|
19
|
-
> Always execute tests through `cargo-nextest` (or `nur test`), which provides process isolation for each individual test.
|
|
17
|
+
> Do **not** run raw `cargo test` for Rust unit or integration tests!
|
|
18
|
+
> The Rust test suite relies heavily on manipulating environment variables. `cargo test` executes tests concurrently within the same process space, causing severe cross-test pollution and intermittent failures.
|
|
19
|
+
> Always execute Rust tests through `cargo-nextest` (or `nur test`), which provides process isolation for each individual test. Python binding tests must be written in Python under `bindings/python/tests` and run with `uv run --group test pytest bindings/python/tests` or `nur test py [--clean]`.
|
|
20
20
|
|
|
21
21
|
Note, this project is primarily hosted on GitHub; any mirrors on other platforms are considered unofficial. Therefore, the CI workflows and tests all are designed for GitHub Actions.
|
|
22
22
|
|
|
@@ -46,6 +46,7 @@ This project uses [nur](https://crates.io/crates/nur) (a task runner using Nushe
|
|
|
46
46
|
| :--- | :--- | :--- |
|
|
47
47
|
| **Run Tests** | `nur test` | Runs tests with `cargo-nextest` under the `default` profile (marks tests > 10s as "SLOW"). |
|
|
48
48
|
| **Run CI Tests** | `nur test -p ci` | Runs all tests including slow tests with verbose output. |
|
|
49
|
+
| **Run Python Tests** | `nur test py` | Runs the Python binding's pytest suite under `bindings/python/tests`. |
|
|
49
50
|
| **Run Doc Tests** | `nur test docs` | Runs doc tests (`cargo test --doc --features file-changes`). |
|
|
50
51
|
| **Generate Coverage** | `nur test lcov` / `nur test html` | Generates LCOV or HTML coverage via `cargo-llvm-cov`. |
|
|
51
52
|
| **Lint & Format Check** | `nur lint --check` | Runs `cargo clippy --workspace --features file-changes --all-targets -- -D warnings` and `cargo fmt -- --check`. |
|
|
@@ -6,6 +6,25 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
<!-- markdownlint-disable MD024 -->
|
|
8
8
|
|
|
9
|
+
## [git-bot-feedback/v0.12.0] - 2026-11-06
|
|
10
|
+
|
|
11
|
+
### <!-- 1 --> 🚀 Added
|
|
12
|
+
|
|
13
|
+
- Add `RestApiClient::is_pr_same_remote()` by @2bndy5 in [#160](https://github.com/2bndy5/git-bot-feedback/pull/160)
|
|
14
|
+
- Add request, response, and error types by @2bndy5 in [#161](https://github.com/2bndy5/git-bot-feedback/pull/161)
|
|
15
|
+
|
|
16
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
17
|
+
|
|
18
|
+
- Use the API root set by Gitea's runner and fill in missing methods by @shenxianpeng in [#162](https://github.com/2bndy5/git-bot-feedback/pull/162)
|
|
19
|
+
|
|
20
|
+
### <!-- 9 --> 🗨️ Changed
|
|
21
|
+
|
|
22
|
+
- Eliminate fallback to "unknown" event name by @2bndy5 in [#164](https://github.com/2bndy5/git-bot-feedback/pull/164)
|
|
23
|
+
|
|
24
|
+
[git-bot-feedback/v0.12.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.11.0...git-bot-feedback/v0.12.0
|
|
25
|
+
|
|
26
|
+
Full commit diff: [`git-bot-feedback/v0.11.0...git-bot-feedback/v0.12.0`][git-bot-feedback/v0.12.0]
|
|
27
|
+
|
|
9
28
|
## [git-bot-feedback/v0.11.0] - 2026-10-27
|
|
10
29
|
|
|
11
30
|
### <!-- 1 --> 🚀 Added
|
|
@@ -16,6 +35,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
16
35
|
|
|
17
36
|
- Add impl for `GitlabApiClient::workspace_root()` by @2bndy5 in [#153](https://github.com/2bndy5/git-bot-feedback/pull/153)
|
|
18
37
|
|
|
38
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
39
|
+
|
|
40
|
+
- Bump version to git-bot-feedback/v0.11.0 by @2bndy5 in [`b6d5b08`](https://github.com/2bndy5/git-bot-feedback/commit/b6d5b085a1a43268818b1c4ded00e62fc649b15a)
|
|
41
|
+
|
|
19
42
|
[git-bot-feedback/v0.11.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.10.0...git-bot-feedback/v0.11.0
|
|
20
43
|
|
|
21
44
|
Full commit diff: [`git-bot-feedback/v0.10.0...git-bot-feedback/v0.11.0`][git-bot-feedback/v0.11.0]
|
|
@@ -86,10 +86,9 @@ nur lint
|
|
|
86
86
|
## Testing
|
|
87
87
|
|
|
88
88
|
> [!WARNING]
|
|
89
|
-
> Do not use `cargo test` to run
|
|
90
|
-
>
|
|
91
|
-
>
|
|
92
|
-
> context. See
|
|
89
|
+
> Do not use `cargo test` to run Rust unit or integration tests. These tests
|
|
90
|
+
> heavily rely on manipulating environment variables, so use [cargo-nextest] to
|
|
91
|
+
> isolate each test in its own environment context. See
|
|
93
92
|
> [cargo-nextest documentation about altering environment variables][cargo-nextest-env-docs].
|
|
94
93
|
|
|
95
94
|
[cargo-nextest-env-docs]: https://nexte.st/docs/configuration/env-vars/#altering-the-environment-within-tests
|
|
@@ -101,8 +100,11 @@ various test options (applicable to this project) into tasks.
|
|
|
101
100
|
|
|
102
101
|
### Running tests
|
|
103
102
|
|
|
104
|
-
|
|
105
|
-
[cargo-llvm-cov].
|
|
103
|
+
Rust unit and integration tests are written in Rust and run using
|
|
104
|
+
[cargo-nextest]. Rust coverage is measured by [cargo-llvm-cov].
|
|
105
|
+
|
|
106
|
+
The Python binding code does not get measured for code coverage.
|
|
107
|
+
See [running python tests below](#running-python-tests).
|
|
106
108
|
|
|
107
109
|
#### Run the tests
|
|
108
110
|
|
|
@@ -150,6 +152,24 @@ nur test lcov
|
|
|
150
152
|
|
|
151
153
|
</details>
|
|
152
154
|
|
|
155
|
+
### Running Python tests
|
|
156
|
+
|
|
157
|
+
Python binding tests are written in Python under
|
|
158
|
+
`bindings/python/tests` and run using [uv] and pytest:
|
|
159
|
+
|
|
160
|
+
```shell
|
|
161
|
+
uv run --group test pytest bindings/python/tests
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
The equivalent [nur] task is:
|
|
165
|
+
|
|
166
|
+
```shell
|
|
167
|
+
nur test py
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
> [!TIP]
|
|
171
|
+
> Use `--clean`/`-c` arg to `nur test py` to rebuild the binding from scratch.
|
|
172
|
+
|
|
153
173
|
## API documentation
|
|
154
174
|
|
|
155
175
|
Documentation is hosted at docs.rs automatically upon release. To verify any
|