From bc748f2a78be38a1d7d93b344a7db0aef8574309 Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Thu, 25 Nov 2021 15:05:50 +0800 Subject: [PATCH] :alembic: add pull request draft --- .../github/libs/issue/templates/issue-header.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/plugins/github/libs/issue/templates/issue-header.html b/src/plugins/github/libs/issue/templates/issue-header.html index 37de33c..66a5aaf 100644 --- a/src/plugins/github/libs/issue/templates/issue-header.html +++ b/src/plugins/github/libs/issue/templates/issue-header.html @@ -2,7 +2,7 @@ * @Author : yanyongyu * @Date : 2021-05-17 10:03:08 * @LastEditors : yanyongyu - * @LastEditTime : 2021-09-12 02:03:33 + * @LastEditTime : 2021-11-25 15:05:21 * @Description : None * @GitHub : https://github.com/yanyongyu --> @@ -31,17 +31,18 @@ " >
- - {% if pull_request and pull_request.merged %} - {% set state = "merged" -%} + {% if pull_request and pull_request.merged -%} + {% set state = "merged" %} + {%- elif pull_request and pull_request.draft -%} + {% set state = "draft" %} {%- else -%} {% set state = issue.state %} {%- endif %} {% if state == "open" -%} - {% include "components/svg-closed.html" %} + {% include "components/svg-open.html" %} {%- elif state == "closed" -%} {% include "components/svg-closed.html" %} {%- elif state == "merged" -%}