@@ -202,22 +202,20 @@ def test_post_build_overview(self, get_diff, post_comment):
202
202
post_build_overview (build_pk = self .current_version_build .pk )
203
203
expected_comment = dedent (
204
204
f"""
205
- ## Documentation build overview
205
+ ### Documentation build overview
206
206
207
- > 📚 [My project](https://readthedocs.org/projects/my-project/) | 🛠️ build [#{ self .current_version_build .id } ](https://readthedocs.org/projects/my-project/builds/{ self .current_version_build .id } /) (5678abcd) | 🔍 [preview ](http://my-project--1 .readthedocs.build /en/1/ )
207
+ > 📚 [My project](https://readthedocs.org/projects/my-project/) | 🛠️ Build [#{ self .current_version_build .id } ](https://readthedocs.org/projects/my-project/builds/{ self .current_version_build .id } /) | 📁 Comparing 5678abcd against [latest ](http://my-project.readthedocs.io /en/latest/) (1234abcd )
208
208
209
- ### Files changed
210
-
211
- > Comparing with [latest](http://my-project.readthedocs.io/en/latest/) (1234abcd...5678abcd)
209
+ [<kbd><br />🔍 Preview build <br /></kbd>](http://my-project--1.readthedocs.build/en/1/)
212
210
213
211
214
212
<details>
215
- <summary>Show files (3) | 1 modified | 1 added | 1 deleted</summary>
213
+ <summary>Show files changed (3 files in total): 📝 1 modified | ➕ 1 added | ➖ 1 deleted</summary>
216
214
217
215
| File | Status |
218
216
| --- | --- |
219
217
| [changes.html](http://my-project--1.readthedocs.build/en/1/changes.html) | ➕ added |
220
- | [deleteme.html](http://my-project--1.readthedocs.build/en/1/deleteme.html) | ❌ deleted |
218
+ | [deleteme.html](http://my-project--1.readthedocs.build/en/1/deleteme.html) | ➖ deleted |
221
219
| [index.html](http://my-project--1.readthedocs.build/en/1/index.html) | 📝 modified |
222
220
223
221
@@ -252,22 +250,20 @@ def test_post_build_overview_more_than_5_files(self, get_diff, post_comment):
252
250
post_build_overview (build_pk = self .current_version_build .pk )
253
251
expected_comment = dedent (
254
252
f"""
255
- ## Documentation build overview
256
-
257
- > 📚 [My project](https://readthedocs.org/projects/my-project/) | 🛠️ build [#{ self .current_version_build .id } ](https://readthedocs.org/projects/my-project/builds/{ self .current_version_build .id } /) (5678abcd) | 🔍 [preview](http://my-project--1.readthedocs.build/en/1/)
253
+ ### Documentation build overview
258
254
259
- ### Files changed
255
+ > 📚 [My project](https://readthedocs.org/projects/my-project/) | 🛠️ Build [# { self . current_version_build . id } ](https://readthedocs.org/projects/my-project/builds/ { self . current_version_build . id } /) | 📁 Comparing 5678abcd against [latest](http://my-project.readthedocs.io/en/latest/) (1234abcd)
260
256
261
- > Comparing with [latest ](http://my-project.readthedocs.io /en/latest/) (1234abcd...5678abcd )
257
+ [<kbd><br />🔍 Preview build <br /></kbd> ](http://my-project--1 .readthedocs.build /en/1/ )
262
258
263
259
264
260
<details>
265
- <summary>Show files (6) | 4 modified | 1 added | 1 deleted</summary>
261
+ <summary>Show files changed (6 files in total): 📝 4 modified | ➕ 1 added | ➖ 1 deleted</summary>
266
262
267
263
| File | Status |
268
264
| --- | --- |
269
265
| [changes.html](http://my-project--1.readthedocs.build/en/1/changes.html) | ➕ added |
270
- | [deleteme.html](http://my-project--1.readthedocs.build/en/1/deleteme.html) | ❌ deleted |
266
+ | [deleteme.html](http://my-project--1.readthedocs.build/en/1/deleteme.html) | ➖ deleted |
271
267
| [index.html](http://my-project--1.readthedocs.build/en/1/index.html) | 📝 modified |
272
268
| [one.html](http://my-project--1.readthedocs.build/en/1/one.html) | 📝 modified |
273
269
| [three.html](http://my-project--1.readthedocs.build/en/1/three.html) | 📝 modified |
@@ -278,6 +274,7 @@ def test_post_build_overview_more_than_5_files(self, get_diff, post_comment):
278
274
279
275
"""
280
276
)
277
+
281
278
post_comment .assert_called_once_with (
282
279
build = self .current_version_build ,
283
280
comment = expected_comment ,
@@ -298,19 +295,18 @@ def test_post_build_overview_no_files_changed(self, get_diff, post_comment):
298
295
post_build_overview (build_pk = self .current_version_build .pk )
299
296
expected_comment = dedent (
300
297
f"""
301
- ## Documentation build overview
298
+ ### Documentation build overview
302
299
303
- > 📚 [My project](https://readthedocs.org/projects/my-project/) | 🛠️ build [#{ self .current_version_build .id } ](https://readthedocs.org/projects/my-project/builds/{ self .current_version_build .id } /) (5678abcd) | 🔍 [preview ](http://my-project--1 .readthedocs.build /en/1/ )
300
+ > 📚 [My project](https://readthedocs.org/projects/my-project/) | 🛠️ Build [#{ self .current_version_build .id } ](https://readthedocs.org/projects/my-project/builds/{ self .current_version_build .id } /) | 📁 Comparing 5678abcd against [latest ](http://my-project.readthedocs.io /en/latest/) (1234abcd )
304
301
305
- ### Files changed
306
-
307
- > Comparing with [latest](http://my-project.readthedocs.io/en/latest/) (1234abcd...5678abcd)
302
+ [<kbd><br />🔍 Preview build <br /></kbd>](http://my-project--1.readthedocs.build/en/1/)
308
303
309
304
310
305
No files changed.
311
306
312
307
"""
313
308
)
309
+
314
310
post_comment .assert_called_once_with (
315
311
build = self .current_version_build ,
316
312
comment = expected_comment ,
0 commit comments