1.3.0 • Published 2 years ago

reg-gh-app-interface v1.3.0

Weekly downloads
9,948
License
MIT
Repository
github
Last release
2 years ago

reg-suit GitHub App

CircleCI wercker status

GitHub App for reg-suit.

CONTRIBUTING

Setup for local development

Clone this repo and

$ yarn --pure-lockfile
$ yarn bootstrap

Get .pem file

You need private-key for the App.

You have 2 options to get .pem file.

1. Create App for development under your account

Go to https://github.com/settings/apps/new . And create your GitHub app so download a .pem file via "Generate a private key" button. When downloading successfully, copy the .pem file under this repository (.pem files are configured to be ignored via .gitignore).

The following figure is an example of GitHub App configurations:

Image from Gyazo

2. Contact reg-viz owner and request .pem file

If you're a member of reg-viz, I'll generate .pem file. Please contact me.

When you accept .pem file, put it under this repository.

Create .env file

$ cp .env.example .env

And edit .env file.

Run service

$ cd packages/backend
$ yarn start

Test API execution

The following cURL command comments to this PR.

curl -X POST \
  http://localhost:3000/api/comment-to-pr \
  -H 'Content-Type: application/json' \
  -d '{
	"installationId": "1454831",
	"owner": "reg-viz",
	"repository": "gh-app",
	"branchName": "pr-comment-test",
	"failedItemsCount": 0,
	"newItemsCount": 0,
	"deletedItemsCount": 0,
	"passedItemsCount": 1
}'

Run frontend

$ cd packages/frontend
$ yarn start
$ open http://localshot:4000

Run Storybook

$ cd packages/frontend
$ yarn storybook

LICENSE

MIT

1.3.0

2 years ago

1.2.0

3 years ago

1.1.0

4 years ago

1.0.6

5 years ago

1.0.4

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.7.5

6 years ago

0.7.2

6 years ago

0.5.9

6 years ago

0.5.6

7 years ago

0.5.5

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.1.0

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago