Skip to content

Commit b4438a5

Browse files
authored
fix: 修复历史测试链接缺少引号的问题 (#410)
1 parent 8b10b89 commit b4438a5

8 files changed

Lines changed: 32 additions & 31 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/
1010
### Fixed
1111

1212
- 修复机器人/适配器发布时没有历史测试的问题
13+
- 修复历史测试链接缺少引号的问题
1314

1415
## [4.4.0] - 2025-06-17
1516

src/plugins/github/plugins/publish/templates/comment.md.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<summary>历史测试</summary>
3737
<pre><code>
3838
{%- for status, action_url, time in history%}
39-
<li>{{"✅" if status else "⚠️"}} <a href={{action_url}}>{{time|format_datetime}}</a></li>
39+
<li>{{"✅" if status else "⚠️"}} <a href="{{action_url}}">{{time|format_datetime}}</a></li>
4040
{%- endfor %}
4141
</code></pre>
4242
</details>

tests/plugins/github/config/process/test_config_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ async def test_process_config_check(
172172
</details>
173173
<details>
174174
<summary>历史测试</summary>
175-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
175+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
176176
</details>
177177
178178
---

tests/plugins/github/publish/process/test_publish_check.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async def test_bot_process_publish_check(
102102
</details>
103103
<details>
104104
<summary>历史测试</summary>
105-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
105+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
106106
</details>
107107
108108
---
@@ -265,7 +265,7 @@ async def test_adapter_process_publish_check(
265265
</details>
266266
<details>
267267
<summary>历史测试</summary>
268-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
268+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
269269
</details>
270270
271271
---
@@ -447,7 +447,7 @@ async def test_edit_title(
447447
</details>
448448
<details>
449449
<summary>历史测试</summary>
450-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
450+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
451451
</details>
452452
453453
---
@@ -641,7 +641,7 @@ async def test_edit_title_too_long(
641641
</details>
642642
<details>
643643
<summary>历史测试</summary>
644-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
644+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
645645
</details>
646646
647647
---
@@ -775,7 +775,7 @@ async def test_process_publish_check_not_pass(
775775
</details>
776776
<details>
777777
<summary>历史测试</summary>
778-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
778+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
779779
</details>
780780
781781
---
@@ -1006,7 +1006,7 @@ async def test_convert_pull_request_to_draft(
10061006
</details>
10071007
<details>
10081008
<summary>历史测试</summary>
1009-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
1009+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
10101010
</details>
10111011
10121012
---
@@ -1143,7 +1143,7 @@ async def test_process_publish_check_ready_for_review(
11431143
</details>
11441144
<details>
11451145
<summary>历史测试</summary>
1146-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
1146+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
11471147
</details>
11481148
11491149
---
@@ -1332,7 +1332,7 @@ async def test_comment_immediate_after_pull_request_closed(
13321332
</details>
13331333
<details>
13341334
<summary>历史测试</summary>
1335-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
1335+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
13361336
</details>
13371337
13381338
---

tests/plugins/github/publish/process/test_publish_check_plugin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ async def test_plugin_process_publish_check(
203203
</details>
204204
<details>
205205
<summary>历史测试</summary>
206-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
206+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
207207
</details>
208208
209209
---
@@ -469,7 +469,7 @@ async def test_plugin_process_publish_check_re_run(
469469
</details>
470470
<details>
471471
<summary>历史测试</summary>
472-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
472+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
473473
</details>
474474
475475
---
@@ -720,7 +720,7 @@ async def test_plugin_process_publish_check_missing_metadata(
720720
</details>
721721
<details>
722722
<summary>历史测试</summary>
723-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
723+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
724724
</details>
725725
726726
---
@@ -979,7 +979,7 @@ async def test_skip_plugin_check(
979979
</details>
980980
<details>
981981
<summary>历史测试</summary>
982-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
982+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
983983
</details>
984984
985985
---

tests/plugins/github/publish/render/test_publish_render.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async def test_render_empty(app: App):
2929
3030
<details>
3131
<summary>历史测试</summary>
32-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
32+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
3333
</details>
3434
3535
---
@@ -67,7 +67,7 @@ async def test_render_reuse(app: App):
6767
6868
<details>
6969
<summary>历史测试</summary>
70-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
70+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
7171
</details>
7272
7373
---
@@ -175,7 +175,7 @@ async def test_render_history(app: App):
175175
</details>
176176
<details>
177177
<summary>历史测试</summary>
178-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li><li>✅ <a href=https://github.com/nonebot/nonebot2/actions/runs/14156878708>2020-10-10 12:00:18 CST</a></li><li>⚠️ <a href=https://github.com/nonebot/nonebot2/actions/runs/14156878707>2020-10-09 12:00:18 CST</a></li><li>✅ <a href=https://github.com/nonebot/nonebot2/actions/runs/14156878706>2020-10-08 12:00:18 CST</a></li><li>⚠️ <a href=https://github.com/nonebot/nonebot2/actions/runs/14156878705>2020-10-07 12:00:18 CST</a></li><li>✅ <a href=https://github.com/nonebot/nonebot2/actions/runs/14156878704>2020-10-06 12:00:18 CST</a></li><li>⚠️ <a href=https://github.com/nonebot/nonebot2/actions/runs/14156878703>2020-10-05 12:00:18 CST</a></li><li>✅ <a href=https://github.com/nonebot/nonebot2/actions/runs/14156878702>2020-10-04 12:00:18 CST</a></li><li>✅ <a href=https://github.com/nonebot/nonebot2/actions/runs/14156878701>2020-10-03 12:00:18 CST</a></li><li>⚠️ <a href=https://github.com/nonebot/nonebot2/actions/runs/14156878700>2020-10-02 12:00:18 CST</a></li></code></pre>
178+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li><li>✅ <a href="https://github.com/nonebot/nonebot2/actions/runs/14156878708">2020-10-10 12:00:18 CST</a></li><li>⚠️ <a href="https://github.com/nonebot/nonebot2/actions/runs/14156878707">2020-10-09 12:00:18 CST</a></li><li>✅ <a href="https://github.com/nonebot/nonebot2/actions/runs/14156878706">2020-10-08 12:00:18 CST</a></li><li>⚠️ <a href="https://github.com/nonebot/nonebot2/actions/runs/14156878705">2020-10-07 12:00:18 CST</a></li><li>✅ <a href="https://github.com/nonebot/nonebot2/actions/runs/14156878704">2020-10-06 12:00:18 CST</a></li><li>⚠️ <a href="https://github.com/nonebot/nonebot2/actions/runs/14156878703">2020-10-05 12:00:18 CST</a></li><li>✅ <a href="https://github.com/nonebot/nonebot2/actions/runs/14156878702">2020-10-04 12:00:18 CST</a></li><li>✅ <a href="https://github.com/nonebot/nonebot2/actions/runs/14156878701">2020-10-03 12:00:18 CST</a></li><li>⚠️ <a href="https://github.com/nonebot/nonebot2/actions/runs/14156878700">2020-10-02 12:00:18 CST</a></li></code></pre>
179179
</details>
180180
181181
---

tests/plugins/github/publish/render/test_publish_render_data.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async def test_render_data_bot(app: App):
4545
</details>
4646
<details>
4747
<summary>历史测试</summary>
48-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
48+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
4949
</details>
5050
5151
---
@@ -97,7 +97,7 @@ async def test_render_data_bot(app: App):
9797
</details>
9898
<details>
9999
<summary>历史测试</summary>
100-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
100+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
101101
</details>
102102
103103
---
@@ -156,7 +156,7 @@ async def test_render_data_adapter(app: App):
156156
</details>
157157
<details>
158158
<summary>历史测试</summary>
159-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
159+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
160160
</details>
161161
162162
---
@@ -219,7 +219,7 @@ async def test_render_data_plugin(app: App, mocker: MockFixture):
219219
</details>
220220
<details>
221221
<summary>历史测试</summary>
222-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
222+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
223223
</details>
224224
225225
---
@@ -276,7 +276,7 @@ async def test_render_data_plugin_supported_adapters(app: App, mocker: MockFixtu
276276
</details>
277277
<details>
278278
<summary>历史测试</summary>
279-
<pre><code><li>✅ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
279+
<pre><code><li>✅ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
280280
</details>
281281
282282
---

tests/plugins/github/publish/render/test_publish_render_error.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def test_render_error_bot(app: App):
6060
6161
<details>
6262
<summary>历史测试</summary>
63-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
63+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
6464
</details>
6565
6666
---
@@ -151,7 +151,7 @@ async def test_render_error_adapter(app: App):
151151
</details>
152152
<details>
153153
<summary>历史测试</summary>
154-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
154+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
155155
</details>
156156
157157
---
@@ -251,7 +251,7 @@ async def test_render_error_plugin(app: App, mocker: MockFixture):
251251
</details>
252252
<details>
253253
<summary>历史测试</summary>
254-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
254+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
255255
</details>
256256
257257
---
@@ -324,7 +324,7 @@ async def test_render_error_plugin_load_test(app: App):
324324
</details>
325325
<details>
326326
<summary>历史测试</summary>
327-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
327+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
328328
</details>
329329
330330
---
@@ -387,7 +387,7 @@ async def test_render_error_plugin_metadata(app: App, mocker: MockFixture):
387387
</details>
388388
<details>
389389
<summary>历史测试</summary>
390-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
390+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
391391
</details>
392392
393393
---
@@ -461,7 +461,7 @@ async def test_render_error_tags_invalid(app: App, mocker: MockFixture):
461461
</details>
462462
<details>
463463
<summary>历史测试</summary>
464-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
464+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
465465
</details>
466466
467467
---
@@ -536,7 +536,7 @@ async def test_render_type_error(app: App, mocker: MockFixture):
536536
</details>
537537
<details>
538538
<summary>历史测试</summary>
539-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
539+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
540540
</details>
541541
542542
---
@@ -598,7 +598,7 @@ async def test_render_unknown_error(app: App, mocker: MockFixture):
598598
</details>
599599
<details>
600600
<summary>历史测试</summary>
601-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
601+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
602602
</details>
603603
604604
---
@@ -671,7 +671,7 @@ async def test_render_http_error(app: App, mocker: MockFixture):
671671
</details>
672672
<details>
673673
<summary>历史测试</summary>
674-
<pre><code><li>⚠️ <a href=https://github.com/owner/repo/actions/runs/123456>2023-08-23 09:22:14 CST</a></li></code></pre>
674+
<pre><code><li>⚠️ <a href="https://github.com/owner/repo/actions/runs/123456">2023-08-23 09:22:14 CST</a></li></code></pre>
675675
</details>
676676
677677
---

0 commit comments

Comments
 (0)