utterance / utterances

:crystal_ball: A lightweight comments widget built on GitHub issues
https://utteranc.es
MIT License
8.66k stars 567 forks source link

[Feature] Config api.github.com for query data #648

Open liangyuanpeng opened 1 year ago

liangyuanpeng commented 1 year ago

I want the user can see the comment when they have not login. Also working for when they can not access api.github.com

https://api.github.com/repos/liangyuanpeng/liangyuanpeng.github.io/issues/86/comments?page=1&per_page=25

https://api.github.com/search/issues?q=%22%E7%94%A8kind%E6%90%AD%E5%BB%BAk8s%E9%9B%86%E7%BE%A4%E7%8E%AF%E5%A2%83-%E8%BF%9C%E9%B9%8F%E7%9A%84%E5%8D%9A%E5%AE%A2%20%7C%20liangyuanpeng%27s%20Blog%22%20type%3Aissue%20in%3Atitle%20repo%3Aliangyuanpeng%2Fliangyuanpeng.github.io&sort=created&order=asc

So i want to use my url replace api.github.com to search github issue and issue comments.

It would be great if the script have the config for api.github.com, like:

<script src="https://utteranc.es/client.js"
        ***searchapi="my.com"***
        repo="[ENTER REPO HERE]"
        issue-term="pathname"
        theme="github-light"
        crossorigin="anonymous"
        async>
</script>