emoji-to-issue
The fastest way to create GitHub issues on your phone.
Add emoji reactions to messages on Slack and it creates an GitHub issue for you.
If you don't make it an issue, you'll forget it. Don't miss problems of your product.
This module helps you to accelerate product development process, especially when you're dog-fooding.
usage
Add an emoji reaction:
Then, the issue is made:
setup
In your package.json
:
"dependencies": {
"emoji-to-issue": "uiur/emoji-to-issue#master",
Then:
npm install
configure slack emoji
https://slack.com/customize/emoji
Add custom emoji with names such as :issue:
or :issue-assign-uiur:
.
Use alias if you want short one like: :uiu: -> :issue-assign-uiur:
This emoji generator is useful: https://emoji-gen.ninja/
write some code
Following api tokens are required:
Set those tokens via environment variables or pass it to the arguments.
const { ReactionHandler } = require('emoji-to-issue')
handler = new ReactionHandler({
issueRepo: 'hello-ai/sandbox',
reactionName: ['bug'],
slackToken: 'bot token',
githubToken: 'github token'
})
if (handler.match(event)) {
handler
.handle(event)
.then(() => {
console.log('ok')
})
.catch(err => {
console.error(err)
})
}