The goal of add2gh is to use GitHub API with R. If you use Gitlab, use add2gl.
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("JiaxiangBU/add2gh")
library(add2gh)
library(add2gh)
collect_comments("https://github.com/JiaxiangBU/add2gh/issues/2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.