A github webhook listener for connecting a public issue-only repository to a private project board
Because GitHub doesn't support having a public-facing issue-only repository automatically link up to the project board of a private repository.
In order to set this up on your server, clone the project to your webhook server, and run yarn install
. Once done, set the environment variables as described below, and finally run NODE_ENV=production && yarn start:prod
Since this project relies on GitHub webhooks, you need to setup a webhook for your public-facing issue repository.
To do this, go to your repository, and under settings, go to webhooks and add a new webhook.
The Payload URL should be that of your server, the Content type needs to be application/json
, and the secret should be set to something secure that you'll remember.
The events needed are only the Issues
event.
The access token to use for getting github information and creating cards.
The token can be generated at https://github.com/settings/tokens and should have the repo
scope.
The secret key used for verifying that the webhook is actually from GitHub.
This should be the same value you added when you created the webhook in your repository.
The owner of the repository that has the project board that cards should be created in.
The name of the repository that has the project board that cards should be created in.
The name of the project board the cards should be created in.
The name of the column that the cards should be created in.
The owner of the public-facing issue repository.
The name of the public-facing issue repository.
Only used for local testing.