Thanks for deciding to contribute to PockyBot. Here are a few things to get you started and for you to keep in mind while contributing to this repository.
While you participate in this project you are bound by our Code of Conduct. Please take the time to read it before you begin contributing. If you notice anyone not adhering to these guidelines or making other contributors uncomfortable, please report it to us at pockybotdeveloper@gmail.com.
If you would like to contribute to PockyBot, feel free to do so! Please note that master is a protected branch so all pull requests need to be approved by at least two contributors with push access to the repository. If you would like to work on new features then head on over to the Projects tab. Here we have a kanban board with upcoming work for the project, and you can see what's currently in progress as well as what needs to be done.
In order for the automatic publishing of releases to occur when branches are merged to master, commit messages must be formatted in a specific format.
Example:
feat(packages): Add commitizen
Add commitizen so that commit messages can be standardised to work with semantic-release
Rather than learning this format, it is recommended to use commitizen as your tool for committing, instead of using git commit. In order to use commitizen, you can execute the following commands:
git add -a
— Add your files to the commit.npm run commit
— Execute the commitizen commit wizard. This step assumes you have already runnpm i
.
Please install Editor Config for your editor of choice.
Here's a few links:
- Create a new branch or fork the repository.
- Commit your new code.
- Make a PR.
To build and test a branch of PockyBot in order to test functionality before merging it to master, follow the following steps:
- Set the
version
in thepackage.json
to the next version number marked as a preview. For example, if the current version is1.4.0
, set to1.4.1-preview
. Do not commit this change. - Locally, run:
npm i npm run build
- Log your terminal in to npm:
And provide your npm login details, ensuring that your account has permission to publish PockyBot. (Contact the developers if you believe you should have this permission but do not.)
npm login
- Publish your preview build:
npm publish --tag preview
- In the
package.json
of thepockybot-endpoint
repo (in private source repository), set theversion
of thepockybot
dependency to the one you just published, e.g.1.4.1-preview
. - Run
npm i
- Commit the result
- Build the
pockybot-endpoint
using CI tool.
When testing with this preview version is finished, deprecate the preview by running
npm deprecate pockybot@<version> "This is the reason for deprecating"
If you would like to report a bug or request a feature you can do this through the Issues tab. We will do our best to reply promptly. If there is something you would rather not ask publicly, you can always contact us at pockybotdeveloper@gmail.com.