• This repository has been archived on 21/Mar/2020
  • Stars
    star
    6
  • Rank 2,539,965 (Top 51 %)
  • Language
    JavaScript
  • Created about 6 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸš„ A Slack slash command for creating quickly a new issue on GitHub.

πŸš„ Issue Creator

WIPπŸ‘· A Slack slash command for creating quickly a new issue on GitHub.

▢️ Usage

Create a new issue on GitHub repository you set up when the "issue_creator" command executes on the Slack channel.

/issue_creator [issue title]

πŸ’Ύ Installation

Generate the GitHub Token

Move to New personal access token and create a token with repo scope.

Create the Slack slash command

  1. Move to Slack API: Applications | Slack and click to "Create New App".
  2. Input your application name and select your slack workspace for running the application.
  3. Select "Slash Commands" of the "Add features and functionality" section.
  4. Press the "Create New Command".
  5. Input Command, Request URL, Short Description and Usage Hint (Please refer to the list below).
  6. Press the "Save" button.
  7. Move to Slack API: Applications | Slack and select the application you created.
  8. Press the "Install App to Workspace" of the "Install your app to your workspace" section.

A description of configuration the Slack slash command

  • Command A name of the slash command.
  • Request URL A url of receive a POST request when the command is executed (you will change it later, so let's put in an any value).
  • Short Description A description of the slash command.
  • Usage Hint A usage example of parameters to be input after the command.

Install dependencies

$ npm install

Update the configuration file

Update the configuration file (config/default.json).

{
  "github": {
    "baseUrl": "", // option: An endpoint for GitHub API if using GitHub Enterprise (default: empty). e.g. https://githubenterprise.com/api/v3
    "repoOwner": "", // required: A repository owner name where a new issue is created.
    "repoName": "" // required: A repository name where a new issue is created.
  },
  "users": [ // required: A list of users who are allowed to execute slash command and assigned to the issue.
    {
      "slack": "john",
      "github": "john"
    },
    {
      "slack": "debra",
      "github": "debra"
    },
    {
      "slack": "alex",
      "github": "alex"
    },
    {
      "slack": "kentaro",
      "github": "kentaro"
    }
  ]
}

Create the deployment package

Create the Amazon S3 bucket to upload the deployment package.

$ aws s3 mb s3://<bucket-name> --region <region-name>

Create the deployment package using sam command.

NOTE: You can use aws cloudformation command instead of sam command.

$ sam package \
     --template-file template.yml \
     --output-template-file serverless-output.yml \
     --s3-bucket <s3-bucket-name>

Deploy

Deploy the application using sam command.

After the deployment is complete, move to the CloudFormation console and check the value of the RequestURL in the output section.

Please update the value of Request URL on Slack slash command configuration page.

NOTE: You can use aws cloudformation command instead of sam command.

$ sam deploy \
   --template-file serverless-output.yml \
   --stack-name <new-stack-name> \
   --parameter-overrides GitHubToken=<token> \ 
   --capabilities CAPABILITY_IAM

πŸ“ License

MIT

More Repositories

1

auto-assign-action

An action which adds reviewers to the pull request when the pull request is opened.
TypeScript
245
star
2

auto-assign

πŸ€– A Probot app that adds reviewers to pull requests when pull requests are opened.
TypeScript
234
star
3

md2confl

πŸ›  md2confl is a CLI tool to convert the markdown text to confluence wiki format.
Go
77
star
4

task-completed-checker-action

β˜‘οΈ A GitHub action that checks if all tasks are completed in the pull requests.
TypeScript
59
star
5

catchy-image

🎨 A Node.js module for dynamically generating social cards (open graph images).
JavaScript
46
star
6

blackfriday-confluence

πŸ›  Blackfriday-Confluence is confluence wiki renderer for the Blackfriday v2 markdown processor.
Go
21
star
7

lambda-pr-notify-bot

πŸ€– A bot that improve pull request workflow on GitHub.
JavaScript
19
star
8

add-an-issue-reference-action

:octocat: A GitHub Action for adding a related issue reference to a pull request.
TypeScript
18
star
9

gh-lspr

gh-lspr is GitHub CLI extension to help you to check pull requests to which you need to respond.
Shell
18
star
10

portfolio

😸 A my portfolio site that fetch data and display from various services such as GitHub, Qiita, SpeakerDeck.
CSS
12
star
11

portfolio-gatsby

😎 kentarom's portfolio site
SCSS
9
star
12

coverage-markers

πŸ“¦ Atom package to display JavaScript test coverage on gutter of editor.
JavaScript
6
star
13

task-complete-checker

βœ… A Probot app that checks if all tasks are completed in the pull requests.
JavaScript
5
star
14

honyaku-flag

🚩 A Slack app that translates a message when an emoji reaction added to the message.
TypeScript
5
star
15

mkissue

🎫 Create GitHub issues from importing CSV file.
TypeScript
4
star
16

qr-code-commenter-action

πŸ“· A GitHub Action that posts a QR code to a pull request comment.
TypeScript
4
star
17

japanese-tech-company-blog-updates

πŸ“Ί Deliver the latest tech news on Japanese technology companies.
Vue
4
star
18

pr-notify-bot

πŸ€– A slackbot that reminds reviewers to review their pull requests.
JavaScript
3
star
19

zenhub-time-tracker

⌚ Keep track of time to move an issue between pipelines and notify the time into Slack.
JavaScript
3
star
20

renovate-config

A config preset for Renovate used by @kentaro-m
3
star
21

waiting-for-review-labeler

⏰ An action for adding label to a pull request after it being opened or ready for review for more than certain hours.
TypeScript
2
star
22

resume

πŸ’» My resume
2
star
23

spider

πŸ‘· WIP A crawler for collecting tech news
Go
2
star
24

react-login-form-sample

πŸ”’ βš›οΈ A login form example with React Hooks
TypeScript
2
star
25

learn-something-new

πŸ’ͺ Knowledge is power.
TypeScript
2
star
26

homebrew-md2confl

Ruby
1
star
27

rust-learning

Rust
1
star
28

lighthouse-keeper

TypeScript
1
star
29

book-box

πŸ“šUpdate a pinned gist to contain the status of reading books from Google Books.
TypeScript
1
star
30

dotfiles

Vim Script
1
star
31

kentaro-m

1
star
32

blog

TypeScript
1
star
33

b64

πŸ› Base64 Encode/Decode Tool
JavaScript
1
star
34

shuf

🎲 Write a random permutation of the input lines to standard output.
TypeScript
1
star
35

tic-tac-toe

JavaScript
1
star
36

tic-tac-toe-with-typescript

Tic Tac Toe with TypeScript
TypeScript
1
star
37

waiting-for-review-labeler-demo

🎑 A sandbox to run the waiting-for-review-labeler
1
star
38

clean-architecture-todo-example

🚧 An implementation example of the Todo app using Clean Architecture.
TypeScript
1
star