First off, thank you for considering contributing to gpt-code-assistant! 🚀
If you've noticed a bug or have a feature request, make one here! It's generally best if you get confirmation of your bug or approval for your feature request this way before starting to code.
Issue Tracker: https://github.com/narenmanoharan/gpt-code-assistant/issues
If this is something you think you can fix, then fork gpt-code-assistant and create a branch with a descriptive name.
A good branch name would be (where issue #325 is the ticket you're working on):
git checkout -b 325-contribution-guide
The following steps will get you running the gpt-code-assistant project locally.
- Clone the repository:
git clone https://github.com/YOUR-GITHUB-USERNAME/gpt-code-assistant.git
- Change directory to gpt-code-assistant:
cd gpt-code-assistant
-
Install poetry using the instructions here: https://python-poetry.org/docs/#installing-with-the-official-installer. The project uses poetry for dependency management and packaging.
-
Install dependencies:
poetry install
- Install pre-commit hooks:
poetry run pre-commit install
- Set the environment variable
LOCAL_DEV
totrue
for local development:
export LOCAL_DEV=true
- Run the project:
poetry run gpt-code-assistant
Now you can modify the codebase and see your changes!
Now that you have a new branch, you can make your changes. In the process of doing so, ensure that your changes stick to the "code of conduct" as explained in our Coding Guidelines.
- Commit your changes and push your branch to GitHub:
git add .
git commit -m "Your detailed description of your changes."
git push origin BRANCH-NAME
- Navigate to your fork on GitHub, and press the "Compare & pull request" button on the page.
- You'll be taken to a page where you can enter a title and description for your pull request.
- Press the "Create pull request" button.
- Now we wait for the maintainers to review your pull request!
- Once your pull request has been reviewed and the branch passes all tests, it will be merged into the main branch.
- Congratulations! You've successfully contributed to gpt-code-assistant!
The bigger the pull request, the longer it will take to review and merge. Try to break down large pull requests into smaller chunks that are easier to review and merge. It is also always helpful to have some context or background for your pull request. What was the purpose of the change? What was the behavior before the change?
Remember, code review is a tool for both quality and knowledge sharing. It's important to be patient and considerate of the reviewer's time.
Thank you for your contribution! ❤️❤️❤️
We use GitHub comments to communicate about pull requests. If you have questions about the project, you can reach out by creating a new issue.