Before you get started, make sure you have:
-
installed a local copy of zulipbot
-
registered an account on the Zulip development server and joined us on the zulipbot stream on the Zulip development server, where most discussion concerning zulipbot takes place
-
read and followed our Code of Conduct as a contributor to create a more collaborative and welcoming environment for development
Are you trying to report a bug that you found in zulipbot? Do you have suggestions for new features or improvements for zulipbot? These are all great and valid reasons for opening an issue in our GitHub issue tracker, where we maintain a list of issues about zulipbot that need to be fixed. Please provide as much information and details as you can in your issue so we can address your issue properly.
- If you're trying to report a bug, please describe the problem in depth with any accompanying screenshots or links to where the bug occurred; the more information that is given, the better we can diagnose the problem and fix it.
If you see an issue in our issue tracker that you'd like to work on, please
claim it by commenting @zulipbot claim
on the issue, and @zulipbot will
assign you to the issue so you can begin working on it.
-
Open your command line interface (CLI).
-
Clone this repository to your local machine.
$ git clone https://github.com/zulip/zulipbot.git
- Switch to the local copy of this repository.
$ cd ~/path-to-repo/zulipbot
- Install the necessary node packages and dependencies.
$ yarn install
- Use the smee.io CLI to redirect GitHub webhook payloads to your locally running application.
$ smee -u https://smee.io/yourcustomurl -P /github -p 8080
- Create a GitHub user account and a GitHub App to test with.
- See here to check how to authenticate your user account.
- The Webhook URL in your GitHub App settings should be
https://smee.io/yourcustomurl
.
- Run the bot to ensure that your environment was configured correctly.
$ yarn start
If you encounter any problems during installation, let us know on the zulipbot chat and we can help you out!
-
Create a separate feature branch from the
master
branch for the changes you plan to make. -
Commit your changes, following Zulip's commit discipline practice.
-
Check if your changes and commits pass all tests:
$ yarn test
Modify your commits accordingly if your changes don't pass all tests.
- Fetch and rebase your changes against
upstream
:
$ git fetch upstream
Fix merge conflicts if necessary.
- Push your changes to your fork on GitHub.
$ git push origin feature-branch-name
You may need to append +
before your feature branch name if you failed to
push some refs.
- Create a pull request for the changes you made.
-
The base fork should be
zulip/zulipbot
. -
The base should be
master
. -
The head fork should be the name of your fork (ex:
octocat/zulipbot
). -
The compare branch should be the name of your feature branch.
- One of the project maintainers will review your pull request and merge it once the pull request's Travis builds pass and any concerns about your pull request are settled.
zulipbot is currently manually tested on private repositories and user accounts while a test suite is being established. Webhook payloads can be delivered to a locally running application using Smee.
Our current test suite consists of Travis for continuous integration, and we review code quality and consistency with the Eslint linter.