Everything you need to know to contribute efficiently to the project!
Whatever the way you wish to contribute to the project, please respect the code of conduct.
src/
- The actual platform codebasemedia/
- Binary assetsstyles/
- Style sheet files.vscode/
- VSCode specific config.github/
- Configuration for GitHub workflow
This project uses the following integrations to ensure proper codebase maintenance:
- Github Worklow - run jobs for package build and coverage
- Codacy - analyzes commits for code quality
As a contributor, you will only have to ensure coverage of your code by adding appropriate unit testing of your code.
When running the project, you can specify some configurations, which can be done using a .env
file.
This file has no required keys but optionally, the following information can be added:
POSTHOG_KEY
: your key for analytics using PostHogPOSTHOG_HOST
: the URL of the Posthog host
So your .env
file should look like something similar to:
POSTHOG_KEY='phc_my_fancy_posthog_key'
POSTHOG_HOST='https://app.posthog.com'
The file should be placed at the root folder of your local copy of the project.
Whether you encountered a problem, or you have a feature suggestion, your input has value and can be used by contributors to reference it in their developments. For this purpose, we advise you to use Github issues.
First, check whether the topic wasn't already covered in an open / closed issue. If not, feel free to open a new one! When doing so, use issue templates whenever possible and provide enough information for other contributors to jump in.
If you are wondering how to do something with Contribution API, or a more general question, you should consider checking out Github discussions. See it as a Q&A forum, or the project-specific StackOverflow!
1 - Fork this repository by clicking on the "Fork" button at the top right of the page. This will create a copy of the project under your GitHub account (cf. Fork a repo).
2 - Clone your fork to your local disk and set the upstream to this repo
git clone git@github.com:<YOUR_GITHUB_ACCOUNT>/companion.git
cd companion
git remote add upstream https://github.com/quack-ai/quack-ai.github.io.git
3 - You should not work on the main
branch, so let's create a new one
git checkout -b a-short-description
- Code: make sure you provide docstrings & comments to your code.
- Commit message: please follow Udacity guide
To run all quality checks together
make quality
The previous command won't modify anything in your codebase. Some fixes (import ordering and code formatting) can be done automatically using the following command:
make style
Before opening a PR, run your modifications locally with:
make run
Now by pressing F5, you'll open a new window with your local version of the extension loaded. Make sure it doesn't break previous behaviours.
Push your last modifications to your remote branch
git push -u origin a-short-description
Then open a Pull Request from your fork's branch. Follow the instructions of the Pull Request template and then click on "Create a pull request".