Want to open a PR on Sedy? Thank you! Here are a few things you need to know.
This repository is splitted into two parts.
- The actual Sedy code triggered by the GitHub webhook (
sedy
) - The Sedy website hosted on https://marmelab.com/sedy/ (
installer
)
They all contain their own makefile
and package.json
.
.
├── docs # Built website served by GitHub pages
├── installer # Website code
└── sedy # AWS Lambda triggered by webhook
git clone git@github.com:marmelab/sedy.git
cd sedy/
make install # Install the dependencies of the three projects
Create a new sedy/config/development.json
with the following informations:
{
"bot": {
"login": "GITHUB-ACCOUNT",
"oauthToken": "GITHUB-OAUTH-ACCESS-TOKEN",
"appId": "GITHUB-APP-ID"
},
"committer": {
"name": "COMMITTER-NAME",
"email": "an@example.mail"
},
"logs": {
"debug": false
}
}
Where:
GITHUB-ACCOUNT
: Your bot GitHub account usernameGITHUB-OAUTH-ACCESS-TOKEN
: Your bot GitHub account password or personal access tokenGITHUB-APP-ID
: You GitHub Application id (if needed)COMMITTER-NAME
: The name that'll appear on commitsan@example.mail
: The email that'll appear on commits
make run-sedy # Run sedy API on port 3000
make run-installer # Run installer on port through webpack on port 8080
To test you local code on a GitHub repository, expose your Sedy port on the internet with ngrok:
ngrok http 3000
It will give you an ngrok endpoint https://XXXXXXX.ngrok.io
that you can use as a GitHub webhook.
No PR will be merged if the tests don't pass.
make test