git-bot-feedback 0.2.8__tar.gz → 0.2.9__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 (56) hide show
  1. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/CHANGELOG.md +5 -3
  2. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/Cargo.lock +2 -2
  3. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/Cargo.toml +1 -1
  4. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/PKG-INFO +1 -1
  5. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/bindings/python/CHANGELOG.md +19 -0
  6. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/bindings/python/Cargo.toml +2 -2
  7. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/client/github/graphql.rs +3 -3
  8. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/client/github/mod.rs +3 -0
  9. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/client/github/specific_api.rs +11 -0
  10. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/.gitattributes +0 -0
  11. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/.gitignore +0 -0
  12. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/.pre-commit-config.yaml +0 -0
  13. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/CONTRIBUTING.md +0 -0
  14. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/LICENSE +0 -0
  15. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/README.md +0 -0
  16. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/README.rst +0 -0
  17. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/bindings/python/README.rst +0 -0
  18. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/bindings/python/git_bot_feedback.pyi +0 -0
  19. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/bindings/python/src/lib.rs +0 -0
  20. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/bindings/python/src/wrapper.rs +0 -0
  21. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/build.rs +0 -0
  22. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/codecov.yml +0 -0
  23. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/cspell.config.yml +0 -0
  24. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/docs/API/client.rst +0 -0
  25. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/docs/API/file-annotations.rst +0 -0
  26. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/docs/API/file-changes.rst +0 -0
  27. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/docs/API/index.rst +0 -0
  28. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/docs/API/output-variables.rst +0 -0
  29. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/docs/API/pr-reviews.rst +0 -0
  30. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/docs/API/thread-comments.rst +0 -0
  31. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/docs/_static/favicon.ico +0 -0
  32. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/docs/_static/logo.png +0 -0
  33. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/docs/conf.py +0 -0
  34. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/docs/index.rst +0 -0
  35. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/docs/logo.xcf +0 -0
  36. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/git_bot_feedback.pyi +0 -0
  37. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/nurfile +0 -0
  38. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/pyproject.toml +0 -0
  39. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/client/common.rs +0 -0
  40. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/client/gitea/mod.rs +0 -0
  41. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/client/gitea/serde_structs.rs +0 -0
  42. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/client/gitea/specific_api.rs +0 -0
  43. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/client/github/serde_structs.rs +0 -0
  44. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/client/local.rs +0 -0
  45. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/client/mod.rs +0 -0
  46. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/comments/mod.rs +0 -0
  47. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/comments/review_comments.rs +0 -0
  48. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/comments/thread_comments.rs +0 -0
  49. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/error.rs +0 -0
  50. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/file_annotations.rs +0 -0
  51. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/file_utils/file_filter.rs +0 -0
  52. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/file_utils/mod.rs +0 -0
  53. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/git_diff.rs +0 -0
  54. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/lib.rs +0 -0
  55. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/src/output_variable.rs +0 -0
  56. {git_bot_feedback-0.2.8 → git_bot_feedback-0.2.9}/uv.lock +0 -0
@@ -6,7 +6,7 @@ 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.8.7] - 2026-10-20
9
+ ## [git-bot-feedback/v0.8.8] - 2026-10-20
10
10
 
11
11
  ### <!-- 1 --> 🚀 Added
12
12
 
