私有仓库中未添加也未加载评论
作者: gustavosmanc创建于 2024年2月6日更新于 2026年6月15日
嘿,首先感谢这个项目和所完成的所有工作,它确实看起来很惊人。 我在使用 giscus 在私有仓库时遇到了一个问题。 当我尝试添加评论时,尽管正在创建讨论,但评论既没有添加,也没有加载(如果讨论已经有评论)。 当我打开网络选项卡时,可以在请求获取评论时找到一个错误: `{"error":"Discussion not found"}` 你有什么想法吗? 这是我加载脚本的方式: `<script src="https://giscus.app/client.js" data-repo="{{ site.giscus.data_repo }}" data-repo-id="{{ site.giscus.data_repo_id }}" data-category="General" data-category-id="{{ site.giscus.data_category_id }}" data-mapping="pathname" data-strict="0" data-reactions-enabled="1" data-emit-metadata="0" data-input-position="bottom" data-theme="dark" crossorigin="anonymous" async></script> **P.S.:** 我已经仔细检查过,脚本正在正确加载站点对象变量。 以前使用相同的配置时它一直都能正常工作,但最近几个月突然停止了工作。
内容来源: giscus/giscus