Skip to content

Commit

Permalink
Added new env variable to separate staging and production discussions (
Browse files Browse the repository at this point in the history
…#1608)

added new env variable to separate staging and prod discussions
  • Loading branch information
babakamyljanovssw authored Nov 4, 2024
1 parent 5d287b1 commit 8c82d3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -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}
1 change: 1 addition & 0 deletions .github/workflows/template-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
2 changes: 1 addition & 1 deletion src/components/discussion/discussion.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Discussion = (props) => {
<h3>✨ Giscus comments</h3>
<Giscus
id="comments"
repo="SSWConsulting/SSW.Rules.Content"
repo={process.env.GISCUS_REPO_NAME}
repoId={process.env.GISCUS_REPO_ID}
categoryId={process.env.GISCUS_CATEGORY_ID}
mapping="specific"
Expand Down

0 comments on commit 8c82d3b

Please sign in to comment.