git-bot-feedback 0.3.0__tar.gz → 0.5.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 (63) hide show
  1. git_bot_feedback-0.5.0/AGENTS.md +135 -0
  2. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/CHANGELOG.md +32 -0
  3. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/Cargo.lock +14 -14
  4. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/Cargo.toml +5 -2
  5. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/PKG-INFO +27 -2
  6. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/README.md +25 -1
  7. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/README.rst +26 -1
  8. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/bindings/python/CHANGELOG.md +34 -0
  9. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/bindings/python/Cargo.toml +2 -2
  10. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/bindings/python/README.rst +26 -1
  11. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/cspell.config.yml +4 -0
  12. git_bot_feedback-0.5.0/docs/permissions/gitlab.md +132 -0
  13. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/client/common.rs +1 -0
  14. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/client/gitea/mod.rs +18 -23
  15. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/client/gitea/serde_structs.rs +13 -6
  16. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/client/gitea/specific_api.rs +98 -33
  17. git_bot_feedback-0.5.0/src/client/gitlab/diff_positions.rs +297 -0
  18. git_bot_feedback-0.5.0/src/client/gitlab/mod.rs +279 -0
  19. git_bot_feedback-0.5.0/src/client/gitlab/reviews.rs +445 -0
  20. git_bot_feedback-0.5.0/src/client/gitlab/serde_structs.rs +157 -0
  21. git_bot_feedback-0.5.0/src/client/gitlab/specific_api.rs +306 -0
  22. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/client/mod.rs +26 -9
  23. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/error.rs +5 -5
  24. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/git_diff.rs +113 -51
  25. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/lib.rs +1 -1
  26. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/.gitattributes +0 -0
  27. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/.gitignore +0 -0
  28. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/.pre-commit-config.yaml +0 -0
  29. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/CONTRIBUTING.md +0 -0
  30. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/LICENSE +0 -0
  31. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/bindings/python/git_bot_feedback.pyi +0 -0
  32. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/bindings/python/src/lib.rs +0 -0
  33. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/bindings/python/src/wrapper.rs +0 -0
  34. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/build.rs +0 -0
  35. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/codecov.yml +0 -0
  36. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/docs/API/client.rst +0 -0
  37. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/docs/API/file-annotations.rst +0 -0
  38. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/docs/API/file-changes.rst +0 -0
  39. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/docs/API/index.rst +0 -0
  40. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/docs/API/output-variables.rst +0 -0
  41. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/docs/API/pr-reviews.rst +0 -0
  42. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/docs/API/thread-comments.rst +0 -0
  43. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/docs/_static/favicon.ico +0 -0
  44. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/docs/_static/logo.png +0 -0
  45. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/docs/conf.py +0 -0
  46. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/docs/index.rst +0 -0
  47. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/docs/logo.xcf +0 -0
  48. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/git_bot_feedback.pyi +0 -0
  49. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/nurfile +0 -0
  50. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/pyproject.toml +0 -0
  51. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/client/github/graphql.rs +0 -0
  52. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/client/github/mod.rs +0 -0
  53. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/client/github/serde_structs.rs +0 -0
  54. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/client/github/specific_api.rs +0 -0
  55. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/client/local.rs +0 -0
  56. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/comments/mod.rs +0 -0
  57. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/comments/review_comments.rs +0 -0
  58. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/comments/thread_comments.rs +0 -0
  59. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/file_annotations.rs +0 -0
  60. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/file_utils/file_filter.rs +0 -0
  61. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/file_utils/mod.rs +0 -0
  62. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/src/output_variable.rs +0 -0
  63. {git_bot_feedback-0.3.0 → git_bot_feedback-0.5.0}/uv.lock +0 -0
