git-bot-feedback 0.2.8__tar.gz → 0.3.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.3.0/CHANGELOG.md +437 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/Cargo.lock +2 -2
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/Cargo.toml +1 -1
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/PKG-INFO +1 -1
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/bindings/python/CHANGELOG.md +64 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/bindings/python/Cargo.toml +2 -2
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/bindings/python/git_bot_feedback.pyi +3 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/bindings/python/src/lib.rs +16 -1
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/bindings/python/src/wrapper.rs +12 -1
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/docs/API/client.rst +2 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/git_bot_feedback.pyi +3 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/client/gitea/mod.rs +10 -1
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/client/github/graphql.rs +3 -3
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/client/github/mod.rs +10 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/client/github/specific_api.rs +11 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/client/mod.rs +102 -1
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/file_utils/file_filter.rs +36 -6
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/uv.lock +4 -4
- git_bot_feedback-0.2.8/CHANGELOG.md +0 -73
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/.gitattributes +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/.gitignore +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/.pre-commit-config.yaml +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/CONTRIBUTING.md +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/LICENSE +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/README.md +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/README.rst +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/bindings/python/README.rst +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/build.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/codecov.yml +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/cspell.config.yml +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/docs/API/file-annotations.rst +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/docs/API/file-changes.rst +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/docs/API/index.rst +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/docs/API/output-variables.rst +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/docs/API/pr-reviews.rst +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/docs/API/thread-comments.rst +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/docs/_static/favicon.ico +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/docs/_static/logo.png +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/docs/conf.py +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/docs/index.rst +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/docs/logo.xcf +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/nurfile +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/pyproject.toml +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/client/common.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/client/gitea/serde_structs.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/client/gitea/specific_api.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/client/github/serde_structs.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/client/local.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/comments/mod.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/comments/review_comments.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/comments/thread_comments.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/error.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/file_annotations.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/file_utils/mod.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/git_diff.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/lib.rs +0 -0
- {git_bot_feedback-0.2.8 → git_bot_feedback-0.3.0}/src/output_variable.rs +0 -0
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
<!-- markdownlint-disable MD024 -->
|
|
8
|
+
|
|
9
|
+
## [git-bot-feedback/v0.9.0] - 2026-10-22
|
|
10
|
+
|
|
11
|
+
### <!-- 1 --> 🚀 Added
|
|
12
|
+
|
|
13
|
+
- Add `workspace_root()` and `nearest_git_root()` helpers by @shenxianpeng in [#148](https://github.com/2bndy5/git-bot-feedback/pull/148)
|
|
14
|
+
|
|
15
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
16
|
+
|
|
17
|
+
- Match a plain path pattern without checking the file system by @shenxianpeng in [#147](https://github.com/2bndy5/git-bot-feedback/pull/147)
|
|
18
|
+
|
|
19
|
+
[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
|
+
|
|
21
|
+
Full commit diff: [`git-bot-feedback/v0.8.8...git-bot-feedback/v0.9.0`][git-bot-feedback/v0.9.0]
|
|
22
|
+
|
|
23
|
+
## [git-bot-feedback/v0.8.8] - 2026-10-20
|
|
24
|
+
|
|
25
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
26
|
+
|
|
27
|
+
- Use GITHUB_GRAPHQL_URL for GraphQL requests by @shenxianpeng in [#143](https://github.com/2bndy5/git-bot-feedback/pull/143)
|
|
28
|
+
|
|
29
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
30
|
+
|
|
31
|
+
- Bump version to git-bot-feedback/v0.8.8 by @2bndy5 in [`8c71b01`](https://github.com/2bndy5/git-bot-feedback/commit/8c71b0188cb9106dcd2fdba4d7cadaf99e34463a)
|
|
32
|
+
|
|
33
|
+
[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
|
|
34
|
+
|
|
35
|
+
Full commit diff: [`git-bot-feedback/v0.8.7...git-bot-feedback/v0.8.8`][git-bot-feedback/v0.8.8]
|
|
36
|
+
|
|
37
|
+
## New Contributors
|
|
38
|
+
|
|
39
|
+
- @shenxianpeng made their first contribution in [#143](https://github.com/2bndy5/git-bot-feedback/pull/143)
|
|
40
|
+
|
|
41
|
+
## [git-bot-feedback/v0.8.7] - 2026-10-20
|
|
42
|
+
|
|
43
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
44
|
+
|
|
45
|
+
- Conditionally prepend marker to Gitea PR review summary by @2bndy5 in [#141](https://github.com/2bndy5/git-bot-feedback/pull/141)
|
|
46
|
+
|
|
47
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
48
|
+
|
|
49
|
+
- Bump version to git-bot-feedback/v0.8.7 by @2bndy5 in [`6db742e`](https://github.com/2bndy5/git-bot-feedback/commit/6db742e3cd81c9faa2c8eb1efe63da6831557c50)
|
|
50
|
+
|
|
51
|
+
[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
|
|
52
|
+
|
|
53
|
+
Full commit diff: [`git-bot-feedback/v0.8.6...git-bot-feedback/v0.8.7`][git-bot-feedback/v0.8.7]
|
|
54
|
+
|
|
55
|
+
## [git-bot-feedback/v0.8.6] - 2026-10-20
|
|
56
|
+
|
|
57
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
58
|
+
|
|
59
|
+
- Ensure `GITHUB_API_URL` ends with a `/` by @2bndy5 in [#140](https://github.com/2bndy5/git-bot-feedback/pull/140)
|
|
60
|
+
- Conditionally prepend marker to PR review summary by @2bndy5 in [#139](https://github.com/2bndy5/git-bot-feedback/pull/139)
|
|
61
|
+
|
|
62
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
63
|
+
|
|
64
|
+
- Bump version to git-bot-feedback/v0.8.6 by @2bndy5 in [`9e1f04d`](https://github.com/2bndy5/git-bot-feedback/commit/9e1f04dccc46ed7a939741a697f593ddc543e51e)
|
|
65
|
+
|
|
66
|
+
[git-bot-feedback/v0.8.6]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.8.5...git-bot-feedback/v0.8.6
|
|
67
|
+
|
|
68
|
+
Full commit diff: [`git-bot-feedback/v0.8.5...git-bot-feedback/v0.8.6`][git-bot-feedback/v0.8.6]
|
|
69
|
+
|
|
70
|
+
## [git-bot-feedback/v0.8.5] - 2026-10-04
|
|
71
|
+
|
|
72
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
73
|
+
|
|
74
|
+
- Match descendants of a given glob pattern by @2bndy5 in [#132](https://github.com/2bndy5/git-bot-feedback/pull/132)
|
|
75
|
+
|
|
76
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
77
|
+
|
|
78
|
+
- Bump version to git-bot-feedback/v0.8.5 by @2bndy5 in [`55b72b7`](https://github.com/2bndy5/git-bot-feedback/commit/55b72b7e472fc6e2f33d0d76a20d0d0c2ab3cd9f)
|
|
79
|
+
|
|
80
|
+
[git-bot-feedback/v0.8.5]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.8.4...git-bot-feedback/v0.8.5
|
|
81
|
+
|
|
82
|
+
Full commit diff: [`git-bot-feedback/v0.8.4...git-bot-feedback/v0.8.5`][git-bot-feedback/v0.8.5]
|
|
83
|
+
|
|
84
|
+
## [git-bot-feedback/v0.8.4] - 2026-10-02
|
|
85
|
+
|
|
86
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
87
|
+
|
|
88
|
+
- Bump pyo3 to v0.29.3 and others by @2bndy5 in [#129](https://github.com/2bndy5/git-bot-feedback/pull/129)
|
|
89
|
+
- Bump version to git-bot-feedback/v0.8.4 by @2bndy5 in [`41a9014`](https://github.com/2bndy5/git-bot-feedback/commit/41a90143260cd11d9597ecb09fc1b6dd41b793cd)
|
|
90
|
+
|
|
91
|
+
[git-bot-feedback/v0.8.4]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.8.3...git-bot-feedback/v0.8.4
|
|
92
|
+
|
|
93
|
+
Full commit diff: [`git-bot-feedback/v0.8.3...git-bot-feedback/v0.8.4`][git-bot-feedback/v0.8.4]
|
|
94
|
+
|
|
95
|
+
## [git-bot-feedback/v0.8.3] - 2026-09-26
|
|
96
|
+
|
|
97
|
+
### <!-- 1 --> 🚀 Added
|
|
98
|
+
|
|
99
|
+
- Log link to view step summary by @Copilot in [#125](https://github.com/2bndy5/git-bot-feedback/pull/125)
|
|
100
|
+
|
|
101
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
102
|
+
|
|
103
|
+
- Bump version to git-bot-feedback/v0.8.3 by @2bndy5 in [`131efb2`](https://github.com/2bndy5/git-bot-feedback/commit/131efb2fa166d48b7467abd16e43e01c52e2d0fd)
|
|
104
|
+
|
|
105
|
+
[git-bot-feedback/v0.8.3]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.8.2...git-bot-feedback/v0.8.3
|
|
106
|
+
|
|
107
|
+
Full commit diff: [`git-bot-feedback/v0.8.2...git-bot-feedback/v0.8.3`][git-bot-feedback/v0.8.3]
|
|
108
|
+
|
|
109
|
+
## New Contributors
|
|
110
|
+
|
|
111
|
+
- @Copilot made their first contribution in [#125](https://github.com/2bndy5/git-bot-feedback/pull/125)
|
|
112
|
+
|
|
113
|
+
## [git-bot-feedback/v0.8.2] - 2026-09-24
|
|
114
|
+
|
|
115
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
116
|
+
|
|
117
|
+
- Improve Github client's `get_list_of_changed_files()` by @2bndy5 in [#123](https://github.com/2bndy5/git-bot-feedback/pull/123)
|
|
118
|
+
|
|
119
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
120
|
+
|
|
121
|
+
- Bump version to git-bot-feedback/v0.8.2 by @2bndy5 in [`0e5400a`](https://github.com/2bndy5/git-bot-feedback/commit/0e5400a13f9ee9db19faff7d01a7f70c6869ae42)
|
|
122
|
+
|
|
123
|
+
[git-bot-feedback/v0.8.2]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.8.1...git-bot-feedback/v0.8.2
|
|
124
|
+
|
|
125
|
+
Full commit diff: [`git-bot-feedback/v0.8.1...git-bot-feedback/v0.8.2`][git-bot-feedback/v0.8.2]
|
|
126
|
+
|
|
127
|
+
## [git-bot-feedback/v0.8.1] - 2026-07-14
|
|
128
|
+
|
|
129
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
130
|
+
|
|
131
|
+
- Output only diff using `git show` by @2bndy5 in [#102](https://github.com/2bndy5/git-bot-feedback/pull/102)
|
|
132
|
+
|
|
133
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
134
|
+
|
|
135
|
+
- Bump version to git-bot-feedback/v0.8.1 by @2bndy5 in [`71dac26`](https://github.com/2bndy5/git-bot-feedback/commit/71dac265a5919e02ec2a6c54ee3dd1bebfb5d156)
|
|
136
|
+
|
|
137
|
+
[git-bot-feedback/v0.8.1]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.8.0...git-bot-feedback/v0.8.1
|
|
138
|
+
|
|
139
|
+
Full commit diff: [`git-bot-feedback/v0.8.0...git-bot-feedback/v0.8.1`][git-bot-feedback/v0.8.1]
|
|
140
|
+
|
|
141
|
+
## [git-bot-feedback/v0.8.0] - 2026-07-01
|
|
142
|
+
|
|
143
|
+
### <!-- 1 --> 🚀 Added
|
|
144
|
+
|
|
145
|
+
- Add Gitea support by @2bndy5 in [#94](https://github.com/2bndy5/git-bot-feedback/pull/94)
|
|
146
|
+
|
|
147
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
148
|
+
|
|
149
|
+
- Fail on unsuccessful return code from request for file changes by @2bndy5 in [#95](https://github.com/2bndy5/git-bot-feedback/pull/95)
|
|
150
|
+
- Trim line endings from file names when parsing diff strings by @2bndy5 in [#97](https://github.com/2bndy5/git-bot-feedback/pull/97)
|
|
151
|
+
- Fail on parsing erroneous diff by @2bndy5 in [#98](https://github.com/2bndy5/git-bot-feedback/pull/98)
|
|
152
|
+
- Move option's value instead of cloning it by @2bndy5 in [#99](https://github.com/2bndy5/git-bot-feedback/pull/99)
|
|
153
|
+
|
|
154
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
155
|
+
|
|
156
|
+
- Bump version to git-bot-feedback/v0.8.0 by @2bndy5 in [`d6070e7`](https://github.com/2bndy5/git-bot-feedback/commit/d6070e7d41cdc8a1c01c5f3a69a16aa8bdff0d25)
|
|
157
|
+
|
|
158
|
+
### <!-- 8 --> 📝 Documentation
|
|
159
|
+
|
|
160
|
+
- Expand on some methods' doc comments by @2bndy5 in [#96](https://github.com/2bndy5/git-bot-feedback/pull/96)
|
|
161
|
+
|
|
162
|
+
[git-bot-feedback/v0.8.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.7.1...git-bot-feedback/v0.8.0
|
|
163
|
+
|
|
164
|
+
Full commit diff: [`git-bot-feedback/v0.7.1...git-bot-feedback/v0.8.0`][git-bot-feedback/v0.8.0]
|
|
165
|
+
|
|
166
|
+
## [git-bot-feedback/v0.7.1] - 2026-06-29
|
|
167
|
+
|
|
168
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
169
|
+
|
|
170
|
+
- Bump version to git-bot-feedback/v0.7.1 by @2bndy5 in [`5011a04`](https://github.com/2bndy5/git-bot-feedback/commit/5011a04d4806b08e54a1ed2ba456badb7622e682)
|
|
171
|
+
|
|
172
|
+
### <!-- 9 --> 🗨️ Changed
|
|
173
|
+
|
|
174
|
+
- Change to LGPL-3.0-or-later license by @2bndy5 in [#93](https://github.com/2bndy5/git-bot-feedback/pull/93)
|
|
175
|
+
|
|
176
|
+
[git-bot-feedback/v0.7.1]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.7.0...git-bot-feedback/v0.7.1
|
|
177
|
+
|
|
178
|
+
Full commit diff: [`git-bot-feedback/v0.7.0...git-bot-feedback/v0.7.1`][git-bot-feedback/v0.7.1]
|
|
179
|
+
|
|
180
|
+
## [git-bot-feedback/v0.7.0] - 2026-06-29
|
|
181
|
+
|
|
182
|
+
### <!-- 1 --> 🚀 Added
|
|
183
|
+
|
|
184
|
+
- Add python bindings by @2bndy5 in [#90](https://github.com/2bndy5/git-bot-feedback/pull/90)
|
|
185
|
+
|
|
186
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
187
|
+
|
|
188
|
+
- Use correct name of PR review state that is "COMMENTED" by @2bndy5 in [#89](https://github.com/2bndy5/git-bot-feedback/pull/89)
|
|
189
|
+
|
|
190
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
191
|
+
|
|
192
|
+
- Bump version to git-bot-feedback/v0.7.0 by @2bndy5 in [`89edac4`](https://github.com/2bndy5/git-bot-feedback/commit/89edac47aa122fcdc67d3dd8b5c83d6228ba613e)
|
|
193
|
+
|
|
194
|
+
[git-bot-feedback/v0.7.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.6.1...git-bot-feedback/v0.7.0
|
|
195
|
+
|
|
196
|
+
Full commit diff: [`git-bot-feedback/v0.6.1...git-bot-feedback/v0.7.0`][git-bot-feedback/v0.7.0]
|
|
197
|
+
|
|
198
|
+
## [git-bot-feedback/v0.6.1] - 2026-06-15
|
|
199
|
+
|
|
200
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
201
|
+
|
|
202
|
+
- Strip relative path from `FileFilter::walk_dir()` results by @2bndy5 in [#84](https://github.com/2bndy5/git-bot-feedback/pull/84)
|
|
203
|
+
|
|
204
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
205
|
+
|
|
206
|
+
- Bump version to v0.6.1 by @2bndy5 in [`81314f2`](https://github.com/2bndy5/git-bot-feedback/commit/81314f2d71841e312ddccb49681920986ced047d)
|
|
207
|
+
|
|
208
|
+
[git-bot-feedback/v0.6.1]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.6.0...git-bot-feedback/v0.6.1
|
|
209
|
+
|
|
210
|
+
Full commit diff: [`git-bot-feedback/v0.6.0...git-bot-feedback/v0.6.1`][git-bot-feedback/v0.6.1]
|
|
211
|
+
|
|
212
|
+
## [git-bot-feedback/v0.6.0] - 2026-06-15
|
|
213
|
+
|
|
214
|
+
### <!-- 1 --> 🚀 Added
|
|
215
|
+
|
|
216
|
+
- Strip parent path from `walk_dir()` results by @2bndy5 in [#83](https://github.com/2bndy5/git-bot-feedback/pull/83)
|
|
217
|
+
|
|
218
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
219
|
+
|
|
220
|
+
- Bump version to v0.6.0 by @2bndy5 in [`13ea76e`](https://github.com/2bndy5/git-bot-feedback/commit/13ea76e7fe0ebbeafea7d49d9adf0cb27db13a21)
|
|
221
|
+
|
|
222
|
+
[git-bot-feedback/v0.6.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.5.6...git-bot-feedback/v0.6.0
|
|
223
|
+
|
|
224
|
+
Full commit diff: [`git-bot-feedback/v0.5.6...git-bot-feedback/v0.6.0`][git-bot-feedback/v0.6.0]
|
|
225
|
+
|
|
226
|
+
## [git-bot-feedback/v0.5.6] - 2026-06-11
|
|
227
|
+
|
|
228
|
+
### <!-- 1 --> 🚀 Added
|
|
229
|
+
|
|
230
|
+
- Revise `FileFilter::walk_dir()` by @2bndy5 in [#78](https://github.com/2bndy5/git-bot-feedback/pull/78)
|
|
231
|
+
|
|
232
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
233
|
+
|
|
234
|
+
- Bump version to v0.5.6 by @2bndy5 in [`de6bf8d`](https://github.com/2bndy5/git-bot-feedback/commit/de6bf8dbe144dbceca90dc00e9ce79b0a774a712)
|
|
235
|
+
|
|
236
|
+
[git-bot-feedback/v0.5.6]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.5.5...git-bot-feedback/v0.5.6
|
|
237
|
+
|
|
238
|
+
Full commit diff: [`git-bot-feedback/v0.5.5...git-bot-feedback/v0.5.6`][git-bot-feedback/v0.5.6]
|
|
239
|
+
|
|
240
|
+
## [git-bot-feedback/v0.5.5] - 2026-06-05
|
|
241
|
+
|
|
242
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
243
|
+
|
|
244
|
+
- Bump version to v0.5.5 by @2bndy5 in [`a63f8fa`](https://github.com/2bndy5/git-bot-feedback/commit/a63f8fabfbcee2828992e039803671c81074ee2c)
|
|
245
|
+
|
|
246
|
+
### <!-- 9 --> 🗨️ Changed
|
|
247
|
+
|
|
248
|
+
- Use SPDX identifier for license in crate metadata by @2bndy5 in [`ea8d88a`](https://github.com/2bndy5/git-bot-feedback/commit/ea8d88a5cfe8e655f0456be7b75884fa6347a6e0)
|
|
249
|
+
|
|
250
|
+
[git-bot-feedback/v0.5.5]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.5.4...git-bot-feedback/v0.5.5
|
|
251
|
+
|
|
252
|
+
Full commit diff: [`git-bot-feedback/v0.5.4...git-bot-feedback/v0.5.5`][git-bot-feedback/v0.5.5]
|
|
253
|
+
|
|
254
|
+
## [git-bot-feedback/v0.5.4] - 2026-06-03
|
|
255
|
+
|
|
256
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
257
|
+
|
|
258
|
+
- Honor `ignore_index` when asserted by @2bndy5 in [#75](https://github.com/2bndy5/git-bot-feedback/pull/75)
|
|
259
|
+
|
|
260
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
261
|
+
|
|
262
|
+
- Bump version to v0.5.4 by @2bndy5 in [`fb588c3`](https://github.com/2bndy5/git-bot-feedback/commit/fb588c35243dc0aeffe4c17df3649a761dc50ef0)
|
|
263
|
+
|
|
264
|
+
[git-bot-feedback/v0.5.4]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.5.3...git-bot-feedback/v0.5.4
|
|
265
|
+
|
|
266
|
+
Full commit diff: [`git-bot-feedback/v0.5.3...git-bot-feedback/v0.5.4`][git-bot-feedback/v0.5.4]
|
|
267
|
+
|
|
268
|
+
## [git-bot-feedback/v0.5.3] - 2026-04-18
|
|
269
|
+
|
|
270
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
271
|
+
|
|
272
|
+
- Relax dependencies' constraints by @2bndy5 in [#65](https://github.com/2bndy5/git-bot-feedback/pull/65)
|
|
273
|
+
- Bump version to v0.5.3 by @2bndy5 in [`45325de`](https://github.com/2bndy5/git-bot-feedback/commit/45325de25efa0a650243d0b4f01315522f30c7a2)
|
|
274
|
+
|
|
275
|
+
[git-bot-feedback/v0.5.3]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.5.2...git-bot-feedback/v0.5.3
|
|
276
|
+
|
|
277
|
+
Full commit diff: [`git-bot-feedback/v0.5.2...git-bot-feedback/v0.5.3`][git-bot-feedback/v0.5.3]
|
|
278
|
+
|
|
279
|
+
## [git-bot-feedback/v0.5.2] - 2026-04-18
|
|
280
|
+
|
|
281
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
282
|
+
|
|
283
|
+
- Bump version to v0.5.2 by @2bndy5 in [`737fc35`](https://github.com/2bndy5/git-bot-feedback/commit/737fc35df6b40b8e141efb6b89ad662efaaccb35)
|
|
284
|
+
|
|
285
|
+
### <!-- 9 --> 🗨️ Changed
|
|
286
|
+
|
|
287
|
+
- Revise `FileAnnotations` impl by @2bndy5 in [#64](https://github.com/2bndy5/git-bot-feedback/pull/64)
|
|
288
|
+
|
|
289
|
+
[git-bot-feedback/v0.5.2]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.5.1...git-bot-feedback/v0.5.2
|
|
290
|
+
|
|
291
|
+
Full commit diff: [`git-bot-feedback/v0.5.1...git-bot-feedback/v0.5.2`][git-bot-feedback/v0.5.2]
|
|
292
|
+
|
|
293
|
+
## [git-bot-feedback/v0.5.1] - 2026-04-17
|
|
294
|
+
|
|
295
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
296
|
+
|
|
297
|
+
- Write only 1 LF for GH output vars by @2bndy5 in [`7add27b`](https://github.com/2bndy5/git-bot-feedback/commit/7add27b0637d65e2741e05eb55e3e3e712f46236)
|
|
298
|
+
|
|
299
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
300
|
+
|
|
301
|
+
- Bump version to v0.5.1 by @2bndy5 in [`2802dd0`](https://github.com/2bndy5/git-bot-feedback/commit/2802dd081cb7aac84eb5230d26a1c9a89b156b3d)
|
|
302
|
+
|
|
303
|
+
[git-bot-feedback/v0.5.1]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.5.0...git-bot-feedback/v0.5.1
|
|
304
|
+
|
|
305
|
+
Full commit diff: [`git-bot-feedback/v0.5.0...git-bot-feedback/v0.5.1`][git-bot-feedback/v0.5.1]
|
|
306
|
+
|
|
307
|
+
## [git-bot-feedback/v0.5.0] - 2026-04-17
|
|
308
|
+
|
|
309
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
310
|
+
|
|
311
|
+
- Use stricter linting rules by @2bndy5 in [#63](https://github.com/2bndy5/git-bot-feedback/pull/63)
|
|
312
|
+
|
|
313
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
314
|
+
|
|
315
|
+
- Bump version to v0.5.0 by @2bndy5 in [`83121f2`](https://github.com/2bndy5/git-bot-feedback/commit/83121f2984388b4013dc3c30b849659d5e2533d9)
|
|
316
|
+
|
|
317
|
+
[git-bot-feedback/v0.5.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.4.0...git-bot-feedback/v0.5.0
|
|
318
|
+
|
|
319
|
+
Full commit diff: [`git-bot-feedback/v0.4.0...git-bot-feedback/v0.5.0`][git-bot-feedback/v0.5.0]
|
|
320
|
+
|
|
321
|
+
## [git-bot-feedback/v0.4.0] - 2026-04-17
|
|
322
|
+
|
|
323
|
+
### <!-- 1 --> 🚀 Added
|
|
324
|
+
|
|
325
|
+
- Expose `debug_enabled` and `event_name` by @2bndy5 in [#60](https://github.com/2bndy5/git-bot-feedback/pull/60)
|
|
326
|
+
- Implement Display for LinesChangedOnly by @2bndy5 in [#59](https://github.com/2bndy5/git-bot-feedback/pull/59)
|
|
327
|
+
- Add `init_client()` and `LocalClient` by @2bndy5 in [#61](https://github.com/2bndy5/git-bot-feedback/pull/61)
|
|
328
|
+
- Allow custom user-agent header value by @2bndy5 in [#62](https://github.com/2bndy5/git-bot-feedback/pull/62)
|
|
329
|
+
|
|
330
|
+
### <!-- 10 --> 💥 Breaking Changes
|
|
331
|
+
|
|
332
|
+
- Rename `FileFilter::is_not_ignored()` to `is_qualified()` by @2bndy5 in [#57](https://github.com/2bndy5/git-bot-feedback/pull/57)
|
|
333
|
+
|
|
334
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
335
|
+
|
|
336
|
+
- Remove `async` from non-async functions by @2bndy5 in [#58](https://github.com/2bndy5/git-bot-feedback/pull/58)
|
|
337
|
+
|
|
338
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
339
|
+
|
|
340
|
+
- Bump version to v0.4.0 by @2bndy5 in [`d4406ff`](https://github.com/2bndy5/git-bot-feedback/commit/d4406ff45f9bc3a83580747e466cd157fe393efe)
|
|
341
|
+
|
|
342
|
+
[git-bot-feedback/v0.4.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.3.0...git-bot-feedback/v0.4.0
|
|
343
|
+
|
|
344
|
+
Full commit diff: [`git-bot-feedback/v0.3.0...git-bot-feedback/v0.4.0`][git-bot-feedback/v0.4.0]
|
|
345
|
+
|
|
346
|
+
## [git-bot-feedback/v0.3.0] - 2026-04-15
|
|
347
|
+
|
|
348
|
+
### <!-- 1 --> 🚀 Added
|
|
349
|
+
|
|
350
|
+
- Allow custom base for local diff by @2bndy5 in [#30](https://github.com/2bndy5/git-bot-feedback/pull/30)
|
|
351
|
+
- Propagate more errors to user for adequate handling by @2bndy5 in [#31](https://github.com/2bndy5/git-bot-feedback/pull/31)
|
|
352
|
+
- Use helper functions to reduce error handling code by @2bndy5 in [#33](https://github.com/2bndy5/git-bot-feedback/pull/33)
|
|
353
|
+
- Comprehensive output variable validation by @2bndy5 in [#35](https://github.com/2bndy5/git-bot-feedback/pull/35)
|
|
354
|
+
- Support file annotations by @2bndy5 in [#37](https://github.com/2bndy5/git-bot-feedback/pull/37)
|
|
355
|
+
- Support PR reviews by @2bndy5 in [#34](https://github.com/2bndy5/git-bot-feedback/pull/34)
|
|
356
|
+
|
|
357
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
358
|
+
|
|
359
|
+
- Use synchronous `std::{fs, process::Command}` by @2bndy5 in [#29](https://github.com/2bndy5/git-bot-feedback/pull/29)
|
|
360
|
+
- Make `RestApiClient` a dyn-compatible async trait by @2bndy5 in [#36](https://github.com/2bndy5/git-bot-feedback/pull/36)
|
|
361
|
+
|
|
362
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
363
|
+
|
|
364
|
+
- Bump the cargo group across 1 directory with 10 updates by @dependabot[bot] in [#28](https://github.com/2bndy5/git-bot-feedback/pull/28)
|
|
365
|
+
- Bump the cargo group across 1 directory with 4 updates by @dependabot[bot] in [#40](https://github.com/2bndy5/git-bot-feedback/pull/40)
|
|
366
|
+
- Bump tokio from 1.50.0 to 1.51.0 in the cargo group by @dependabot[bot] in [#47](https://github.com/2bndy5/git-bot-feedback/pull/47)
|
|
367
|
+
- Bump tokio to v1.52.0 by @2bndy5 in [`b0ef1d5`](https://github.com/2bndy5/git-bot-feedback/commit/b0ef1d5668218c4c445048583e24a78fccf7664a)
|
|
368
|
+
- Bump version to v0.3.0 by @2bndy5 in [`c8e8341`](https://github.com/2bndy5/git-bot-feedback/commit/c8e834160052393dfe626027e5ef997033047f16)
|
|
369
|
+
|
|
370
|
+
[git-bot-feedback/v0.3.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.2.0...git-bot-feedback/v0.3.0
|
|
371
|
+
|
|
372
|
+
Full commit diff: [`git-bot-feedback/v0.2.0...git-bot-feedback/v0.3.0`][git-bot-feedback/v0.3.0]
|
|
373
|
+
|
|
374
|
+
## [git-bot-feedback/v0.2.0] - 2025-10-25
|
|
375
|
+
|
|
376
|
+
### <!-- 1 --> 🚀 Added
|
|
377
|
+
|
|
378
|
+
- List file changes by @2bndy5 in [#11](https://github.com/2bndy5/git-bot-feedback/pull/11)
|
|
379
|
+
|
|
380
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
381
|
+
|
|
382
|
+
- Bump the cargo group across 1 directory with 9 updates by @dependabot[bot] in [#10](https://github.com/2bndy5/git-bot-feedback/pull/10)
|
|
383
|
+
|
|
384
|
+
### <!-- 9 --> 🗨️ Changed
|
|
385
|
+
|
|
386
|
+
- Fix bump-n-release script by @2bndy5 in [`b7c8ee3`](https://github.com/2bndy5/git-bot-feedback/commit/b7c8ee3fd68816c3dc2ba6583a1dd832122a2936)
|
|
387
|
+
|
|
388
|
+
[git-bot-feedback/v0.2.0]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.1.4...git-bot-feedback/v0.2.0
|
|
389
|
+
|
|
390
|
+
Full commit diff: [`git-bot-feedback/v0.1.4...git-bot-feedback/v0.2.0`][git-bot-feedback/v0.2.0]
|
|
391
|
+
|
|
392
|
+
## [git-bot-feedback/v0.1.4] - 2025-08-18
|
|
393
|
+
|
|
394
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
395
|
+
|
|
396
|
+
- Bump the cargo group with 3 updates by @dependabot[bot] in [#2](https://github.com/2bndy5/git-bot-feedback/pull/2)
|
|
397
|
+
- Bump version to v0.1.4 by @2bndy5 in [`19c6330`](https://github.com/2bndy5/git-bot-feedback/commit/19c6330e8c4aa0e4ee18482b761277bd294bb6f3)
|
|
398
|
+
|
|
399
|
+
[git-bot-feedback/v0.1.4]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.1.3...git-bot-feedback/v0.1.4
|
|
400
|
+
|
|
401
|
+
Full commit diff: [`git-bot-feedback/v0.1.3...git-bot-feedback/v0.1.4`][git-bot-feedback/v0.1.4]
|
|
402
|
+
|
|
403
|
+
## New Contributors
|
|
404
|
+
|
|
405
|
+
- @dependabot[bot] made their first contribution in [#2](https://github.com/2bndy5/git-bot-feedback/pull/2)
|
|
406
|
+
|
|
407
|
+
## [git-bot-feedback/v0.1.3] - 2025-07-19
|
|
408
|
+
|
|
409
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
410
|
+
|
|
411
|
+
- Bump version to v0.1.3 by @2bndy5 in [`c5e4d9b`](https://github.com/2bndy5/git-bot-feedback/commit/c5e4d9b9ce474d26e6a92286c1b58207351cd153)
|
|
412
|
+
|
|
413
|
+
### <!-- 9 --> 🗨️ Changed
|
|
414
|
+
|
|
415
|
+
- Bump serde_json from 1.0.140 to 1.0.141 by @2bndy5 in [`e831cd8`](https://github.com/2bndy5/git-bot-feedback/commit/e831cd8b937620eb804f4efad02f683d0317eeb6)
|
|
416
|
+
|
|
417
|
+
[git-bot-feedback/v0.1.3]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.1.2...git-bot-feedback/v0.1.3
|
|
418
|
+
|
|
419
|
+
Full commit diff: [`git-bot-feedback/v0.1.2...git-bot-feedback/v0.1.3`][git-bot-feedback/v0.1.3]
|
|
420
|
+
|
|
421
|
+
## [git-bot-feedback/v0.1.2] - 2025-07-16
|
|
422
|
+
|
|
423
|
+
### <!-- 1 --> 🚀 Added
|
|
424
|
+
|
|
425
|
+
- Implement GitHub client by @2bndy5 in [#1](https://github.com/2bndy5/git-bot-feedback/pull/1)
|
|
426
|
+
|
|
427
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
428
|
+
|
|
429
|
+
- Detect CI context in build-n-release.nu script by @2bndy5 in [`ae77080`](https://github.com/2bndy5/git-bot-feedback/commit/ae77080563f20f0374c4692d79d2096abbe14b66)
|
|
430
|
+
- Bump version to v0.1.2 by @2bndy5 in [`9c6cef4`](https://github.com/2bndy5/git-bot-feedback/commit/9c6cef41be1c2780b95cc18277bb9e180d78886f)
|
|
431
|
+
|
|
432
|
+
[git-bot-feedback/v0.1.2]: https://github.com/2bndy5/git-bot-feedback/compare/git-bot-feedback/v0.1.1...git-bot-feedback/v0.1.2
|
|
433
|
+
|
|
434
|
+
Full commit diff: [`git-bot-feedback/v0.1.1...git-bot-feedback/v0.1.2`][git-bot-feedback/v0.1.2]
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
<!-- generated by git-cliff -->
|
|
@@ -413,7 +413,7 @@ dependencies = [
|
|
|
413
413
|
|
|
414
414
|
[[package]]
|
|
415
415
|
name = "git-bot-feedback"
|
|
416
|
-
version = "0.
|
|
416
|
+
version = "0.9.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.
|
|
436
|
+
version = "0.3.0"
|
|
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.
|
|
24
|
+
version = "0.9.0"
|
|
25
25
|
edition.workspace = true
|
|
26
26
|
license.workspace = true
|
|
27
27
|
repository.workspace = true
|
|
@@ -6,6 +6,43 @@ 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.3.0] - 2026-10-22
|
|
10
|
+
|
|
11
|
+
### <!-- 1 --> 🚀 Added
|
|
12
|
+
|
|
13
|
+
- Add `workspace_root()` and `nearest_git_root()` helpers by @shenxianpeng in [#148](https://github.com/2bndy5/git-bot-feedback/pull/148)
|
|
14
|
+
|
|
15
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
16
|
+
|
|
17
|
+
- Match a plain path pattern without checking the file system by @shenxianpeng in [#147](https://github.com/2bndy5/git-bot-feedback/pull/147)
|
|
18
|
+
|
|
19
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
20
|
+
|
|
21
|
+
- Bump version to git-bot-feedback/v0.9.0 by @2bndy5 in [`57686f2`](https://github.com/2bndy5/git-bot-feedback/commit/57686f22f7f8ee3e5f8a1df53974af78d82c5d08)
|
|
22
|
+
|
|
23
|
+
[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
|
+
|
|
25
|
+
Full commit diff: [`git-bot-feedback-py/v0.2.9...git-bot-feedback-py/v0.3.0`][git-bot-feedback-py/v0.3.0]
|
|
26
|
+
|
|
27
|
+
## [git-bot-feedback-py/v0.2.9] - 2026-10-20
|
|
28
|
+
|
|
29
|
+
### <!-- 4 --> 🛠️ Fixed
|
|
30
|
+
|
|
31
|
+
- Use GITHUB_GRAPHQL_URL for GraphQL requests by @shenxianpeng in [#143](https://github.com/2bndy5/git-bot-feedback/pull/143)
|
|
32
|
+
|
|
33
|
+
### <!-- 6 --> 📦 Dependency updates
|
|
34
|
+
|
|
35
|
+
- Bump version to git-bot-feedback/v0.8.8 by @2bndy5 in [`8c71b01`](https://github.com/2bndy5/git-bot-feedback/commit/8c71b0188cb9106dcd2fdba4d7cadaf99e34463a)
|
|
36
|
+
- Bump version to git-bot-feedback-py/v0.2.9 by @2bndy5 in [`be785a5`](https://github.com/2bndy5/git-bot-feedback/commit/be785a532daa9e6a0fbc7b2d2f31decabe850dfb)
|
|
37
|
+
|
|
38
|
+
[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
|
|
39
|
+
|
|
40
|
+
Full commit diff: [`git-bot-feedback-py/v0.2.8...git-bot-feedback-py/v0.2.9`][git-bot-feedback-py/v0.2.9]
|
|
41
|
+
|
|
42
|
+
## New Contributors
|
|
43
|
+
|
|
44
|
+
- @shenxianpeng made their first contribution in [#143](https://github.com/2bndy5/git-bot-feedback/pull/143)
|
|
45
|
+
|
|
9
46
|
## [git-bot-feedback-py/v0.2.8] - 2026-10-20
|
|
10
47
|
|
|
11
48
|
### <!-- 4 --> 🛠️ Fixed
|
|
@@ -15,6 +52,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
15
52
|
### <!-- 6 --> 📦 Dependency updates
|
|
16
53
|
|
|
17
54
|
- Bump version to git-bot-feedback/v0.8.7 by @2bndy5 in [`6db742e`](https://github.com/2bndy5/git-bot-feedback/commit/6db742e3cd81c9faa2c8eb1efe63da6831557c50)
|
|
55
|
+
- Bump version to git-bot-feedback-py/v0.2.8 by @2bndy5 in [`9606bf3`](https://github.com/2bndy5/git-bot-feedback/commit/9606bf368bc4e6b7313f3503278c1d3a0f886ef6)
|
|
18
56
|
|
|
19
57
|
[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
58
|
|
|
@@ -69,6 +107,7 @@ Full commit diff: [`git-bot-feedback-py/v0.2.4...git-bot-feedback-py/v0.2.5`][gi
|
|
|
69
107
|
|
|
70
108
|
### <!-- 6 --> 📦 Dependency updates
|
|
71
109
|
|
|
110
|
+
- Bump pyo3 to v0.29.3 and others by @2bndy5 in [#129](https://github.com/2bndy5/git-bot-feedback/pull/129)
|
|
72
111
|
- Bump version to git-bot-feedback/v0.8.4 by @2bndy5 in [`41a9014`](https://github.com/2bndy5/git-bot-feedback/commit/41a90143260cd11d9597ecb09fc1b6dd41b793cd)
|
|
73
112
|
- Bump version to git-bot-feedback-py/v0.2.4 by @2bndy5 in [`fc345db`](https://github.com/2bndy5/git-bot-feedback/commit/fc345dba18ecb0bc7d587542854115b317db2226)
|
|
74
113
|
|
|
@@ -203,12 +242,37 @@ Full commit diff: [`git-bot-feedback-py/v0.0.1...git-bot-feedback-py/v0.1.0`][gi
|
|
|
203
242
|
|
|
204
243
|
### <!-- 6 --> 📦 Dependency updates
|
|
205
244
|
|
|
245
|
+
- Detect CI context in build-n-release.nu script by @2bndy5 in [`ae77080`](https://github.com/2bndy5/git-bot-feedback/commit/ae77080563f20f0374c4692d79d2096abbe14b66)
|
|
246
|
+
- Bump version to v0.1.2 by @2bndy5 in [`9c6cef4`](https://github.com/2bndy5/git-bot-feedback/commit/9c6cef41be1c2780b95cc18277bb9e180d78886f)
|
|
247
|
+
- Bump version to v0.1.3 by @2bndy5 in [`c5e4d9b`](https://github.com/2bndy5/git-bot-feedback/commit/c5e4d9b9ce474d26e6a92286c1b58207351cd153)
|
|
248
|
+
- Bump the cargo group with 3 updates by @dependabot[bot] in [#2](https://github.com/2bndy5/git-bot-feedback/pull/2)
|
|
249
|
+
- Bump version to v0.1.4 by @2bndy5 in [`19c6330`](https://github.com/2bndy5/git-bot-feedback/commit/19c6330e8c4aa0e4ee18482b761277bd294bb6f3)
|
|
250
|
+
- Bump the cargo group across 1 directory with 9 updates by @dependabot[bot] in [#10](https://github.com/2bndy5/git-bot-feedback/pull/10)
|
|
251
|
+
- Bump the cargo group across 1 directory with 10 updates by @dependabot[bot] in [#28](https://github.com/2bndy5/git-bot-feedback/pull/28)
|
|
252
|
+
- Bump the cargo group across 1 directory with 4 updates by @dependabot[bot] in [#40](https://github.com/2bndy5/git-bot-feedback/pull/40)
|
|
253
|
+
- Bump tokio from 1.50.0 to 1.51.0 in the cargo group by @dependabot[bot] in [#47](https://github.com/2bndy5/git-bot-feedback/pull/47)
|
|
254
|
+
- Bump tokio to v1.52.0 by @2bndy5 in [`b0ef1d5`](https://github.com/2bndy5/git-bot-feedback/commit/b0ef1d5668218c4c445048583e24a78fccf7664a)
|
|
255
|
+
- Bump version to v0.3.0 by @2bndy5 in [`c8e8341`](https://github.com/2bndy5/git-bot-feedback/commit/c8e834160052393dfe626027e5ef997033047f16)
|
|
256
|
+
- Bump version to v0.4.0 by @2bndy5 in [`d4406ff`](https://github.com/2bndy5/git-bot-feedback/commit/d4406ff45f9bc3a83580747e466cd157fe393efe)
|
|
257
|
+
- Bump version to v0.5.0 by @2bndy5 in [`83121f2`](https://github.com/2bndy5/git-bot-feedback/commit/83121f2984388b4013dc3c30b849659d5e2533d9)
|
|
258
|
+
- Bump version to v0.5.1 by @2bndy5 in [`2802dd0`](https://github.com/2bndy5/git-bot-feedback/commit/2802dd081cb7aac84eb5230d26a1c9a89b156b3d)
|
|
259
|
+
- Bump version to v0.5.2 by @2bndy5 in [`737fc35`](https://github.com/2bndy5/git-bot-feedback/commit/737fc35df6b40b8e141efb6b89ad662efaaccb35)
|
|
260
|
+
- Relax dependencies' constraints by @2bndy5 in [#65](https://github.com/2bndy5/git-bot-feedback/pull/65)
|
|
261
|
+
- Bump version to v0.5.3 by @2bndy5 in [`45325de`](https://github.com/2bndy5/git-bot-feedback/commit/45325de25efa0a650243d0b4f01315522f30c7a2)
|
|
262
|
+
- Bump version to v0.5.4 by @2bndy5 in [`fb588c3`](https://github.com/2bndy5/git-bot-feedback/commit/fb588c35243dc0aeffe4c17df3649a761dc50ef0)
|
|
263
|
+
- Bump version to v0.5.5 by @2bndy5 in [`a63f8fa`](https://github.com/2bndy5/git-bot-feedback/commit/a63f8fabfbcee2828992e039803671c81074ee2c)
|
|
264
|
+
- Bump version to v0.5.6 by @2bndy5 in [`de6bf8d`](https://github.com/2bndy5/git-bot-feedback/commit/de6bf8dbe144dbceca90dc00e9ce79b0a774a712)
|
|
265
|
+
- Bump version to v0.6.0 by @2bndy5 in [`13ea76e`](https://github.com/2bndy5/git-bot-feedback/commit/13ea76e7fe0ebbeafea7d49d9adf0cb27db13a21)
|
|
266
|
+
- Bump version to v0.6.1 by @2bndy5 in [`81314f2`](https://github.com/2bndy5/git-bot-feedback/commit/81314f2d71841e312ddccb49681920986ced047d)
|
|
206
267
|
- Bump version to git-bot-feedback/v0.7.0 by @2bndy5 in [`89edac4`](https://github.com/2bndy5/git-bot-feedback/commit/89edac47aa122fcdc67d3dd8b5c83d6228ba613e)
|
|
207
268
|
- Bump version to git-bot-feedback-py/v0.0.1 by @2bndy5 in [`201ceba`](https://github.com/2bndy5/git-bot-feedback/commit/201cebaf09433d557f402d896f0f2a4378d91700)
|
|
208
269
|
|
|
209
270
|
### <!-- 9 --> 🗨️ Changed
|
|
210
271
|
|
|
272
|
+
- Bump serde_json from 1.0.140 to 1.0.141 by @2bndy5 in [`e831cd8`](https://github.com/2bndy5/git-bot-feedback/commit/e831cd8b937620eb804f4efad02f683d0317eeb6)
|
|
273
|
+
- Fix bump-n-release script by @2bndy5 in [`b7c8ee3`](https://github.com/2bndy5/git-bot-feedback/commit/b7c8ee3fd68816c3dc2ba6583a1dd832122a2936)
|
|
211
274
|
- Revise `FileAnnotations` impl by @2bndy5 in [#64](https://github.com/2bndy5/git-bot-feedback/pull/64)
|
|
275
|
+
- Use SPDX identifier for license in crate metadata by @2bndy5 in [`ea8d88a`](https://github.com/2bndy5/git-bot-feedback/commit/ea8d88a5cfe8e655f0456be7b75884fa6347a6e0)
|
|
212
276
|
|
|
213
277
|
[git-bot-feedback-py/v0.0.1]: https://github.com/2bndy5/git-bot-feedback/compare/4d46f96eddc6f512bb7bf3600d3f9d5490ef004f...git-bot-feedback-py/v0.0.1
|
|
214
278
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "git-bot-feedback-py"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.3.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.
|
|
17
|
+
git-bot-feedback = { path = "../..", version = "0.9.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"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from enum import Enum
|
|
2
|
+
from os import PathLike
|
|
2
3
|
from pathlib import Path
|
|
3
4
|
from typing import NamedTuple
|
|
4
5
|
|
|
@@ -28,6 +29,7 @@ class GitClient:
|
|
|
28
29
|
def write_file_annotations(self, annotations: list[FileAnnotation]) -> None: ...
|
|
29
30
|
@property
|
|
30
31
|
def client_kind(self) -> str: ...
|
|
32
|
+
def workspace_root(self) -> Path | None: ...
|
|
31
33
|
|
|
32
34
|
class OutputVariable:
|
|
33
35
|
def __init__(self, name: str, value: str) -> None: ...
|
|
@@ -131,6 +133,7 @@ class LinesChangedOnly(Enum):
|
|
|
131
133
|
Off = ...
|
|
132
134
|
Diff = ...
|
|
133
135
|
|
|
136
|
+
def nearest_git_root(path: str | Path | PathLike[str]) -> Path | None: ...
|
|
134
137
|
def parse_diff(
|
|
135
138
|
diff: str,
|
|
136
139
|
file_filter: FileFilter,
|
|
@@ -4,7 +4,10 @@ mod wrapper;
|
|
|
4
4
|
#[doc = include_str!("../README.rst")]
|
|
5
5
|
#[pymodule]
|
|
6
6
|
mod git_bot_feedback {
|
|
7
|
-
use std::
|
|
7
|
+
use std::{
|
|
8
|
+
collections::HashMap,
|
|
9
|
+
path::{Path, PathBuf},
|
|
10
|
+
};
|
|
8
11
|
|
|
9
12
|
use pyo3::prelude::*;
|
|
10
13
|
|
|
@@ -59,6 +62,18 @@ mod git_bot_feedback {
|
|
|
59
62
|
Ok(result)
|
|
60
63
|
}
|
|
61
64
|
|
|
65
|
+
/// Find the closest folder, starting with ``path`` itself, that has a ``.git``
|
|
66
|
+
/// folder or file (as in a git submodule).
|
|
67
|
+
///
|
|
68
|
+
/// A relative ``path`` is resolved against the working directory.
|
|
69
|
+
/// The returned path is absolute, but symbolic links are not resolved.
|
|
70
|
+
/// Returns ``None`` if no such folder is found. This does not invoke the git CLI.
|
|
71
|
+
#[pyfunction]
|
|
72
|
+
#[pyo3(text_signature = "(path: str | Path | os.PathLike[str]) -> Path | None")]
|
|
73
|
+
pub fn nearest_git_root(path: PathBuf) -> Option<PathBuf> {
|
|
74
|
+
::git_bot_feedback::client::nearest_git_root(Path::new(&path))
|
|
75
|
+
}
|
|
76
|
+
|
|
62
77
|
#[pymodule_export]
|
|
63
78
|
use ::git_bot_feedback::ReviewAction;
|
|
64
79
|
#[pymodule_export]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
use std::sync::Arc;
|
|
1
|
+
use std::{path::PathBuf, sync::Arc};
|
|
2
2
|
use tokio::sync::Mutex;
|
|
3
3
|
|
|
4
4
|
use ::git_bot_feedback::client::{RestApiClient, init_client};
|
|
@@ -331,4 +331,15 @@ impl GitClient {
|
|
|
331
331
|
pub fn client_kind(&self) -> String {
|
|
332
332
|
self.client.blocking_lock().client_kind()
|
|
333
333
|
}
|
|
334
|
+
|
|
335
|
+
/// The root folder of the workspace, as named by the CI platform's environment
|
|
336
|
+
/// (for example, ``GITHUB_WORKSPACE`` on GitHub).
|
|
337
|
+
///
|
|
338
|
+
/// Returns ``None`` when not run by a CI platform.
|
|
339
|
+
/// Raises a ``ValueError`` if the CI platform's environment variable cannot be read.
|
|
340
|
+
/// This does not fall back to the working directory or
|
|
341
|
+
/// :py:func:`~git_bot_feedback.nearest_git_root()`.
|
|
342
|
+
pub fn workspace_root(&self) -> PyResult<Option<PathBuf>> {
|
|
343
|
+
Ok(self.client.blocking_lock().workspace_root()?)
|
|
344
|
+
}
|
|
334
345
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from enum import Enum
|
|
2
|
+
from os import PathLike
|
|
2
3
|
from pathlib import Path
|
|
3
4
|
from typing import NamedTuple
|
|
4
5
|
|
|
@@ -28,6 +29,7 @@ class GitClient:
|
|
|
28
29
|
def write_file_annotations(self, annotations: list[FileAnnotation]) -> None: ...
|
|
29
30
|
@property
|
|
30
31
|
def client_kind(self) -> str: ...
|
|
32
|
+
def workspace_root(self) -> Path | None: ...
|
|
31
33
|
|
|
32
34
|
class OutputVariable:
|
|
33
35
|
def __init__(self, name: str, value: str) -> None: ...
|
|
@@ -131,6 +133,7 @@ class LinesChangedOnly(Enum):
|
|
|
131
133
|
Off = ...
|
|
132
134
|
Diff = ...
|
|
133
135
|
|
|
136
|
+
def nearest_git_root(path: str | Path | PathLike[str]) -> Path | None: ...
|
|
134
137
|
def parse_diff(
|
|
135
138
|
diff: str,
|
|
136
139
|
file_filter: FileFilter,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
use std::{env, fs::OpenOptions, io::Write};
|
|
1
|
+
use std::{env, fs::OpenOptions, io::Write, path::PathBuf};
|
|
2
2
|
|
|
3
3
|
use async_trait::async_trait;
|
|
4
4
|
use reqwest::{Client, Method};
|
|
@@ -77,6 +77,15 @@ impl RestApiClient for GiteaApiClient {
|
|
|
77
77
|
self.pull_request.is_some()
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
/// Uses `GITEA_WORKSPACE`, or `GITHUB_WORKSPACE` if that cannot be read.
|
|
81
|
+
/// The error names `GITEA_WORKSPACE` when neither can be read.
|
|
82
|
+
fn workspace_root(&self) -> Result<Option<PathBuf>, ClientError> {
|
|
83
|
+
env::var("GITEA_WORKSPACE")
|
|
84
|
+
.or_else(|e| env::var("GITHUB_WORKSPACE").map_err(|_| e))
|
|
85
|
+
.map(|v| Some(PathBuf::from(v)))
|
|
86
|
+
.map_err(|e| ClientError::env_var("GITEA_WORKSPACE or GITHUB_WORKSPACE", e))
|
|
87
|
+
}
|
|
88
|
+
|
|
80
89
|
fn set_user_agent(&mut self, user_agent: &str) -> Result<(), ClientError> {
|
|
81
90
|
self.client = Client::builder()
|
|
82
91
|
.default_headers(Self::make_headers()?)
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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
|
|
@@ -7,6 +7,7 @@ use std::{
|
|
|
7
7
|
env,
|
|
8
8
|
fs::OpenOptions,
|
|
9
9
|
io::{self, Write},
|
|
10
|
+
path::PathBuf,
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
use async_trait::async_trait;
|
|
@@ -43,6 +44,9 @@ pub struct GithubApiClient {
|
|
|
43
44
|
/// The value of the `GITHUB_API_URL` environment variable.
|
|
44
45
|
api_url: Url,
|
|
45
46
|
|
|
47
|
+
/// The value of the `GITHUB_GRAPHQL_URL` environment variable.
|
|
48
|
+
graphql_url: Url,
|
|
49
|
+
|
|
46
50
|
/// The value of the `GITHUB_REPOSITORY` environment variable.
|
|
47
51
|
repo: String,
|
|
48
52
|
|
|
@@ -116,6 +120,12 @@ impl RestApiClient for GithubApiClient {
|
|
|
116
120
|
Some(self.event_name.clone())
|
|
117
121
|
}
|
|
118
122
|
|
|
123
|
+
fn workspace_root(&self) -> Result<Option<PathBuf>, ClientError> {
|
|
124
|
+
env::var("GITHUB_WORKSPACE")
|
|
125
|
+
.map(|v| Some(PathBuf::from(v)))
|
|
126
|
+
.map_err(|e| ClientError::env_var("GITHUB_WORKSPACE", e))
|
|
127
|
+
}
|
|
128
|
+
|
|
119
129
|
fn is_debug_enabled(&self) -> bool {
|
|
120
130
|
self.debug_enabled
|
|
121
131
|
}
|
|
@@ -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/");
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
//! A module to contain traits and structs that are needed by the rest of the git-bot-feedback crate's API.
|
|
2
|
-
use std::{
|
|
2
|
+
use std::{
|
|
3
|
+
env,
|
|
4
|
+
fmt::Debug,
|
|
5
|
+
path::{Component, Path, PathBuf},
|
|
6
|
+
time::Duration,
|
|
7
|
+
};
|
|
3
8
|
|
|
4
9
|
use async_trait::async_trait;
|
|
5
10
|
use chrono::DateTime;
|
|
@@ -51,6 +56,41 @@ pub struct RestApiRateLimitHeaders {
|
|
|
51
56
|
pub retry: String,
|
|
52
57
|
}
|
|
53
58
|
|
|
59
|
+
/// Find the closest folder, starting with `path` itself, that has a `.git` folder or file.
|
|
60
|
+
///
|
|
61
|
+
/// A git submodule has a `.git` file instead of a folder.
|
|
62
|
+
/// A relative `path` is resolved against the working directory.
|
|
63
|
+
/// The returned path is absolute, with any `.` and `..` components removed,
|
|
64
|
+
/// but symbolic links are not resolved.
|
|
65
|
+
///
|
|
66
|
+
/// Returns [`None`] if no such folder is found.
|
|
67
|
+
/// This does not invoke the git CLI.
|
|
68
|
+
///
|
|
69
|
+
/// ```rust
|
|
70
|
+
/// use git_bot_feedback::client::nearest_git_root;
|
|
71
|
+
/// use std::path::Path;
|
|
72
|
+
///
|
|
73
|
+
/// let root = nearest_git_root(Path::new("src")).unwrap();
|
|
74
|
+
/// assert!(root.join(".git").exists());
|
|
75
|
+
/// ```
|
|
76
|
+
pub fn nearest_git_root(path: &Path) -> Option<PathBuf> {
|
|
77
|
+
let absolute = std::path::absolute(path).ok()?;
|
|
78
|
+
let mut normalized = PathBuf::new();
|
|
79
|
+
for component in absolute.components() {
|
|
80
|
+
match component {
|
|
81
|
+
Component::CurDir => {}
|
|
82
|
+
Component::ParentDir => {
|
|
83
|
+
normalized.pop();
|
|
84
|
+
}
|
|
85
|
+
_ => normalized.push(component),
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
normalized
|
|
89
|
+
.ancestors()
|
|
90
|
+
.find(|dir| dir.join(".git").exists())
|
|
91
|
+
.map(Path::to_path_buf)
|
|
92
|
+
}
|
|
93
|
+
|
|
54
94
|
/// The [`Result::Err`] type returned for fallible functions in this trait.
|
|
55
95
|
pub(crate) type ClientError = RestClientError;
|
|
56
96
|
|
|
@@ -119,6 +159,21 @@ pub trait RestApiClient {
|
|
|
119
159
|
None
|
|
120
160
|
}
|
|
121
161
|
|
|
162
|
+
/// The root folder of the workspace, as named by the CI platform's environment
|
|
163
|
+
/// (for example, `GITHUB_WORKSPACE` on GitHub).
|
|
164
|
+
///
|
|
165
|
+
/// Changed file names reported by the git server's REST API are relative to the
|
|
166
|
+
/// repository's top level, which is this folder unless the repository was checked
|
|
167
|
+
/// out into a sub-folder of it.
|
|
168
|
+
///
|
|
169
|
+
/// Returns [`Ok(None)`](Option::None) for clients that are not run by a CI platform
|
|
170
|
+
/// (like [`LocalClient`]), and an error if the CI platform's environment variable
|
|
171
|
+
/// cannot be read. This does not fall back to the working directory or
|
|
172
|
+
/// [`nearest_git_root()`]; consumers can choose their own fallback.
|
|
173
|
+
fn workspace_root(&self) -> Result<Option<PathBuf>, ClientError> {
|
|
174
|
+
Ok(None)
|
|
175
|
+
}
|
|
176
|
+
|
|
122
177
|
/// Set the user agent for the underlying HTTP request client.
|
|
123
178
|
///
|
|
124
179
|
/// By default the user agent is set to this lib's name and version.
|
|
@@ -358,3 +413,49 @@ pub fn init_client() -> Result<Box<dyn RestApiClient + Send + Sync>, ClientError
|
|
|
358
413
|
Ok(Box::new(LocalClient))
|
|
359
414
|
}
|
|
360
415
|
}
|
|
416
|
+
|
|
417
|
+
#[cfg(test)]
|
|
418
|
+
mod tests {
|
|
419
|
+
#![allow(clippy::unwrap_used)]
|
|
420
|
+
|
|
421
|
+
use super::nearest_git_root;
|
|
422
|
+
use std::fs;
|
|
423
|
+
use tempfile::tempdir;
|
|
424
|
+
|
|
425
|
+
#[test]
|
|
426
|
+
fn git_root_of_sub_folder() {
|
|
427
|
+
let tmp = tempdir().unwrap();
|
|
428
|
+
let repo = tmp.path().join("repo");
|
|
429
|
+
fs::create_dir_all(repo.join(".git")).unwrap();
|
|
430
|
+
fs::create_dir_all(repo.join("member/src")).unwrap();
|
|
431
|
+
let root = nearest_git_root(&repo.join("member/src")).unwrap();
|
|
432
|
+
assert_eq!(root, repo);
|
|
433
|
+
assert_eq!(nearest_git_root(&repo).unwrap(), repo);
|
|
434
|
+
// `.` and `..` are removed before searching
|
|
435
|
+
let indirect = repo.join("member/./src/../src/..");
|
|
436
|
+
assert_eq!(nearest_git_root(&indirect).unwrap(), repo);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
#[test]
|
|
440
|
+
fn git_root_of_submodule() {
|
|
441
|
+
let tmp = tempdir().unwrap();
|
|
442
|
+
let repo = tmp.path().join("repo");
|
|
443
|
+
fs::create_dir_all(repo.join(".git")).unwrap();
|
|
444
|
+
let submodule = repo.join("libs/sub");
|
|
445
|
+
fs::create_dir_all(&submodule).unwrap();
|
|
446
|
+
// a submodule has a `.git` file
|
|
447
|
+
fs::write(submodule.join(".git"), "").unwrap();
|
|
448
|
+
assert_eq!(nearest_git_root(&submodule.join("src")).unwrap(), submodule);
|
|
449
|
+
assert_eq!(nearest_git_root(&repo.join("libs")).unwrap(), repo);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
#[test]
|
|
453
|
+
fn no_git_root() {
|
|
454
|
+
let tmp = tempdir().unwrap();
|
|
455
|
+
let folder = tmp.path().join("not/a/repo");
|
|
456
|
+
fs::create_dir_all(&folder).unwrap();
|
|
457
|
+
let found = nearest_git_root(&folder);
|
|
458
|
+
// the temp dir is not expected to be inside a git repository
|
|
459
|
+
assert!(found.is_none_or(|root| !root.starts_with(tmp.path())));
|
|
460
|
+
}
|
|
461
|
+
}
|
|
@@ -183,8 +183,9 @@ impl FileFilter {
|
|
|
183
183
|
.any(|character| matches!(character, '*' | '?' | '[' | '{'));
|
|
184
184
|
if pattern.is_empty()
|
|
185
185
|
|| (is_valid_glob && glob_match(pattern, file_name.to_string_lossy().as_ref()))
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
// a plain path matches itself and anything inside it,
|
|
187
|
+
// whether or not it exists relative to the working directory
|
|
188
|
+
|| (!is_glob && file_name.starts_with(&pat))
|
|
188
189
|
|| (is_glob
|
|
189
190
|
&& file_name.ancestors().any(|a| {
|
|
190
191
|
!a.as_os_str().is_empty()
|
|
@@ -459,6 +460,35 @@ mod tests {
|
|
|
459
460
|
assert!(file_filter.is_file_not_ignored(&PathBuf::from("./src/lib.rs")));
|
|
460
461
|
}
|
|
461
462
|
|
|
463
|
+
#[test]
|
|
464
|
+
fn ignore_plain_dir_not_in_cwd() {
|
|
465
|
+
// The paths do not exist relative to the working directory, as when the
|
|
466
|
+
// checked files are relative to a sub-folder of it.
|
|
467
|
+
let file_filter = setup_ignore("src/path/to|build|!lib/file.cpp", &[]);
|
|
468
|
+
assert!(file_filter.is_file_ignored(&PathBuf::from("src/path/to/file.cpp")));
|
|
469
|
+
assert!(file_filter.is_file_ignored(&PathBuf::from("src/path/to/another/file.cpp")));
|
|
470
|
+
assert!(file_filter.is_file_ignored(&PathBuf::from("./build/gen.cpp")));
|
|
471
|
+
assert!(file_filter.is_file_ignored(&PathBuf::from("build")));
|
|
472
|
+
assert!(file_filter.is_file_not_ignored(&PathBuf::from("lib/file.cpp")));
|
|
473
|
+
|
|
474
|
+
// A plain path only matches whole path components from the start.
|
|
475
|
+
assert!(!file_filter.is_file_ignored(&PathBuf::from("src/build/gen.cpp")));
|
|
476
|
+
assert!(!file_filter.is_file_ignored(&PathBuf::from("builder/gen.cpp")));
|
|
477
|
+
assert!(!file_filter.is_file_ignored(&PathBuf::from("src/path/toolbox.cpp")));
|
|
478
|
+
assert!(!file_filter.is_file_not_ignored(&PathBuf::from("lib/file.cpp.bak")));
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
#[test]
|
|
482
|
+
fn ignore_glob_not_as_plain_path() {
|
|
483
|
+
// A glob is only matched as a glob, not as a plain path prefix.
|
|
484
|
+
let file_filter = setup_ignore("ca[rt]", &[]);
|
|
485
|
+
assert!(file_filter.is_file_ignored(&PathBuf::from("car/file.cpp")));
|
|
486
|
+
assert!(file_filter.is_file_ignored(&PathBuf::from("cat")));
|
|
487
|
+
assert!(!file_filter.is_file_ignored(&PathBuf::from("ca[rt]/file.cpp")));
|
|
488
|
+
assert!(!file_filter.is_file_ignored(&PathBuf::from("ca[rt]")));
|
|
489
|
+
assert!(!file_filter.is_file_ignored(&PathBuf::from("cab/file.cpp")));
|
|
490
|
+
}
|
|
491
|
+
|
|
462
492
|
#[test]
|
|
463
493
|
fn ignore_glob() {
|
|
464
494
|
let file_filter = setup_ignore("!src/**/*", &[]);
|
|
@@ -497,16 +527,16 @@ mod tests {
|
|
|
497
527
|
file_filter.parse_submodules(None);
|
|
498
528
|
println!("submodules ignored = {:?}", file_filter.ignored);
|
|
499
529
|
|
|
500
|
-
//
|
|
530
|
+
// The submodules' folders don't exist here,
|
|
531
|
+
// but the files in them are still matched by the submodules' paths.
|
|
501
532
|
for ignored_submodule in ["RF24", "RF24Network", "RF24Mesh"] {
|
|
502
533
|
assert!(file_filter.ignored.contains(ignored_submodule));
|
|
503
534
|
assert!(
|
|
504
|
-
|
|
505
|
-
.is_file_ignored(&PathBuf::from(ignored_submodule).join("some_src.cpp"))
|
|
535
|
+
file_filter.is_file_ignored(&PathBuf::from(ignored_submodule).join("some_src.cpp"))
|
|
506
536
|
);
|
|
507
537
|
}
|
|
508
538
|
assert!(file_filter.not_ignored.contains("pybind11"));
|
|
509
|
-
assert!(
|
|
539
|
+
assert!(file_filter.is_file_not_ignored(&PathBuf::from("pybind11/some_src.cpp")));
|
|
510
540
|
}
|
|
511
541
|
|
|
512
542
|
// *********************** tests for recursive path search
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
version = 1
|
|
2
|
-
revision =
|
|
2
|
+
revision = 5
|
|
3
3
|
requires-python = ">=3.10"
|
|
4
4
|
resolution-markers = [
|
|
5
5
|
"python_full_version >= '3.12'",
|
|
@@ -58,11 +58,11 @@ wheels = [
|
|
|
58
58
|
|
|
59
59
|
[[package]]
|
|
60
60
|
name = "certifi"
|
|
61
|
-
version = "2026.
|
|
61
|
+
version = "2026.10.19"
|
|
62
62
|
source = { registry = "https://pypi.org/simple" }
|
|
63
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
63
|
+
sdist = { url = "https://files.pythonhosted.org/packages/a6/bd/1436c50cc46699de0230fbaacc1d1de7bfec413176099949e9d5112e88f2/certifi-2026.10.19.tar.gz", hash = "sha256:035c1e85572b141bf1c3a3eff0e33a8eb74917522f2559075ff8d2fea780a1ae", size = 137598, upload-time = "2026-10-20T02:24:16.604Z" }
|
|
64
64
|
wheels = [
|
|
65
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
65
|
+
{ url = "https://files.pythonhosted.org/packages/c4/51/29046e48f693c54e5b7412216d447a1d8362c9653148d98c02cdf65fa733/certifi-2026.10.19-py3-none-any.whl", hash = "sha256:42d35340cc5b9ba78e818ddbff0c5b1c2b779de448a340fd1b989f5fa8670e1b", size = 136464, upload-time = "2026-10-20T02:24:15.072Z" },
|
|
66
66
|
]
|
|
67
67
|
|
|
68
68
|
[[package]]
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
<!-- markdownlint-disable MD024 -->
|
|
8
|
-
|
|
9
|
-
## [git-bot-feedback/v0.8.7] - 2026-10-20
|
|
10
|
-
|
|
11
|
-
### <!-- 1 --> 🚀 Added
|
|
12
|
-
|
|
13
|
-
- Implement GitHub client by @2bndy5 in [#1](https://github.com/2bndy5/git-bot-feedback/pull/1)
|
|
14
|
-
- List file changes by @2bndy5 in [#11](https://github.com/2bndy5/git-bot-feedback/pull/11)
|
|
15
|
-
- Allow custom base for local diff by @2bndy5 in [#30](https://github.com/2bndy5/git-bot-feedback/pull/30)
|
|
16
|
-
- Propagate more errors to user for adequate handling by @2bndy5 in [#31](https://github.com/2bndy5/git-bot-feedback/pull/31)
|
|
17
|
-
- Use helper functions to reduce error handling code by @2bndy5 in [#33](https://github.com/2bndy5/git-bot-feedback/pull/33)
|
|
18
|
-
- Comprehensive output variable validation by @2bndy5 in [#35](https://github.com/2bndy5/git-bot-feedback/pull/35)
|
|
19
|
-
- Support file annotations by @2bndy5 in [#37](https://github.com/2bndy5/git-bot-feedback/pull/37)
|
|
20
|
-
- Support PR reviews by @2bndy5 in [#34](https://github.com/2bndy5/git-bot-feedback/pull/34)
|
|
21
|
-
- Expose `debug_enabled` and `event_name` by @2bndy5 in [#60](https://github.com/2bndy5/git-bot-feedback/pull/60)
|
|
22
|
-
- Implement Display for LinesChangedOnly by @2bndy5 in [#59](https://github.com/2bndy5/git-bot-feedback/pull/59)
|
|
23
|
-
- Add `init_client()` and `LocalClient` by @2bndy5 in [#61](https://github.com/2bndy5/git-bot-feedback/pull/61)
|
|
24
|
-
- Allow custom user-agent header value by @2bndy5 in [#62](https://github.com/2bndy5/git-bot-feedback/pull/62)
|
|
25
|
-
- Revise `FileFilter::walk_dir()` by @2bndy5 in [#78](https://github.com/2bndy5/git-bot-feedback/pull/78)
|
|
26
|
-
- Strip parent path from `walk_dir()` results by @2bndy5 in [#83](https://github.com/2bndy5/git-bot-feedback/pull/83)
|
|
27
|
-
- Add python bindings by @2bndy5 in [#90](https://github.com/2bndy5/git-bot-feedback/pull/90)
|
|
28
|
-
- Add Gitea support by @2bndy5 in [#94](https://github.com/2bndy5/git-bot-feedback/pull/94)
|
|
29
|
-
- Log link to view step summary by @Copilot in [#125](https://github.com/2bndy5/git-bot-feedback/pull/125)
|
|
30
|
-
|
|
31
|
-
### <!-- 10 --> 💥 Breaking Changes
|
|
32
|
-
|
|
33
|
-
- Rename `FileFilter::is_not_ignored()` to `is_qualified()` by @2bndy5 in [#57](https://github.com/2bndy5/git-bot-feedback/pull/57)
|
|
34
|
-
|
|
35
|
-
### <!-- 4 --> 🛠️ Fixed
|
|
36
|
-
|
|
37
|
-
- Use synchronous `std::{fs, process::Command}` by @2bndy5 in [#29](https://github.com/2bndy5/git-bot-feedback/pull/29)
|
|
38
|
-
- Make `RestApiClient` a dyn-compatible async trait by @2bndy5 in [#36](https://github.com/2bndy5/git-bot-feedback/pull/36)
|
|
39
|
-
- Remove `async` from non-async functions by @2bndy5 in [#58](https://github.com/2bndy5/git-bot-feedback/pull/58)
|
|
40
|
-
- Use stricter linting rules by @2bndy5 in [#63](https://github.com/2bndy5/git-bot-feedback/pull/63)
|
|
41
|
-
- Write only 1 LF for GH output vars by @2bndy5 in [`7add27b`](https://github.com/2bndy5/git-bot-feedback/commit/7add27b0637d65e2741e05eb55e3e3e712f46236)
|
|
42
|
-
- Honor `ignore_index` when asserted by @2bndy5 in [#75](https://github.com/2bndy5/git-bot-feedback/pull/75)
|
|
43
|
-
- Strip relative path from `FileFilter::walk_dir()` results by @2bndy5 in [#84](https://github.com/2bndy5/git-bot-feedback/pull/84)
|
|
44
|
-
- Use correct name of PR review state that is "COMMENTED" by @2bndy5 in [#89](https://github.com/2bndy5/git-bot-feedback/pull/89)
|
|
45
|
-
- Fail on unsuccessful return code from request for file changes by @2bndy5 in [#95](https://github.com/2bndy5/git-bot-feedback/pull/95)
|
|
46
|
-
- Trim line endings from file names when parsing diff strings by @2bndy5 in [#97](https://github.com/2bndy5/git-bot-feedback/pull/97)
|
|
47
|
-
- Fail on parsing erroneous diff by @2bndy5 in [#98](https://github.com/2bndy5/git-bot-feedback/pull/98)
|
|
48
|
-
- Move option's value instead of cloning it by @2bndy5 in [#99](https://github.com/2bndy5/git-bot-feedback/pull/99)
|
|
49
|
-
- Output only diff using `git show` by @2bndy5 in [#102](https://github.com/2bndy5/git-bot-feedback/pull/102)
|
|
50
|
-
- Improve Github client's `get_list_of_changed_files()` by @2bndy5 in [#123](https://github.com/2bndy5/git-bot-feedback/pull/123)
|
|
51
|
-
- Match descendants of a given glob pattern by @2bndy5 in [#132](https://github.com/2bndy5/git-bot-feedback/pull/132)
|
|
52
|
-
- Ensure `GITHUB_API_URL` ends with a `/` by @2bndy5 in [#140](https://github.com/2bndy5/git-bot-feedback/pull/140)
|
|
53
|
-
- Conditionally prepend marker to PR review summary by @2bndy5 in [#139](https://github.com/2bndy5/git-bot-feedback/pull/139)
|
|
54
|
-
- Conditionally prepend marker to Gitea PR review summary by @2bndy5 in [#141](https://github.com/2bndy5/git-bot-feedback/pull/141)
|
|
55
|
-
|
|
56
|
-
### <!-- 8 --> 📝 Documentation
|
|
57
|
-
|
|
58
|
-
- Expand on some methods' doc comments by @2bndy5 in [#96](https://github.com/2bndy5/git-bot-feedback/pull/96)
|
|
59
|
-
|
|
60
|
-
### <!-- 9 --> 🗨️ Changed
|
|
61
|
-
|
|
62
|
-
- Revise `FileAnnotations` impl by @2bndy5 in [#64](https://github.com/2bndy5/git-bot-feedback/pull/64)
|
|
63
|
-
|
|
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
|
-
|
|
66
|
-
Full commit diff: [`git-bot-feedback/v0.8.6...git-bot-feedback/v0.8.7`][git-bot-feedback/v0.8.7]
|
|
67
|
-
|
|
68
|
-
## New Contributors
|
|
69
|
-
|
|
70
|
-
- @Copilot made their first contribution in [#125](https://github.com/2bndy5/git-bot-feedback/pull/125)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<!-- generated by git-cliff -->
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|