imsun / gitment

A comment system based on GitHub Issues.
https://imsun.github.io/gitment/
MIT License
4.06k stars 346 forks source link

Gitment 对于新页面不会创建新的 issue #182

Open weihuayi opened 5 years ago

weihuayi commented 5 years ago

我在每一个页面中放入下面的代码:

<script>
var gitment = new Gitment({
  id: 'window.location.pathname', // 可选。默认为 location.href
  owner: 'xxxxxxxx',
  repo: 'xxxxxxxxxx',
  oauth: {
    client_id: '××××××××××××',
    client_secret: 'xxxxxxxxxxxxxxxxxxxxx',
  },
})

结果创建几个页面的 issue 后, 新的页面再加入上面的代码,就不会再创建新的 issue, 就直接用其它页面的 issue. 哪位遇到过类似的情况?如何解决?

carvendy commented 5 years ago

你检查一下id是否重复了