From 989cbfef5eac6c39d20c3bededbf658098f6db44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=A1=93=E6=A1=93?= Date: Wed, 11 May 2022 19:44:44 +0800 Subject: [PATCH 1/2] feat: allows gitalk to support multi-admins --- layout/_partial/comment/gitalk.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/_partial/comment/gitalk.ejs b/layout/_partial/comment/gitalk.ejs index 2c5b73f..0d743ad 100644 --- a/layout/_partial/comment/gitalk.ejs +++ b/layout/_partial/comment/gitalk.ejs @@ -24,7 +24,7 @@ clientSecret: '<%= theme.comment.gitalk.client_secret %>', repo: '<%= theme.comment.gitalk.repository %>', owner: '<%= theme.comment.gitalk.github_id %>', - admin: ['<%= theme.comment.gitalk.github_id %>'], + admin: <% if (theme.comment.gitalk.github_admins) { %><%= theme.comment.gitalk.github_admins %><% } else { %>['<%= theme.comment.gitalk.github_id %>']<% } %>, id: __gitalk__pathname, language: '<%= config.language %>' }).render('gitalk-container'); From a226c99958a6afa1353414bb51452c6025a9f924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=A1=93=E6=A1=93?= Date: Wed, 11 May 2022 19:50:55 +0800 Subject: [PATCH 2/2] feat: add `github_admins` option in ex. config --- _config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/_config.yml b/_config.yml index c982f3b..9b47d2e 100644 --- a/_config.yml +++ b/_config.yml @@ -173,6 +173,7 @@ comment: # See: https://github.com/gitalk/gitalk gitalk: github_id: # GitHub repo owner + github_admins: # GitHub Admins (in Array type), optional. repository: # Repository name to store issues client_id: # GitHub Application Client ID client_secret: # GitHub Application Client Secret