👌 add bugfix todo

This commit is contained in:
yanyongyu 2021-09-02 01:28:12 +08:00
parent 35c20d28aa
commit eeadf3f151
2 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,7 @@
@Author : yanyongyu
@Date : 2021-05-14 17:09:12
@LastEditors : yanyongyu
@LastEditTime : 2021-06-15 22:12:28
@LastEditTime : 2021-09-02 01:27:11
@Description : None
@GitHub : https://github.com/yanyongyu
"""
@ -76,6 +76,9 @@ env.filters["debug_event"] = debug_event
env.filters["find_dismissed_review"] = find_dismissed_review
#! FIXME
# pr status merged can only be found in timeline events
# or using api: `/repos/{owner}/{repo}/pulls/{pull_number}/merge`
async def issue_to_html(owner: str, repo_name: str, issue: Issue) -> str:
template = env.get_template("issue.html")
async with issue:

View File

@ -2,7 +2,7 @@
* @Author : yanyongyu
* @Date : 2021-05-17 10:03:08
* @LastEditors : yanyongyu
* @LastEditTime : 2021-05-25 21:00:17
* @LastEditTime : 2021-09-02 01:27:43
* @Description : None
* @GitHub : https://github.com/yanyongyu
-->
@ -31,6 +31,7 @@
"
>
<div class="flex-shrink-0 mb-2 flex-self-start flex-md-self-center">
<!-- FIXME: pr status check -->
<!-- prettier-ignore -->
{% if timeline|selectattr("event", "equalto", "merged")|list|length >= 1 %}
{% set state = "merged" %}