@@ -0,0 +1,135 @@
1
+ # Agent Guidelines for git-bot-feedback
2
+
3
+ This document provides conventions, architectural context, and workflow commands for AI coding agents operating on this repository.
4
+
5
+ ## Project Overview
6
+
7
+ `git-bot-feedback` is a Rust library designed for CI workflows and automation tools to provide feedback on git hosting platforms:
8
+ - **Supported git servers**: GitHub, GitLab (>= v17.9), Gitea, Forgejo (BitBucket planned).
9
+ - **Core capabilities**: Thread comments (PR and commit), CI step summaries, output variables, log grouping, file annotations, Pull Request reviews, and changed file analysis.
10
+ - **Multi-language project**: Rust crate at workspace root (`git-bot-feedback`) and Python bindings in `bindings/python` (`git-bot-feedback-py` built with PyO3/Maturin).
11
+ - **License**: LGPL-3.0-or-later.
12
+
13
+ ## Critical Invariants & Rules
14
+
15
+ ### 1. Test Execution Rule: Never Run `cargo test` Directly
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.
20
+
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
+
23
+ ### 2. Line Endings & Whitespace
24
+ - **Line endings**: All files must strictly use LF (`\n`), never CRLF (`\r\n`).
25
+ - **Trailing whitespace**: No trailing whitespace permitted.
26
+ - **End of file**: Every file must terminate with a single trailing newline.
27
+ - **File size**: Do not commit large files (> 500 kB).
28
+
29
+ ### 3. Commit Messages and Pull Request Titles
30
+ - Must strictly conform to [Conventional Commits](https://www.conventionalcommits.org) specifications.
31
+ - Allowed commit types (enforced in `.config/committed.toml`):
32
+ `fix`, `feat`, `build`, `chore`, `docs`, `style`, `refactor`, `remove`, `deprecate`, `security`, `add`, `perf`, `test`.
33
+ - **Subject casing**: Must start with a lowercase letter (`subject_capitalized = false`).
34
+ - Pull request titles are validated in CI against Conventional Commits via `committed` and spell-checked via CSpell.
35
+ - Feature branches are squashed into a single commit upon merge into `main` so `git-cliff` can generate release notes and `CHANGELOG.md`.
36
+
37
+ ### 4. Spelling & Terminology
38
+ - CI enforces CSpell across all project files (`cspell.config.yml`).
39
+ - If you introduce new technical terms, acronyms, or crate names, verify they do not fail spell checking or add them to `cspell.config.yml`.
40
+
41
+ ## Task Runner: `nur`
42
+
43
+ This project uses [nur](https://crates.io/crates/nur) (a task runner using Nushell syntax) defined in `nurfile`. Prefer `nur` tasks over composite manual commands.
44
+
45
+ | Task | Command | Description |
46
+ | :--- | :--- | :--- |
47
+ | **Run Tests** | `nur test` | Runs tests with `cargo-nextest` under the `default` profile (marks tests > 10s as "SLOW"). |
48
+ | **Run CI Tests** | `nur test -p ci` | Runs all tests including slow tests with verbose output. |
49
+ | **Run Doc Tests** | `nur test docs` | Runs doc tests (`cargo test --doc --features file-changes`). |
50
+ | **Generate Coverage** | `nur test lcov` / `nur test html` | Generates LCOV or HTML coverage via `cargo-llvm-cov`. |
51
+ | **Lint & Format Check** | `nur lint --check` | Runs `cargo clippy --workspace --features file-changes --all-targets -- -D warnings` and `cargo fmt -- --check`. |
52
+ | **Auto-Fix Lint & Fmt** | `nur lint` | Applies clippy auto-fixes and formats code with `cargo fmt`. |
53
+ | **Pre-Commit Checks** | `nur pre-commit` | Runs pre-commit hooks via `uvx` on all files. |
54
+ | **Build Examples** | `nur examples` | Builds all examples in `examples/`. |
55
+ | **Build Docs** | `nur docs` | Builds Rust documentation (`cargo doc --no-deps --lib --features file-changes`). |
56
+ | **Build Python Docs**| `nur docs py` | Builds Python documentation using Sphinx and `uv`. |
57
+
58
+ ### Fallback Commands (if `nur` is unavailable)
59
+ - **Run tests**:
60
+ Without coverage measurements:
61
+ ```shell
62
+ cargo nextest run --features "test-skip-wait-for-rate-limit,file-changes" --profile default
63
+ ```
64
+
65
+ With coverage measurements:
66
+ ```shell
67
+ cargo llvm-cov --no-report --features "test-skip-wait-for-rate-limit,file-changes" nextest --profile default
68
+ ```
69
+
70
+ To generate a coverage report:
71
+ ```shell
72
+ cargo llvm-cov report --lcov --output-path lcov.info
73
+ # or for json output
74
+ cargo llvm-cov report --json --output-path coverage.json
75
+ ```
76
+ Git ignores both lcov.info and coverage.json files.
77
+
78
+ Use `cargo llvm-cov clean` to flush previous coverage measurements, if fresh coverage report is needed. This will invoke a fresh compile when running the test suite.
79
+ - **Lint check**:
80
+ ```shell
81
+ cargo clippy --workspace --features file-changes --all-targets -- -D warnings
82
+ cargo fmt -- --check
83
+ ```
84
+ - **Pre-commit**:
85
+ ```shell
86
+ uvx pre-commit run --all-files
87
+ ```
88
+
89
+ ## CI Pipeline Overview
90
+
91
+ Automated GitHub Actions workflows run on pushes and PRs to `main`:
92
+ 1. **`pre-commit.yml`**:
93
+ - `all-files`: Runs pre-commit hooks (whitespace, LF line endings, YAML/TOML syntax, file size limits, CSpell, Ruff, Mypy).
94
+ - `lint-rust`: Runs `nur lint --check` (`cargo clippy` with `-D warnings` and `cargo fmt -- --check`).
95
+ - `check-pr-title`: Verifies PR title with `committed` and `cspell-cli`.
96
+ - `lint-ci`: Checks GitHub Actions workflows with `zizmor`.
97
+ 2. **`rust.yml`**:
98
+ - Runs `nur test docs` (documentation examples).
99
+ - Runs `nur examples` (compiles all examples).
100
+ - Runs `nur test --profile ci` (runs nextest test suite under CI profile).
101
+ - Generates and uploads `lcov.info` coverage report to Codecov.
102
+ - Publishes to crates.io upon tagged release (`git-bot-feedback/v*`).
103
+ 3. **`docs.yml`**:
104
+ - Builds Python Sphinx docs and deploys to GitHub Pages on `main`.
105
+ - Builds Rustdoc documentation and uploads artifacts.
106
+ 4. **`python.yml`**:
107
+ - Compiles and packages Python wheels across platforms (Linux, macOS, Windows) and architectures using `maturin`.
108
+ - Validates distribution packages with `twine check`.
109
+ - Publishes to PyPI upon tagged release (`git-bot-feedback-py/v*`).
110
+ 5. **`bump-n-release.yml`**:
111
+ - Automated version bumping and release orchestration script (`bump-n-release.nu`).
112
+
113
+ ## Cargo Features & TLS Architecture
114
+
115
+ - **Default features**: `["github", "gitea", "gitlab"]`.
116
+ - **Optional features**:
117
+ - `file-changes`: Enables git diff inspection (`fast-glob`, `regex`).
118
+ - `pyo3`: Enables Python binding support.
119
+ - `custom-git-server-impl`: Silences compiler error when git server implementations are disabled.
120
+ - `test-skip-wait-for-rate-limit`: Dev-only feature to bypass rate-limit wait timeouts in unit tests.
121
+ - **TLS backend**: The library intentionally does not specify a TLS backend for `reqwest` so consumers can select their preferred backend. For dev/testing workflows, `reqwest` dev-dependencies enable `features = ["default-tls"]`.
122
+
123
+ ## Repository Structure
124
+
125
+ - `src/`: Core library implementation.
126
+ - `client/`: Git server client implementations (`github/`, `gitlab/`, `gitea/`, and common traits).
127
+ - `types.rs`, `lib.rs`: Public APIs, data models, and error types.
128
+ - `tests/`: Integration tests using `cargo-nextest`, `mockito`, and `tempfile`.
129
+ - `examples/`: Example executables demonstrating library usage.
130
+ - `bindings/python/`: Python bindings using PyO3 and Maturin (`git-bot-feedback-py`).
131
+ - `docs/`: Sphinx documentation sources for Python and web guides.
132
+ - `.config/`: Configuration files for `nextest.toml`, `committed.toml`, and `cliff.toml`.
133
+ - `nurfile`: Nushell-based task runner definitions.
134
+ - `.pre-commit-config.yaml`: Pre-commit hook definitions.
135
+ - `cspell.config.yml`: Spelling dictionary configuration.
@@ -6,6 +6,34 @@ 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.11.0] - 2026-10-27
10
+
11
+ ### <!-- 1 --> 🚀 Added
12
+
13
+ - Support Forgejo Actions by @shenxianpeng in [#154](https://github.com/2bndy5/git-bot-feedback/pull/154)
14
+
15
+ ### <!-- 4 --> 🛠️ Fixed
16
+
17
+ - Add impl for `GitlabApiClient::workspace_root()` by @2bndy5 in [#153](https://github.com/2bndy5/git-bot-feedback/pull/153)
18
+
19
+ [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
+
21
+ Full commit diff: [`git-bot-feedback/v0.10.0...git-bot-feedback/v0.11.0`][git-bot-feedback/v0.11.0]
22
+
23
+ ## [git-bot-feedback/v0.10.0] - 2026-10-27
24
+
25
+ ### <!-- 1 --> 🚀 Added
26
+
27
+ - Add GitLab support by @shenxianpeng in [#146](https://github.com/2bndy5/git-bot-feedback/pull/146)
28
+
29
+ ### <!-- 6 --> 📦 Dependency updates
30
+
31
+ - Bump version to git-bot-feedback/v0.10.0 by @2bndy5 in [`cb5351a`](https://github.com/2bndy5/git-bot-feedback/commit/cb5351aa30c18e2d3c94235d0c932a7e93b8f254)
32
+
33
+ [git-bot-feedback/v0.10.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.9.0...git-bot-feedback/v0.10.0
34
+
35
+ Full commit diff: [`git-bot-feedback/v0.9.0...git-bot-feedback/v0.10.0`][git-bot-feedback/v0.10.0]
36
+
9
37
  ## [git-bot-feedback/v0.9.0] - 2026-10-22
10
38
 
11
39
  ### <!-- 1 --> 🚀 Added
@@ -16,6 +44,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
44
 
17
45
  - Match a plain path pattern without checking the file system by @shenxianpeng in [#147](https://github.com/2bndy5/git-bot-feedback/pull/147)
18
46
 
47
+ ### <!-- 6 --> 📦 Dependency updates
48
+
49
+ - Bump version to git-bot-feedback/v0.9.0 by @2bndy5 in [`57686f2`](https://github.com/2bndy5/git-bot-feedback/commit/57686f22f7f8ee3e5f8a1df53974af78d82c5d08)
50
+
19
51
  [git-bot-feedback/v0.9.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.8.8...git-bot-feedback/v0.9.0
20
52
 
21
53
  Full commit diff: [`git-bot-feedback/v0.8.8...git-bot-feedback/v0.9.0`][git-bot-feedback/v0.9.0]
@@ -178,7 +178,7 @@ version = "3.1.1"
178
178
  source = "registry+https://github.com/rust-lang/crates.io-index"
179
179
  checksum = "faf9468729b8cbcea668e36183cb69d317348c2e08e994829fb56ebfdfbaac34"
180
180
  dependencies = [
181
- "windows-sys 0.52.0",
181
+ "windows-sys 0.61.2",
182
182
  ]
183
183
 
184
184
  [[package]]
@@ -276,7 +276,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
276
276
  checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
277
277
  dependencies = [
278
278
  "libc",
279
- "windows-sys 0.52.0",
279
+ "windows-sys 0.61.2",
280
280
  ]
281
281
 
282
282
  [[package]]
@@ -413,7 +413,7 @@ dependencies = [
413
413
 
414
414
  [[package]]
415
415
  name = "git-bot-feedback"
416
- version = "0.9.0"
416
+ version = "0.11.0"
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.3.0"
436
+ version = "0.5.0"
437
437
  dependencies = [
438
438
  "git-bot-feedback",
439
439
  "pyo3",
@@ -1126,7 +1126,7 @@ dependencies = [
1126
1126
  "once_cell",
1127
1127
  "socket2",
1128
1128
  "tracing",
1129
- "windows-sys 0.52.0",
1129
+ "windows-sys 0.61.2",
1130
1130
  ]
1131
1131
 
1132
1132
  [[package]]
@@ -1320,14 +1320,14 @@ dependencies = [
1320
1320
  "errno",
1321
1321
  "libc",
1322
1322
  "linux-raw-sys",
1323
- "windows-sys 0.52.0",
1323
+ "windows-sys 0.61.2",
1324
1324
  ]
1325
1325
 
1326
1326
  [[package]]
1327
1327
  name = "rustls"
1328
- version = "0.23.45"
1328
+ version = "0.23.46"
1329
1329
  source = "registry+https://github.com/rust-lang/crates.io-index"
1330
- checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634"
1330
+ checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf"
1331
1331
  dependencies = [
1332
1332
  "aws-lc-rs",
1333
1333
  "once_cell",
@@ -1377,7 +1377,7 @@ dependencies = [
1377
1377
  "security-framework",
1378
1378
  "security-framework-sys",
1379
1379
  "webpki-root-certs",
1380
- "windows-sys 0.52.0",
1380
+ "windows-sys 0.61.2",
1381
1381
  ]
1382
1382
 
1383
1383
  [[package]]
@@ -1495,9 +1495,9 @@ dependencies = [
1495
1495
 
1496
1496
  [[package]]
1497
1497
  name = "serde_json"
1498
- version = "1.0.151"
1498
+ version = "1.0.154"
1499
1499
  source = "registry+https://github.com/rust-lang/crates.io-index"
1500
- checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
1500
+ checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
1501
1501
  dependencies = [
1502
1502
  "itoa",
1503
1503
  "memchr",
@@ -1656,10 +1656,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
1656
1656
  checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
1657
1657
  dependencies = [
1658
1658
  "fastrand",
1659
- "getrandom 0.4.3",
1659
+ "getrandom 0.3.4",
1660
1660
  "once_cell",
1661
1661
  "rustix",
1662
- "windows-sys 0.52.0",
1662
+ "windows-sys 0.61.2",
1663
1663
  ]
1664
1664
 
1665
1665
  [[package]]
@@ -1974,7 +1974,7 @@ version = "0.1.11"
1974
1974
  source = "registry+https://github.com/rust-lang/crates.io-index"
1975
1975
  checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
1976
1976
  dependencies = [
1977
- "windows-sys 0.52.0",
1977
+ "windows-sys 0.61.2",
1978
1978
  ]
1979
1979
 
1980
1980
  [[package]]
@@ -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.9.0"
24
+ version = "0.11.0"
25
25
  edition.workspace = true
26
26
  license.workspace = true
27
27
  repository.workspace = true
@@ -61,8 +61,11 @@ github = []
61
61
  # Gitea implementation/support
62
62
  gitea = []
63
63
 
64
+ # GitLab implementation/support
65
+ gitlab = ["dep:regex"]
66
+
64
67
  # features enabled by default
65
- default = ["github", "gitea"]
68
+ default = ["github", "gitea", "gitlab"]
66
69
 
67
70
  # optional feature to silence a compiler error if/when
68
71
  # no features enable any git server implementations
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-bot-feedback
3
- Version: 0.3.0
3
+ Version: 0.5.0
4
4
  Classifier: Development Status :: 5 - Production/Stable
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: Intended Audience :: System Administrators
@@ -56,6 +56,15 @@ The following is just a list of git servers that are planned (in order or priori
56
56
 
57
57
  - GitHub
58
58
  - GitLab
59
+
60
+ GitLab support requires GitLab v17.9 or newer and
61
+ a ``GITLAB_TOKEN`` environment variable (an access token).
62
+ See `GitLab token permissions`_ for the permissions each feature needs.
63
+ GitLab does not support
64
+
65
+ - posting thread comments for commits (push events)
66
+ - output variables and step summaries (output variables are only logged)
67
+ - hiding outdated PR review summary comments
59
68
  - Gitea
60
69
 
61
70
  Gitea does not support
@@ -63,9 +72,25 @@ The following is just a list of git servers that are planned (in order or priori
63
72
  - posting thread comments for commits (push events)
64
73
  - programmatically deleting a PR reviews' individual comments, rather we can
65
74
  only resolve them (currently). However, deleting an entire PR review is supported.
75
+
76
+ Only a repository admin can dismiss a PR review.
77
+ If the token's user is not an admin, outdated reviews can only be deleted
78
+ (see ``ReviewOptions.delete_review_comments``).
79
+ - Forgejo
80
+
81
+ Forgejo uses the Gitea implementation, so the same limitations apply.
82
+ Forgejo support requires `Forgejo Runner`_ v7.0.0 or newer,
83
+ which sets the ``FORGEJO_ACTIONS`` environment variable.
84
+ The token is read from the ``GITEA_TOKEN`` environment variable, or
85
+ the ``FORGEJO_TOKEN`` environment variable that the runner sets automatically.
86
+ Forgejo also does not support resolving a PR review's individual comments.
66
87
  - BitBucket
67
88
 
68
- Currently, only Github and Gitea are supported.
89
+ Currently, only GitHub, GitLab, Gitea, and Forgejo are supported.
90
+
91
+ .. _Forgejo Runner: https://forgejo.org/docs/latest/admin/actions/
92
+
93
+ .. _GitLab token permissions: https://github.com/2bndy5/git-bot-feedback/blob/main/docs/permissions/gitlab.md
69
94
 
70
95
  LGPL license
71
96
  ------------
@@ -36,7 +36,16 @@ This project is designed to easily add support for various git servers.
36
36
  The following is just a list of git servers that are planned (in order or priority).
37
37
 
38
38
  - [x] GitHub
39
- - [ ] GitLab
39
+ - [x] GitLab
40
+
41
+ GitLab support requires GitLab v17.9 or newer and
42
+ a `GITLAB_TOKEN` environment variable (an access token).
43
+ See [GitLab token permissions][gitlab-permissions] for the permissions each feature needs.
44
+ GitLab does not support
45
+
46
+ - posting thread comments for commits (push events)
47
+ - output variables and step summaries (output variables are only logged)
48
+ - hiding outdated PR review summary comments
40
49
  - [x] Gitea
41
50
 
42
51
  Gitea does not support
@@ -45,6 +54,18 @@ The following is just a list of git servers that are planned (in order or priori
45
54
  - programmatically deleting a PR reviews' individual comments,
46
55
  rather we can only resolve them (currently).
47
56
  However, deleting an entire PR review is supported.
57
+
58
+ Only a repository admin can dismiss a PR review.
59
+ If the token's user is not an admin, outdated reviews can only be deleted
60
+ (see `ReviewOptions::delete_review_comments`).
61
+ - [x] Forgejo
62
+
63
+ Forgejo uses the Gitea implementation, so the same limitations apply.
64
+ Forgejo support requires [Forgejo Runner][forgejo-runner] v7.0.0 or newer,
65
+ which sets the `FORGEJO_ACTIONS` environment variable.
66
+ The token is read from the `GITEA_TOKEN` environment variable, or
67
+ the `FORGEJO_TOKEN` environment variable that the runner sets automatically.
68
+ Forgejo also does not support resolving a PR review's individual comments.
48
69
  - [ ] BitBucket
49
70
 
50
71
  ### Optional support
@@ -54,6 +75,7 @@ Each supported implementation of the above git servers can be controlled via
54
75
 
55
76
  - `github` enables support of GitHub implementation
56
77
  - `gitea` enables support of Gitea implementation
78
+ - `gitlab` enables support of GitLab implementation
57
79
 
58
80
  ## LGPL license
59
81
 
@@ -80,6 +102,8 @@ because the following conditions must be met:
80
102
  [docs-rs-link]: https://docs.rs/git-bot-feedback
81
103
  [dep-features]: https://doc.rust-lang.org/cargo/reference/features.html#dependency-features
82
104
  [reqwest-docs]: https://docs.rs/reqwest/latest/reqwest/#optional-features
105
+ [forgejo-runner]: https://forgejo.org/docs/latest/admin/actions/
106
+ [gitlab-permissions]: https://github.com/2bndy5/git-bot-feedback/blob/main/docs/permissions/gitlab.md
83
107
  [LGPL-3.0-or-later]: https://github.com/2bndy5/git-bot-feedback/blob/main/LICENSE
84
108
  [license-badge]: https://img.shields.io/github/license/2bndy5/git-bot-feedback
85
109
  [license-link]: https://github.com/2bndy5/git-bot-feedback/blob/main/LICENSE
@@ -31,6 +31,15 @@ The following is just a list of git servers that are planned (in order or priori
31
31
 
32
32
  - GitHub
33
33
  - GitLab
34
+
35
+ GitLab support requires GitLab v17.9 or newer and
36
+ a ``GITLAB_TOKEN`` environment variable (an access token).
37
+ See `GitLab token permissions`_ for the permissions each feature needs.
38
+ GitLab does not support
39
+
40
+ - posting thread comments for commits (push events)
41
+ - output variables and step summaries (output variables are only logged)
42
+ - hiding outdated PR review summary comments
34
43
  - Gitea
35
44
 
36
45
  Gitea does not support
@@ -38,9 +47,25 @@ The following is just a list of git servers that are planned (in order or priori
38
47
  - posting thread comments for commits (push events)
39
48
  - programmatically deleting a PR reviews' individual comments, rather we can
40
49
  only resolve them (currently). However, deleting an entire PR review is supported.
50
+
51
+ Only a repository admin can dismiss a PR review.
52
+ If the token's user is not an admin, outdated reviews can only be deleted
53
+ (see ``ReviewOptions.delete_review_comments``).
54
+ - Forgejo
55
+
56
+ Forgejo uses the Gitea implementation, so the same limitations apply.
57
+ Forgejo support requires `Forgejo Runner`_ v7.0.0 or newer,
58
+ which sets the ``FORGEJO_ACTIONS`` environment variable.
59
+ The token is read from the ``GITEA_TOKEN`` environment variable, or
60
+ the ``FORGEJO_TOKEN`` environment variable that the runner sets automatically.
61
+ Forgejo also does not support resolving a PR review's individual comments.
41
62
  - BitBucket
42
63
 
43
- Currently, only Github and Gitea are supported.
64
+ Currently, only GitHub, GitLab, Gitea, and Forgejo are supported.
65
+
66
+ .. _Forgejo Runner: https://forgejo.org/docs/latest/admin/actions/
67
+
68
+ .. _GitLab token permissions: https://github.com/2bndy5/git-bot-feedback/blob/main/docs/permissions/gitlab.md
44
69
 
45
70
  LGPL license
46
71
  ------------
@@ -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-py/v0.5.0] - 2026-10-27
10
+
11
+ ### <!-- 1 --> 🚀 Added
12
+
13
+ - Support Forgejo Actions by @shenxianpeng in [#154](https://github.com/2bndy5/git-bot-feedback/pull/154)
14
+
15
+ ### <!-- 4 --> 🛠️ Fixed
16
+
17
+ - Add impl for `GitlabApiClient::workspace_root()` by @2bndy5 in [#153](https://github.com/2bndy5/git-bot-feedback/pull/153)
18
+
19
+ ### <!-- 6 --> 📦 Dependency updates
20
+
21
+ - Bump version to git-bot-feedback/v0.11.0 by @2bndy5 in [`b6d5b08`](https://github.com/2bndy5/git-bot-feedback/commit/b6d5b085a1a43268818b1c4ded00e62fc649b15a)
22
+
23
+ [git-bot-feedback-py/v0.5.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback-py/v0.4.0...git-bot-feedback-py/v0.5.0
24
+
25
+ Full commit diff: [`git-bot-feedback-py/v0.4.0...git-bot-feedback-py/v0.5.0`][git-bot-feedback-py/v0.5.0]
26
+
27
+ ## [git-bot-feedback-py/v0.4.0] - 2026-10-27
28
+
29
+ ### <!-- 1 --> 🚀 Added
30
+
31
+ - Add GitLab support by @shenxianpeng in [#146](https://github.com/2bndy5/git-bot-feedback/pull/146)
32
+
33
+ ### <!-- 6 --> 📦 Dependency updates
34
+
35
+ - Bump version to git-bot-feedback/v0.10.0 by @2bndy5 in [`cb5351a`](https://github.com/2bndy5/git-bot-feedback/commit/cb5351aa30c18e2d3c94235d0c932a7e93b8f254)
36
+ - Bump version to git-bot-feedback-py/v0.4.0 by @2bndy5 in [`93206e7`](https://github.com/2bndy5/git-bot-feedback/commit/93206e7265cadfa30d2833ba8da11d8e7dfd7c09)
37
+
38
+ [git-bot-feedback-py/v0.4.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback-py/v0.3.0...git-bot-feedback-py/v0.4.0
39
+
40
+ Full commit diff: [`git-bot-feedback-py/v0.3.0...git-bot-feedback-py/v0.4.0`][git-bot-feedback-py/v0.4.0]
41
+
9
42
  ## [git-bot-feedback-py/v0.3.0] - 2026-10-22
10
43
 
11
44
  ### <!-- 1 --> 🚀 Added
@@ -19,6 +52,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
52
  ### <!-- 6 --> 📦 Dependency updates
20
53
 
21
54
  - Bump version to git-bot-feedback/v0.9.0 by @2bndy5 in [`57686f2`](https://github.com/2bndy5/git-bot-feedback/commit/57686f22f7f8ee3e5f8a1df53974af78d82c5d08)
55
+ - Bump version to git-bot-feedback-py/v0.3.0 by @2bndy5 in [`8086fac`](https://github.com/2bndy5/git-bot-feedback/commit/8086fac1dd0cd31d2c1b1c30388d2c211b823d8e)
22
56
 
23
57
  [git-bot-feedback-py/v0.3.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback-py/v0.2.9...git-bot-feedback-py/v0.3.0
24
58
 
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "git-bot-feedback-py"
3
- version = "0.3.0"
3
+ version = "0.5.0"
4
4
  edition.workspace = true
5
5
  license.workspace = true
6
6
  repository.workspace = true
@@ -14,7 +14,7 @@ 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.9.0", features = ["file-changes", "pyo3"] }
17
+ git-bot-feedback = { path = "../..", version = "0.11.0", features = ["file-changes", "pyo3"] }
18
18
  pyo3 = { workspace = true }
19
19
  pyo3-async-runtimes = { version = "0.29.0", features = ["tokio-runtime"] }
20
20
  pyo3-log = "0.13.4"
@@ -31,6 +31,15 @@ The following is just a list of git servers that are planned (in order or priori
31
31
 
32
32
  - GitHub
33
33
  - GitLab
34
+
35
+ GitLab support requires GitLab v17.9 or newer and
36
+ a ``GITLAB_TOKEN`` environment variable (an access token).
37
+ See `GitLab token permissions`_ for the permissions each feature needs.
38
+ GitLab does not support
39
+
40
+ - posting thread comments for commits (push events)
41
+ - output variables and step summaries (output variables are only logged)
42
+ - hiding outdated PR review summary comments
34
43
  - Gitea
35
44
 
36
45
  Gitea does not support
@@ -38,9 +47,25 @@ The following is just a list of git servers that are planned (in order or priori
38
47
  - posting thread comments for commits (push events)
39
48
  - programmatically deleting a PR reviews' individual comments, rather we can
40
49
  only resolve them (currently). However, deleting an entire PR review is supported.
50
+
51
+ Only a repository admin can dismiss a PR review.
52
+ If the token's user is not an admin, outdated reviews can only be deleted
53
+ (see ``ReviewOptions.delete_review_comments``).
54
+ - Forgejo
55
+
56
+ Forgejo uses the Gitea implementation, so the same limitations apply.
57
+ Forgejo support requires `Forgejo Runner`_ v7.0.0 or newer,
58
+ which sets the ``FORGEJO_ACTIONS`` environment variable.
59
+ The token is read from the ``GITEA_TOKEN`` environment variable, or
60
+ the ``FORGEJO_TOKEN`` environment variable that the runner sets automatically.
61
+ Forgejo also does not support resolving a PR review's individual comments.
41
62
  - BitBucket
42
63
 
43
- Currently, only Github and Gitea are supported.
64
+ Currently, only GitHub, GitLab, Gitea, and Forgejo are supported.
65
+
66
+ .. _Forgejo Runner: https://forgejo.org/docs/latest/admin/actions/
67
+
68
+ .. _GitLab token permissions: https://github.com/2bndy5/git-bot-feedback/blob/main/docs/permissions/gitlab.md
44
69
 
45
70
  LGPL license
46
71
  ------------
@@ -15,6 +15,7 @@ words:
15
15
  - endfor
16
16
  - endgroup
17
17
  - endmacro
18
+ - Forgejo
18
19
  - furo
19
20
  - Gitea
20
21
  - gitmodules
@@ -24,9 +25,11 @@ words:
24
25
  - musllinux
25
26
  - mypy
26
27
  - nextest
28
+ - noteable
27
29
  - nurfile
28
30
  - nushell
29
31
  - orhun
32
+ - peekable
30
33
  - pipx
31
34
  - pkgs
32
35
  - pybind
@@ -51,6 +54,7 @@ words:
51
54
  - timeit
52
55
  - toctree
53
56
  - topo
57
+ - unapprove
54
58
  - zizmor
55
59
  ignorePaths:
56
60
  - .gitignore