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.
Files changed (69) hide show
  1. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/AGENTS.md +5 -4
  2. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/CHANGELOG.md +23 -0
  3. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/CONTRIBUTING.md +26 -6
  4. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/Cargo.lock +104 -104
  5. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/Cargo.toml +2 -2
  6. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/PKG-INFO +1 -1
  7. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/README.md +5 -4
  8. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/bindings/python/CHANGELOG.md +34 -0
  9. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/bindings/python/Cargo.toml +4 -4
  10. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/bindings/python/git_bot_feedback.pyi +38 -0
  11. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/bindings/python/src/lib.rs +16 -0
  12. git_bot_feedback-0.6.0/bindings/python/src/py_types.rs +232 -0
  13. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/bindings/python/src/wrapper.rs +157 -96
  14. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/cspell.config.yml +3 -0
  15. git_bot_feedback-0.6.0/docs/API/errors.rst +12 -0
  16. git_bot_feedback-0.6.0/docs/API/http.rst +8 -0
  17. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/index.rst +2 -0
  18. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/git_bot_feedback.pyi +38 -0
  19. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/nurfile +12 -0
  20. git_bot_feedback-0.6.0/src/client/common.rs +87 -0
  21. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitea/mod.rs +44 -7
  22. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitea/specific_api.rs +190 -48
  23. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/github/mod.rs +25 -24
  24. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/github/specific_api.rs +84 -211
  25. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitlab/mod.rs +34 -3
  26. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitlab/specific_api.rs +141 -12
  27. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/mod.rs +115 -0
  28. git_bot_feedback-0.6.0/src/file_annotations.rs +442 -0
  29. git_bot_feedback-0.6.0/uv.lock +942 -0
  30. git_bot_feedback-0.5.0/src/client/common.rs +0 -31
  31. git_bot_feedback-0.5.0/src/file_annotations.rs +0 -117
  32. git_bot_feedback-0.5.0/uv.lock +0 -658
  33. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/.gitattributes +0 -0
  34. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/.gitignore +0 -0
  35. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/.pre-commit-config.yaml +0 -0
  36. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/LICENSE +0 -0
  37. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/README.rst +0 -0
  38. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/bindings/python/README.rst +0 -0
  39. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/build.rs +0 -0
  40. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/codecov.yml +0 -0
  41. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/client.rst +0 -0
  42. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/file-annotations.rst +0 -0
  43. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/file-changes.rst +0 -0
  44. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/output-variables.rst +0 -0
  45. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/pr-reviews.rst +0 -0
  46. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/API/thread-comments.rst +0 -0
  47. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/_static/favicon.ico +0 -0
  48. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/_static/logo.png +0 -0
  49. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/conf.py +0 -0
  50. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/index.rst +0 -0
  51. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/logo.xcf +0 -0
  52. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/docs/permissions/gitlab.md +0 -0
  53. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/pyproject.toml +0 -0
  54. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitea/serde_structs.rs +0 -0
  55. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/github/graphql.rs +0 -0
  56. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/github/serde_structs.rs +0 -0
  57. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitlab/diff_positions.rs +0 -0
  58. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitlab/reviews.rs +0 -0
  59. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/gitlab/serde_structs.rs +0 -0
  60. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/client/local.rs +0 -0
  61. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/comments/mod.rs +0 -0
  62. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/comments/review_comments.rs +0 -0
  63. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/comments/thread_comments.rs +0 -0
  64. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/error.rs +0 -0
  65. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/file_utils/file_filter.rs +0 -0
  66. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/file_utils/mod.rs +0 -0
  67. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/git_diff.rs +0 -0
  68. {git_bot_feedback-0.5.0 → git_bot_feedback-0.6.0}/src/lib.rs +0 -0
  69. {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 Rule: Never Run `cargo test` Directly
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 this project's tests. This project's tests
90
- > heavy rely on manipulating environment variables. Instead, this project
91
- > leverages [cargo-nextest] to isolate each test with it's own environment
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
- Unit tests are performed using [cargo-nextest] while coverage is measured by
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