From b7d4048298eb849718d141af030dd99df5817a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E6=9E=ABGo?= Date: Wed, 7 Jul 2021 19:18:05 +0800 Subject: [PATCH] feat(comment/vssue): add parameter 'autoCreateIssue' (#258) It's default false --- exampleSite/config.yaml | 1 + layouts/partials/comments/provider/vssue.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index bf03343..578c574 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -67,6 +67,7 @@ params: repo: clientId: clientSecret: + autoCreateIssue: false # Waline client configuration see: https://waline.js.org/en/reference/client.html waline: diff --git a/layouts/partials/comments/provider/vssue.html b/layouts/partials/comments/provider/vssue.html index 7072778..0a9ea56 100644 --- a/layouts/partials/comments/provider/vssue.html +++ b/layouts/partials/comments/provider/vssue.html @@ -14,7 +14,7 @@ props: { title: "{{ $.Title }}", options: { - proxy: (url) => "https://cors-anywhere.azm.workers.dev/" + url, + autoCreateIssue: {{ default false .autoCreateIssue }}, owner: "{{ .owner }}", repo: "{{ .repo }}", clientId: "{{ .clientId }}",