- 1. Introduction
- 2. Ground Rules
- 3. Your First Contribution
- 4. Getting Started
- 5. Code Review Process
Welcome! Thank you for contributing to the further development of Edbeepbot. We're always looking for new ways to improve our project and we appreciate any help you can give us.
We love receiving contributions from our community. Any assistance you can provide with regards to bug fixes, feature enhancements, and documentation is more than welcome.
- Ensure cross compatibility for Windows, Mac OS and Linux.
- Ensure all Python features used in contributions exist and work in Python 3.8.1 and above.
- Create any issues for new features you'd like to implement and explain why this feature is useful to everyone and not just you personally.
- Be welcoming to newcomers and encourage diverse new contributors from all backgrounds. See Python Community Code of Conduct.
Unsure of how to get started contributing to ? Please take a look at the Issues section of this repo and sort by the following labels:
- good first issue - issues that can normally be fixed in just a few lines of code and maybe a test or two.
- help-wanted - issues that are currently unassigned to anyone and may be a bit more involved/complex than issues tagged with beginner.
- Feel free to ask for help; everyone was a beginner at some point!
Edbeepbot's repository is configured to follow a particular development workflow, using various reputable tools. We kindly ask that you stick to this workflow when contributing to Edbeepbot, by following the guides below. This will help you to easily produce quality code, identify errors early, and streamline the code review process.
The following requirements must be installed prior to setting up:
- Python
3.8.1
or greater - git
- pip
- tweepy
If you're not on Windows, you should also have GNU make installed, and you can optionally install pyenv, which can help you run tests for different python versions.
- Fork and clone the repository to a directory on your local machine.
- Open a command line in that directory and execute the following command:
Edbeepbot, its dependencies, and all required development tools, are now installed to a virtual environment located in the
python3 -m venv venv
.venv
subdirectory.Edbeepbot is installed in editable mode, meaning that edits you make to the source code in the repository will be reflected when you run Edbeepbot. - Activate the new virtual environment with one of the following commands:
- Linux:
source .venv/bin/activate
- Windows:
.venv\Scripts\activate
- Linux:
- Make sure you have been assigned the issue to which you are making a PR.
- If you make PR before being assigned, It will be labeled
invalid
and closed without merging.
- Fork the repo and clone it on your machine.
- Add a upstream link to main branch in your cloned repo
git remote add upstream https://github.com/kcoder63/EDbeepbot
- Keep your cloned repo upto date by pulling from upstream (this will also avoid any merge conflicts while committing new changes)
git pull upstream master
- Create your feature branch
git checkout -b <feature-name>
- Commit all the changes
git commit -am "Meaningful commit message"
- Push the changes for review
git push origin <branch-name>
- Create a PR from our repo on Github.
- Code should be properly commented to ensure it's readability.
- Make sure your code properly formatted.
- Issue that pull request!
Submit an issue on GitHub and add as much information as you can about the bug, with screenshots of inputs to the bot and bot response if possible (if the issue is regarding bugs). Try to make issues that are not blank and are in their respective category.
Any new issues will be looked at and evaluated for validity of a bug or for the usefulness of a suggested feature. If we have questions about your issue we will get back as soon as we can (usually in a day or two) and will try to make a decision within a week. Great Issue suggestions tend to have:
- A quick summary of the changes.
- In case of any bug provide steps to reproduce
- Be specific!
- Give sample code if you can.
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
Pull requests are evaluated by their quality and how effectively they solve their corresponding issue. The process for reviewing pull requests is as follows:
- A pull request is submitted
- We will review and test the pull request (usually within a week)
- After we approve your pull request:
- If your pull request is considered an improvement or enhancement the project owner will have 1 day to veto or approve your pull request.
- If your pull request is considered a new feature the project owner will have 1 week to veto or approve your pull request.
- If any feedback is given we expect a response within 1 week or we may decide to close the PR.
- If your pull request is not vetoed then it will be approved and merged into the project.
By contributing, you agree that your contributions will be licensed.