@@ -52,6 +52,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
52
52
  - Ensure `GITHUB_API_URL` ends with a `/` by @2bndy5 in [#140](https://github.com/2bndy5/git-bot-feedback/pull/140)
53
53
  - Conditionally prepend marker to PR review summary by @2bndy5 in [#139](https://github.com/2bndy5/git-bot-feedback/pull/139)
54
54
  - Conditionally prepend marker to Gitea PR review summary by @2bndy5 in [#141](https://github.com/2bndy5/git-bot-feedback/pull/141)
55
+ - Use GITHUB_GRAPHQL_URL for GraphQL requests by @shenxianpeng in [#143](https://github.com/2bndy5/git-bot-feedback/pull/143)
55
56
 
56
57
  ### <!-- 8 --> 📝 Documentation
57
58
 
@@ -61,12 +62,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
61
62
 
62
63
  - Revise `FileAnnotations` impl by @2bndy5 in [#64](https://github.com/2bndy5/git-bot-feedback/pull/64)
63
64
 
64
- [git-bot-feedback/v0.8.7]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.8.6...git-bot-feedback/v0.8.7
65
+ [git-bot-feedback/v0.8.8]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.8.7...git-bot-feedback/v0.8.8
65
66
 
66
- Full commit diff: [`git-bot-feedback/v0.8.6...git-bot-feedback/v0.8.7`][git-bot-feedback/v0.8.7]
67
+ Full commit diff: [`git-bot-feedback/v0.8.7...git-bot-feedback/v0.8.8`][git-bot-feedback/v0.8.8]
67
68
 
68
69
  ## New Contributors
69
70
 
71
+ - @shenxianpeng made their first contribution in [#143](https://github.com/2bndy5/git-bot-feedback/pull/143)
70
72
  - @Copilot made their first contribution in [#125](https://github.com/2bndy5/git-bot-feedback/pull/125)
71
73
 
72
74
 
@@ -413,7 +413,7 @@ dependencies = [
413
413
 
414
414
  [[package]]
415
415
  name = "git-bot-feedback"
416
- version = "0.8.7"
416
+ version = "0.8.8"
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.2.8"
436
+ version = "0.2.9"
437
437
  dependencies = [
438
438
  "git-bot-feedback",
439
439
  "pyo3",
@@ -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.8.7"
24
+ version = "0.8.8"
25
25
  edition.workspace = true
26
26
  license.workspace = true
27
27
  repository.workspace = true
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-bot-feedback
3
- Version: 0.2.8
3
+ Version: 0.2.9
4
4
  Classifier: Development Status :: 5 - Production/Stable
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: Intended Audience :: System Administrators
@@ -6,6 +6,24 @@ 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.2.9] - 2026-10-20
10
+
11
+ ### <!-- 4 --> 🛠️ Fixed
12
+
13
+ - Use GITHUB_GRAPHQL_URL for GraphQL requests by @shenxianpeng in [#143](https://github.com/2bndy5/git-bot-feedback/pull/143)
14
+
15
+ ### <!-- 6 --> 📦 Dependency updates
16
+
17
+ - Bump version to git-bot-feedback/v0.8.8 by @2bndy5 in [`8c71b01`](https://github.com/2bndy5/git-bot-feedback/commit/8c71b0188cb9106dcd2fdba4d7cadaf99e34463a)
18
+
19
+ [git-bot-feedback-py/v0.2.9]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback-py/v0.2.8...git-bot-feedback-py/v0.2.9
20
+
21
+ Full commit diff: [`git-bot-feedback-py/v0.2.8...git-bot-feedback-py/v0.2.9`][git-bot-feedback-py/v0.2.9]
22
+
23
+ ## New Contributors
24
+
25
+ - @shenxianpeng made their first contribution in [#143](https://github.com/2bndy5/git-bot-feedback/pull/143)
26
+
9
27
  ## [git-bot-feedback-py/v0.2.8] - 2026-10-20
10
28
 
11
29
  ### <!-- 4 --> 🛠️ Fixed
@@ -15,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
33
  ### <!-- 6 --> 📦 Dependency updates
16
34
 
17
35
  - Bump version to git-bot-feedback/v0.8.7 by @2bndy5 in [`6db742e`](https://github.com/2bndy5/git-bot-feedback/commit/6db742e3cd81c9faa2c8eb1efe63da6831557c50)
36
+ - Bump version to git-bot-feedback-py/v0.2.8 by @2bndy5 in [`9606bf3`](https://github.com/2bndy5/git-bot-feedback/commit/9606bf368bc4e6b7313f3503278c1d3a0f886ef6)
18
37
 
19
38
  [git-bot-feedback-py/v0.2.8]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback-py/v0.2.7...git-bot-feedback-py/v0.2.8
20
39
 
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "git-bot-feedback-py"
3
- version = "0.2.8"
3
+ version = "0.2.9"
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.8.7", features = ["file-changes", "pyo3"] }
17
+ git-bot-feedback = { path = "../..", version = "0.8.8", 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"
@@ -218,7 +218,7 @@ impl GithubApiClient {
218
218
  let mut after_thread = None;
219
219
  let mut after_comment = None;
220
220
  let mut has_next_page = true;
221
- let graphql_url = self.api_url.join("/graphql")?;
221
+ let graphql_url = self.graphql_url.clone();
222
222
  while has_next_page {
223
223
  let variables = json!({
224
224
  "owner": repo_owner.to_string(),
@@ -400,7 +400,7 @@ impl GithubApiClient {
400
400
  };
401
401
  let request = self.make_api_request(
402
402
  &self.client,
403
- self.api_url.join("/graphql")?,
403
+ self.graphql_url.clone(),
404
404
  Method::POST,
405
405
  Some(json!({"query": mutation, "variables": { "id": id.value() }}).to_string()),
406
406
  None,
@@ -429,7 +429,7 @@ impl GithubApiClient {
429
429
  marker: &str,
430
430
  ) -> Result<(), ClientError> {
431
431
  let mut next_page = Some(Url::parse_with_params(url.as_str(), [("page", "1")])?);
432
- let graphql_url = self.api_url.join("/graphql")?;
432
+ let graphql_url = self.graphql_url.clone();
433
433
  while let Some(endpoint) = next_page.take() {
434
434
  let request = self.make_api_request(&self.client, endpoint, Method::GET, None, None)?;
435
435
  let response = self
@@ -43,6 +43,9 @@ pub struct GithubApiClient {
43
43
  /// The value of the `GITHUB_API_URL` environment variable.
44
44
  api_url: Url,
45
45
 
46
+ /// The value of the `GITHUB_GRAPHQL_URL` environment variable.
47
+ graphql_url: Url,
48
+
46
49
  /// The value of the `GITHUB_REPOSITORY` environment variable.
47
50
  repo: String,
48
51
 
@@ -41,6 +41,11 @@ impl GithubApiClient {
41
41
  // GITHUB_*** env vars cannot be overwritten in CI runners on GitHub.
42
42
  let gh_api_url = env::var("GITHUB_API_URL").unwrap_or("https://api.github.com".to_string());
43
43
  let api_url = Url::parse(format!("{}/", gh_api_url.trim_end_matches('/')).as_str())?;
44
+ let graphql_url = Url::parse(
45
+ env::var("GITHUB_GRAPHQL_URL")
46
+ .unwrap_or("https://api.github.com/graphql".to_string())
47
+ .as_str(),
48
+ )?;
44
49
 
45
50
  Ok(Self {
46
51
  client: Client::builder()
@@ -50,6 +55,7 @@ impl GithubApiClient {
50
55
  pull_request,
51
56
  event_name,
52
57
  api_url,
58
+ graphql_url,
53
59
  repo: env::var("GITHUB_REPOSITORY")
54
60
  .map_err(|e| ClientError::env_var("GITHUB_REPOSITORY", e))?,
55
61
  sha: env::var("GITHUB_SHA").map_err(|e| ClientError::env_var("GITHUB_SHA", e))?,
@@ -428,8 +434,13 @@ mod tests {
428
434
  env::set_var("GITHUB_EVENT_NAME", "push");
429
435
  // suffix the URL with `//`; expect `client.api_url` to end with a single `/`
430
436
  env::set_var("GITHUB_API_URL", format!("{gh_api_url}//"));
437
+ env::set_var("GITHUB_GRAPHQL_URL", "https://ghe.example.com/api/graphql");
431
438
  }
432
439
  let client = GithubApiClient::new().unwrap();
440
+ assert_eq!(
441
+ client.graphql_url.as_str(),
442
+ "https://ghe.example.com/api/graphql"
443
+ );
433
444
  assert!(client.api_url.as_str().ends_with("/v3/"));
434
445
  let endpoint = client.api_url.join("repos/").unwrap();
435
446
  assert_eq!(endpoint.as_str(), "https://api.github.com/v3/repos/");