From fe2daed70d45fbe998c9fbc64f2c66c6cac59115 Mon Sep 17 00:00:00 2001 From: Baba Kamyljanov Date: Fri, 1 Nov 2024 13:58:04 +0800 Subject: [PATCH] added new env variable to separate staging and prod discussions --- .env.template | 1 + .github/workflows/template-build.yml | 1 + src/components/discussion/discussion.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.template b/.env.template index 7d0d60a22..4e1d7f380 100644 --- a/.env.template +++ b/.env.template @@ -17,5 +17,6 @@ GITHUB_REPO=#{GITHUB_REPO} GATSBY_ALGOLIA_APP_ID=#{GATSBY_ALGOLIA_APP_ID} GATSBY_ALGOLIA_SEARCH_KEY=#{GATSBY_ALGOLIA_SEARCH_KEY} ALGOLIA_ADMIN_KEY=#{ALGOLIA_ADMIN_KEY} +GISCUS_REPO_NAME=#{GISCUS_REPO_NAME} GISCUS_REPO_ID=#{GISCUS_REPO_ID} GISCUS_CATEGORY_ID=#{GISCUS_CATEGORY_ID} \ No newline at end of file diff --git a/.github/workflows/template-build.yml b/.github/workflows/template-build.yml index 86e14b74f..e0636fd94 100644 --- a/.github/workflows/template-build.yml +++ b/.github/workflows/template-build.yml @@ -129,6 +129,7 @@ jobs: GATSBY_ALGOLIA_APP_ID: ${{ vars.GATSBY_ALGOLIA_APP_ID }} GATSBY_ALGOLIA_SEARCH_KEY: ${{ secrets.GATSBY_ALGOLIA_SEARCH_KEY }} ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }} + GISCUS_REPO_NAME: ${{ secrets.GISCUS_REPO_NAME }} GISCUS_REPO_ID: ${{ secrets.GISCUS_REPO_ID }} GISCUS_CATEGORY_ID: ${{ secrets.GISCUS_CATEGORY_ID }} diff --git a/src/components/discussion/discussion.js b/src/components/discussion/discussion.js index 3299a7f47..207535625 100644 --- a/src/components/discussion/discussion.js +++ b/src/components/discussion/discussion.js @@ -8,7 +8,7 @@ const Discussion = (props) => {

✨ Giscus comments