docs/developing/open-source-contribution/introduction.mdx
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
| Type of issue | Priority |
|---|---|
| Minor improvements, non-core feature requests | |
| Confusing UX (... but working) | |
| Core Features (Booking page, availability, timezone calculation) | |
| Core Bugs (Login, Booking page, Emails are not working) |
The development branch is main. This is the branch that all pull
requests should be made against. The changes on the main
branch are tagged into a release monthly.
To develop locally:
Fork this repository to your own GitHub account and then clone it to your local device.
Create a new branch:
git checkout -b MY_BRANCH_NAME
Install yarn:
npm install -g yarn
Install the dependencies with:
yarn
Start developing and watch for code changes:
yarn dev
You can build the project with:
yarn build
Please be sure that you can make a full production build before pushing code.
More info on how to add new tests coming soon.
This will run and test all flows in multiple Chromium windows to verify that no critical flow breaks:
yarn test-e2e
To check the formatting of your code:
yarn lint
If you get errors, be sure to fix them before committing.
refs #XXX or fixes #XXX to the PR description. Replacing XXX with the respective issue number. See more about Linking a pull request to an issue
.Do not commit your yarn.lock unless you've made changes to the package.json. If you've already committed yarn.lock unintentionally, follow these steps to undo:
If your last commit has the yarn.lock file alongside other files and you only wish to uncommit the yarn.lock:
git checkout HEAD~1 yarn.lock
git commit -m "Revert yarn.lock changes"
If you've pushed the commit with the yarn.lock:
git push origin <your-branch-name> --force
If yarn.lock was committed a while ago and there have been several commits since, you can use the following steps to revert just the yarn.lock changes without impacting the subsequent changes:
Checkout a Previous Version:
yarn.lock was unintentionally committed. You can do this by viewing the Git log:
git log yarn.lock
yarn.lock:
git checkout <commit_hash> yarn.lock
Commit the Reverted Version:
yarn.lock, commit this change:
git commit -m "Revert yarn.lock to its state before unintended changes"
Proceed with Caution:
git pull origin <your-branch-name>
git push origin <your-branch-name>