Comment on a pull request/issue on GitHub
npm install github-comment
In your code:
const comment = require('github-comment')
// comment(token, repo, issueId, body)
comment('secret_github_token', 'siddharthkp/github-comment', 1, 'this is a comment')
.then(response => console.log(response))
.catch(error => console.log(error))
you can create a personal access token on GitHub here
⭐ this repo
MIT © siddharthkp