We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer
-
Create a Discord server and Discord Application then add a bot.
-
Install Discord bot onto Discord server by going to
https://discordapp.com/oauth2/authorize?client_id=<CLIENT_ID>&scope=bot
. -
Copy
.env.example
to.env
and fill in the variables.DISCORD_BOT_TOKEN
- from step 1GITHUB_TOKEN
- create here withpublic_repo
scopeDEBUG_CHANNEL
- always cc messages to this channel
-
Run
npm install
.
-
Open two terminals, and run:
npm run dev
- Starts the development servernpm run smee
- Starts the smee server which proxies GitHub webhook events to development server
-
Go to a test GitHub repository and create a webhook with the smee url, select
Content type: application/json
and check only theproject_card
event. -
Retrieve channel id by sending
!github-project debug
toGitHub Project Notifier
bot you installed in step 2, updateDEBUG_CHANNEL
in.env
, and restartnpm run dev
.
npm start
- Starts the production server. Alternatively, you can usepm2
- Set up a proxy to 5. with domain and SSL.
- Create a GitHub App with
Project card
webhook, and configure 6. as the webhook url.
We Use GitHub Flow, So All Code Changes Happen Through Pull Requests
Pull requests are the best way to propose changes to the codebase (we use GitHub Flow). We actively welcome your pull requests:
- Fork the repo and create your branch from
master
. - If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Make sure your code lints.
- Create that pull request!
Commit message and pull request title should follow Conventional Commits.
An easy way to achieve that is to install commitizen
and run git cz
when committing.
In short, when you submit code changes, your submissions are understood to be under the same MIT License that covers the project. Feel free to contact the maintainers if that's a concern.
By contributing, you agree that your contributions will be licensed under its MIT License.