{"id":13826151,"url":"https://github.com/uiur/emoji-to-issue","last_synced_at":"2025-03-21T10:31:58.391Z","repository":{"id":42865240,"uuid":"201862570","full_name":"uiur/emoji-to-issue","owner":"uiur","description":"The fastest way to create GitHub issues on your phone. Add an emoji reaction on Slack and it creates an issue for you.","archived":false,"fork":false,"pushed_at":"2023-04-25T03:40:41.000Z","size":936,"stargazers_count":31,"open_issues_count":8,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T00:35:58.790Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uiur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-12T05:18:05.000Z","updated_at":"2023-09-07T06:43:41.000Z","dependencies_parsed_at":"2024-01-18T04:07:17.535Z","dependency_job_id":"94b7637f-0c84-45eb-b42d-de6d9b3125a6","html_url":"https://github.com/uiur/emoji-to-issue","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Femoji-to-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Femoji-to-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Femoji-to-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Femoji-to-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uiur","download_url":"https://codeload.github.com/uiur/emoji-to-issue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244777954,"owners_count":20508820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T09:01:32.913Z","updated_at":"2025-03-21T10:31:58.090Z","avatar_url":"https://github.com/uiur.png","language":"TypeScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# emoji-to-issue\n\nThe fastest way to create GitHub issues on your phone.\n\nAdd emoji reactions to messages on Slack and it creates an GitHub issue for you.\n\nIf you don't make it an issue, you'll forget it. Don't miss problems of your product.\nThis module helps you to accelerate product development process, especially when you're dog-fooding.\n\n## usage\n\nAdd an emoji reaction:\n\n![](https://i.gyazo.com/d18f953b3857dd5a2f84fcc347f46170.png)\n\nThen, the issue is made:\n![](https://i.gyazo.com/16499ff7e05e42a16895e1f46e6e76a3.png)\n\n## setup\n\nIn your `package.json`:\n\n```js\n\"dependencies\": {\n  \"emoji-to-issue\": \"uiur/emoji-to-issue#master\",\n```\n\nThen:\n\n```\nnpm install\n```\n\n### configure slack emoji\n\nhttps://slack.com/customize/emoji\n\nAdd custom emoji with names such as `:issue:` or `:issue-assign-uiur:`.\nUse alias if you want short one like: `:uiu: -\u003e :issue-assign-uiur:`\n\nThis emoji generator is useful: https://emoji-gen.ninja/\n\n### write some code\n\nFollowing api tokens are required:\n\n- `SLACK_TOKEN`\n  - slack bot token\n  - Bot User OAuth Access Token `https://api.slack.com/apps/~~/install-on-team`\n  - Enable Events and add subscription to `reaction added` events https://api.slack.com/apps/:app/event-subscriptions\n  - Permissions: `channels:history` `users:read` https://api.slack.com/apps/:app/oauth\n- `GITHUB_TOKEN`\n  - https://github.com/settings/tokens\n\nSet those tokens via environment variables or pass it to the arguments.\n\n```js\nconst { ReactionHandler } = require('emoji-to-issue')\n\nhandler = new ReactionHandler({\n  issueRepo: 'hello-ai/sandbox', // required\n  reactionName: ['bug'], // default: 'issue', 'issue-assign_:assignee' etc.\n  slackToken: 'bot token', // default: process.env.SLACK_TOKEN\n  githubToken: 'github token' // default: process.env.GITHUB_TOKEN\n})\n\n// event = {\n//   type: 'reaction_added',\n//   user: 'UB9T3UXU0',\n//   item: { type: 'message', channel: 'CGU971U2F', ts: '1565583510.003900' },\n//   reaction: 'issue',\n//   item_user: 'UB9T3UXU0',\n//   event_ts: '1565583513.004000'\n// }\n\nif (handler.match(event)) {\n  handler\n    .handle(event)\n    .then(() =\u003e {\n      console.log('ok')\n    })\n    .catch(err =\u003e {\n      console.error(err)\n    })\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiur%2Femoji-to-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuiur%2Femoji-to-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiur%2Femoji-to-issue/lists"}