git-bot-feedback 0.5.1__tar.gz → 0.6.1__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.1 → git_bot_feedback-0.6.1}/AGENTS.md +5 -4
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/CHANGELOG.md +37 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/CONTRIBUTING.md +26 -6
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/Cargo.lock +18 -18
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/Cargo.toml +2 -2
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/PKG-INFO +1 -1
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/README.md +5 -4
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/bindings/python/CHANGELOG.md +48 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/bindings/python/Cargo.toml +4 -4
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/bindings/python/git_bot_feedback.pyi +38 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/bindings/python/src/lib.rs +16 -0
- git_bot_feedback-0.6.1/bindings/python/src/py_types.rs +232 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/bindings/python/src/wrapper.rs +164 -96
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/cspell.config.yml +3 -0
- git_bot_feedback-0.6.1/docs/API/errors.rst +12 -0
- git_bot_feedback-0.6.1/docs/API/http.rst +8 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/docs/API/index.rst +2 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/git_bot_feedback.pyi +38 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/nurfile +12 -0
- git_bot_feedback-0.6.1/src/client/common.rs +87 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/gitea/mod.rs +44 -7
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/gitea/specific_api.rs +190 -48
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/github/mod.rs +25 -24
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/github/specific_api.rs +84 -211
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/gitlab/mod.rs +36 -4
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/gitlab/specific_api.rs +143 -13
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/mod.rs +143 -0
- git_bot_feedback-0.6.1/src/file_annotations.rs +442 -0
- git_bot_feedback-0.6.1/uv.lock +942 -0
- git_bot_feedback-0.5.1/src/client/common.rs +0 -31
- git_bot_feedback-0.5.1/src/file_annotations.rs +0 -117
- git_bot_feedback-0.5.1/uv.lock +0 -658
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/.gitattributes +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/.gitignore +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/.pre-commit-config.yaml +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/LICENSE +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/README.rst +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/bindings/python/README.rst +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/build.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/codecov.yml +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/docs/API/client.rst +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/docs/API/file-annotations.rst +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/docs/API/file-changes.rst +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/docs/API/output-variables.rst +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/docs/API/pr-reviews.rst +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/docs/API/thread-comments.rst +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/docs/_static/favicon.ico +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/docs/_static/logo.png +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/docs/conf.py +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/docs/index.rst +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/docs/logo.xcf +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/docs/permissions/gitlab.md +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/pyproject.toml +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/gitea/serde_structs.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/github/graphql.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/github/serde_structs.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/gitlab/diff_positions.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/gitlab/reviews.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/gitlab/serde_structs.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/client/local.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/comments/mod.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/comments/review_comments.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/comments/thread_comments.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/error.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/file_utils/file_filter.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/file_utils/mod.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/git_diff.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/src/lib.rs +0 -0
- {git_bot_feedback-0.5.1 → git_bot_feedback-0.6.1}/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,39 @@ 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.1] - 2026-11-06
|
|
10
|
+
|
|
11
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
12
|
+
|
|
13
|
+
- Use same-origin redirect policy by @2bndy5 in [#165](https://github.com/2bndy5/git-bot-feedback/pull/165)
|
|
14
|
+
|
|
15
|
+
[git-bot-feedback/v0.12.1]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.12.0...git-bot-feedback/v0.12.1
|
|
16
|
+
|
|
17
|
+
Full commit diff: [`git-bot-feedback/v0.12.0...git-bot-feedback/v0.12.1`][git-bot-feedback/v0.12.1]
|
|
18
|
+
|
|
19
|
+
## [git-bot-feedback/v0.12.0] - 2026-11-06
|
|
20
|
+
|
|
21
|
+
### <!-- 1 --> 🚀 Added
|
|
22
|
+
|
|
23
|
+
- Add `RestApiClient::is_pr_same_remote()` by @2bndy5 in [#160](https://github.com/2bndy5/git-bot-feedback/pull/160)
|
|
24
|
+
- Add request, response, and error types by @2bndy5 in [#161](https://github.com/2bndy5/git-bot-feedback/pull/161)
|
|
25
|
+
|
|
26
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
27
|
+
|
|
28
|
+
- 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)
|
|
29
|
+
|
|
30
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
31
|
+
|
|
32
|
+
- Bump version to git-bot-feedback/v0.12.0 by @2bndy5 in [`eae30be`](https://github.com/2bndy5/git-bot-feedback/commit/eae30be526aa3ee97954ab314a45b1569f2e3c7d)
|
|
33
|
+
|
|
34
|
+
### <!-- 9 --> 🗨️ Changed
|
|
35
|
+
|
|
36
|
+
- Eliminate fallback to "unknown" event name by @2bndy5 in [#164](https://github.com/2bndy5/git-bot-feedback/pull/164)
|
|
37
|
+
|
|
38
|
+
[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
|
|
39
|
+
|
|
40
|
+
Full commit diff: [`git-bot-feedback/v0.11.0...git-bot-feedback/v0.12.0`][git-bot-feedback/v0.12.0]
|
|
41
|
+
|
|
9
42
|
## [git-bot-feedback/v0.11.0] - 2026-10-27
|
|
10
43
|
|
|
11
44
|
### <!-- 1 --> 🚀 Added
|
|
@@ -16,6 +49,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
16
49
|
|
|
17
50
|
- Add impl for `GitlabApiClient::workspace_root()` by @2bndy5 in [#153](https://github.com/2bndy5/git-bot-feedback/pull/153)
|
|
18
51
|
|
|
52
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
53
|
+
|
|
54
|
+
- Bump version to git-bot-feedback/v0.11.0 by @2bndy5 in [`b6d5b08`](https://github.com/2bndy5/git-bot-feedback/commit/b6d5b085a1a43268818b1c4ded00e62fc649b15a)
|
|
55
|
+
|
|
19
56
|
[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
57
|
|
|
21
58
|
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
|
|
@@ -413,7 +413,7 @@ dependencies = [
|
|
|
413
413
|
|
|
414
414
|
[[package]]
|
|
415
415
|
name = "git-bot-feedback"
|
|
416
|
-
version = "0.
|
|
416
|
+
version = "0.12.1"
|
|
417
417
|
dependencies = [
|
|
418
418
|
"async-trait",
|
|
419
419
|
"chrono",
|
|
@@ -433,7 +433,7 @@ dependencies = [
|
|
|
433
433
|
|
|
434
434
|
[[package]]
|
|
435
435
|
name = "git-bot-feedback-py"
|
|
436
|
-
version = "0.
|
|
436
|
+
version = "0.6.1"
|
|
437
437
|
dependencies = [
|
|
438
438
|
"git-bot-feedback",
|
|
439
439
|
"pyo3",
|
|
@@ -992,9 +992,9 @@ dependencies = [
|
|
|
992
992
|
|
|
993
993
|
[[package]]
|
|
994
994
|
name = "pyo3"
|
|
995
|
-
version = "0.
|
|
995
|
+
version = "0.30.1"
|
|
996
996
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
997
|
-
checksum = "
|
|
997
|
+
checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
998
998
|
dependencies = [
|
|
999
999
|
"libc",
|
|
1000
1000
|
"once_cell",
|
|
@@ -1006,9 +1006,9 @@ dependencies = [
|
|
|
1006
1006
|
|
|
1007
1007
|
[[package]]
|
|
1008
1008
|
name = "pyo3-async-runtimes"
|
|
1009
|
-
version = "0.
|
|
1009
|
+
version = "0.30.0"
|
|
1010
1010
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1011
|
-
checksum = "
|
|
1011
|
+
checksum = "b877331c7817ccb6379e9d19a06993160141f1d0a386e55276128717df85e3fc"
|
|
1012
1012
|
dependencies = [
|
|
1013
1013
|
"futures-channel",
|
|
1014
1014
|
"futures-util",
|
|
@@ -1020,18 +1020,18 @@ dependencies = [
|
|
|
1020
1020
|
|
|
1021
1021
|
[[package]]
|
|
1022
1022
|
name = "pyo3-build-config"
|
|
1023
|
-
version = "0.
|
|
1023
|
+
version = "0.30.1"
|
|
1024
1024
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1025
|
-
checksum = "
|
|
1025
|
+
checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
1026
1026
|
dependencies = [
|
|
1027
1027
|
"target-lexicon",
|
|
1028
1028
|
]
|
|
1029
1029
|
|
|
1030
1030
|
[[package]]
|
|
1031
1031
|
name = "pyo3-ffi"
|
|
1032
|
-
version = "0.
|
|
1032
|
+
version = "0.30.1"
|
|
1033
1033
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1034
|
-
checksum = "
|
|
1034
|
+
checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
1035
1035
|
dependencies = [
|
|
1036
1036
|
"libc",
|
|
1037
1037
|
"pyo3-build-config",
|
|
@@ -1039,9 +1039,9 @@ dependencies = [
|
|
|
1039
1039
|
|
|
1040
1040
|
[[package]]
|
|
1041
1041
|
name = "pyo3-log"
|
|
1042
|
-
version = "0.13.
|
|
1042
|
+
version = "0.13.5"
|
|
1043
1043
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1044
|
-
checksum = "
|
|
1044
|
+
checksum = "b91aabf1c0d674a2e3b0b55daab6cef1308ce6f0ad3697ae56f4f68db54c98a1"
|
|
1045
1045
|
dependencies = [
|
|
1046
1046
|
"arc-swap",
|
|
1047
1047
|
"log",
|
|
@@ -1050,26 +1050,26 @@ dependencies = [
|
|
|
1050
1050
|
|
|
1051
1051
|
[[package]]
|
|
1052
1052
|
name = "pyo3-macros"
|
|
1053
|
-
version = "0.
|
|
1053
|
+
version = "0.30.1"
|
|
1054
1054
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1055
|
-
checksum = "
|
|
1055
|
+
checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
1056
1056
|
dependencies = [
|
|
1057
1057
|
"proc-macro2",
|
|
1058
1058
|
"pyo3-macros-backend",
|
|
1059
1059
|
"quote",
|
|
1060
|
-
"syn
|
|
1060
|
+
"syn 3.0.9",
|
|
1061
1061
|
]
|
|
1062
1062
|
|
|
1063
1063
|
[[package]]
|
|
1064
1064
|
name = "pyo3-macros-backend"
|
|
1065
|
-
version = "0.
|
|
1065
|
+
version = "0.30.1"
|
|
1066
1066
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1067
|
-
checksum = "
|
|
1067
|
+
checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
1068
1068
|
dependencies = [
|
|
1069
1069
|
"heck",
|
|
1070
1070
|
"proc-macro2",
|
|
1071
1071
|
"quote",
|
|
1072
|
-
"syn
|
|
1072
|
+
"syn 3.0.9",
|
|
1073
1073
|
]
|
|
1074
1074
|
|
|
1075
1075
|
[[package]]
|
|
@@ -7,7 +7,7 @@ repository = "https://github.com/2bndy5/git-bot-feedback"
|
|
|
7
7
|
license = "LGPL-3.0-or-later"
|
|
8
8
|
|
|
9
9
|
[workspace.dependencies]
|
|
10
|
-
pyo3 = { version = "0.
|
|
10
|
+
pyo3 = { version = "0.30.1", features = ["extension-module"] }
|
|
11
11
|
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
|
|
12
12
|
|
|
13
13
|
[workspace.dependencies.reqwest]
|
|
@@ -21,7 +21,7 @@ features = ["http2", "charset", "system-proxy"]
|
|
|
21
21
|
[package]
|
|
22
22
|
name = "git-bot-feedback"
|
|
23
23
|
description = "A library designed for CI tools that posts comments on a Pull Request."
|
|
24
|
-
version = "0.
|
|
24
|
+
version = "0.12.1"
|
|
25
25
|
edition.workspace = true
|
|
26
26
|
license.workspace = true
|
|
27
27
|
repository.workspace = true
|
|
@@ -51,9 +51,10 @@ The following is just a list of git servers that are planned (in order or priori
|
|
|
51
51
|
Gitea does not support
|
|
52
52
|
|
|
53
53
|
- posting thread comments for commits (push events)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
|
|
55
|
+
Deleting a PR review's individual comments
|
|
56
|
+
(see `ReviewOptions::delete_review_comments`) requires Gitea v1.25 or newer;
|
|
57
|
+
older versions only resolve them.
|
|
57
58
|
|
|
58
59
|
Only a repository admin can dismiss a PR review.
|
|
59
60
|
If the token's user is not an admin, outdated reviews can only be deleted
|
|
@@ -65,7 +66,7 @@ The following is just a list of git servers that are planned (in order or priori
|
|
|
65
66
|
which sets the `FORGEJO_ACTIONS` environment variable.
|
|
66
67
|
The token is read from the `GITEA_TOKEN` environment variable, or
|
|
67
68
|
the `FORGEJO_TOKEN` environment variable that the runner sets automatically.
|
|
68
|
-
Forgejo also does not support resolving a PR review's individual comments.
|
|
69
|
+
Forgejo also does not support resolving or deleting a PR review's individual comments.
|
|
69
70
|
- [ ] BitBucket
|
|
70
71
|
|
|
71
72
|
### Optional support
|
|
@@ -6,6 +6,54 @@ 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-py/v0.6.1] - 2026-11-06
|
|
10
|
+
|
|
11
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
12
|
+
|
|
13
|
+
- Use same-origin redirect policy by @2bndy5 in [#165](https://github.com/2bndy5/git-bot-feedback/pull/165)
|
|
14
|
+
|
|
15
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
16
|
+
|
|
17
|
+
- Bump version to git-bot-feedback/v0.12.1 by @2bndy5 in [`1eb37b3`](https://github.com/2bndy5/git-bot-feedback/commit/1eb37b3dc60bac0465f8f7e03ca3572671b4a48b)
|
|
18
|
+
|
|
19
|
+
[git-bot-feedback-py/v0.6.1]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback-py/v0.6.0...git-bot-feedback-py/v0.6.1
|
|
20
|
+
|
|
21
|
+
Full commit diff: [`git-bot-feedback-py/v0.6.0...git-bot-feedback-py/v0.6.1`][git-bot-feedback-py/v0.6.1]
|
|
22
|
+
|
|
23
|
+
## [git-bot-feedback-py/v0.6.0] - 2026-11-06
|
|
24
|
+
|
|
25
|
+
### <!-- 1 --> 🚀 Added
|
|
26
|
+
|
|
27
|
+
- Add `RestApiClient::is_pr_same_remote()` by @2bndy5 in [#160](https://github.com/2bndy5/git-bot-feedback/pull/160)
|
|
28
|
+
- Add request, response, and error types by @2bndy5 in [#161](https://github.com/2bndy5/git-bot-feedback/pull/161)
|
|
29
|
+
|
|
30
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
31
|
+
|
|
32
|
+
- 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)
|
|
33
|
+
|
|
34
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
35
|
+
|
|
36
|
+
- Bump version to git-bot-feedback/v0.12.0 by @2bndy5 in [`eae30be`](https://github.com/2bndy5/git-bot-feedback/commit/eae30be526aa3ee97954ab314a45b1569f2e3c7d)
|
|
37
|
+
- Bump version to git-bot-feedback-py/v0.6.0 by @2bndy5 in [`7b03713`](https://github.com/2bndy5/git-bot-feedback/commit/7b037137a2143f092c516d6e5d15d6eb2e90e507)
|
|
38
|
+
|
|
39
|
+
### <!-- 9 --> 🗨️ Changed
|
|
40
|
+
|
|
41
|
+
- Eliminate fallback to "unknown" event name by @2bndy5 in [#164](https://github.com/2bndy5/git-bot-feedback/pull/164)
|
|
42
|
+
|
|
43
|
+
[git-bot-feedback-py/v0.6.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback-py/v0.5.1...git-bot-feedback-py/v0.6.0
|
|
44
|
+
|
|
45
|
+
Full commit diff: [`git-bot-feedback-py/v0.5.1...git-bot-feedback-py/v0.6.0`][git-bot-feedback-py/v0.6.0]
|
|
46
|
+
|
|
47
|
+
## [git-bot-feedback-py/v0.5.1] - 2026-10-28
|
|
48
|
+
|
|
49
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
50
|
+
|
|
51
|
+
- Bump version to git-bot-feedback-py/v0.5.1 by @2bndy5 in [`082c761`](https://github.com/2bndy5/git-bot-feedback/commit/082c76147cb01b032957a3a1b13b03fe8811e6a1)
|
|
52
|
+
|
|
53
|
+
[git-bot-feedback-py/v0.5.1]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback-py/v0.5.0...git-bot-feedback-py/v0.5.1
|
|
54
|
+
|
|
55
|
+
Full commit diff: [`git-bot-feedback-py/v0.5.0...git-bot-feedback-py/v0.5.1`][git-bot-feedback-py/v0.5.1]
|
|
56
|
+
|
|
9
57
|
## [git-bot-feedback-py/v0.5.0] - 2026-10-27
|
|
10
58
|
|
|
11
59
|
### <!-- 1 --> 🚀 Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "git-bot-feedback-py"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.6.1"
|
|
4
4
|
edition.workspace = true
|
|
5
5
|
license.workspace = true
|
|
6
6
|
repository.workspace = true
|
|
@@ -14,9 +14,9 @@ crate-type = ["cdylib"] # spell-checker: disable-line
|
|
|
14
14
|
path = "src/lib.rs"
|
|
15
15
|
|
|
16
16
|
[dependencies]
|
|
17
|
-
git-bot-feedback = { path = "../..", version = "0.
|
|
17
|
+
git-bot-feedback = { path = "../..", version = "0.12.1", features = ["file-changes", "pyo3"] }
|
|
18
18
|
pyo3 = { workspace = true }
|
|
19
|
-
pyo3-async-runtimes = { version = "0.
|
|
20
|
-
pyo3-log = "0.13.
|
|
19
|
+
pyo3-async-runtimes = { version = "0.30.0", features = ["tokio-runtime"] }
|
|
20
|
+
pyo3-log = "0.13.5"
|
|
21
21
|
reqwest = { workspace = true, features = ["default-tls"] }
|
|
22
22
|
tokio = { workspace = true }
|
|
@@ -6,6 +6,7 @@ from typing import NamedTuple
|
|
|
6
6
|
class GitClient:
|
|
7
7
|
def __init__(self) -> None: ...
|
|
8
8
|
def is_pr_event(self) -> bool: ...
|
|
9
|
+
def is_pr_same_remote(self) -> bool: ...
|
|
9
10
|
def is_debug_enabled(self) -> bool: ...
|
|
10
11
|
def start_log_group(self, name: str) -> None: ...
|
|
11
12
|
def end_log_group(self, name: str) -> None: ...
|
|
@@ -27,10 +28,47 @@ class GitClient:
|
|
|
27
28
|
self, output_variables: list[OutputVariable]
|
|
28
29
|
) -> None: ...
|
|
29
30
|
def write_file_annotations(self, annotations: list[FileAnnotation]) -> None: ...
|
|
31
|
+
async def send_api_request(self, request: Request) -> Response: ...
|
|
32
|
+
def try_next_page(self, headers: dict[str, str]) -> str | None: ...
|
|
30
33
|
@property
|
|
31
34
|
def client_kind(self) -> str: ...
|
|
35
|
+
@property
|
|
36
|
+
def api_url(self) -> str | None: ...
|
|
37
|
+
@property
|
|
38
|
+
def token_env_vars(self) -> list[str]: ...
|
|
32
39
|
def workspace_root(self) -> Path | None: ...
|
|
33
40
|
|
|
41
|
+
class Request:
|
|
42
|
+
url: str
|
|
43
|
+
method: str
|
|
44
|
+
headers: dict[str, str]
|
|
45
|
+
body: str | None
|
|
46
|
+
def __init__(
|
|
47
|
+
self,
|
|
48
|
+
url: str,
|
|
49
|
+
method: str = "GET",
|
|
50
|
+
headers: dict[str, str] | None = None,
|
|
51
|
+
body: str | None = None,
|
|
52
|
+
) -> None: ...
|
|
53
|
+
def set_token(self, token: str) -> None: ...
|
|
54
|
+
|
|
55
|
+
class Response:
|
|
56
|
+
@property
|
|
57
|
+
def status(self) -> int: ...
|
|
58
|
+
@property
|
|
59
|
+
def body(self) -> str: ...
|
|
60
|
+
@property
|
|
61
|
+
def headers(self) -> dict[str, str]: ...
|
|
62
|
+
|
|
63
|
+
class GitBotFeedbackError(Exception): ...
|
|
64
|
+
|
|
65
|
+
class RequestError(GitBotFeedbackError):
|
|
66
|
+
status: int | None
|
|
67
|
+
|
|
68
|
+
class RateLimitError(GitBotFeedbackError): ...
|
|
69
|
+
class ParseError(GitBotFeedbackError): ...
|
|
70
|
+
class EnvironmentError(GitBotFeedbackError): ...
|
|
71
|
+
|
|
34
72
|
class OutputVariable:
|
|
35
73
|
def __init__(self, name: str, value: str) -> None: ...
|
|
36
74
|
def validate(self) -> bool: ...
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
use pyo3::prelude::*;
|
|
2
|
+
mod py_types;
|
|
2
3
|
mod wrapper;
|
|
3
4
|
|
|
4
5
|
#[doc = include_str!("../README.rst")]
|
|
@@ -17,6 +18,21 @@ mod git_bot_feedback {
|
|
|
17
18
|
Ok(())
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
#[pymodule_export]
|
|
22
|
+
use super::py_types::EnvironmentError;
|
|
23
|
+
#[pymodule_export]
|
|
24
|
+
use super::py_types::GitBotFeedbackError;
|
|
25
|
+
#[pymodule_export]
|
|
26
|
+
use super::py_types::ParseError;
|
|
27
|
+
#[pymodule_export]
|
|
28
|
+
use super::py_types::PyRequest;
|
|
29
|
+
#[pymodule_export]
|
|
30
|
+
use super::py_types::PyResponse;
|
|
31
|
+
#[pymodule_export]
|
|
32
|
+
use super::py_types::RateLimitError;
|
|
33
|
+
#[pymodule_export]
|
|
34
|
+
use super::py_types::RequestError;
|
|
35
|
+
|
|
20
36
|
#[pymodule_export]
|
|
21
37
|
use super::wrapper::GitClient;
|
|
22
38
|
|