Skip to content

Latest commit

 

History

History
126 lines (102 loc) · 6.17 KB

CONTRIBUTING.md

File metadata and controls

126 lines (102 loc) · 6.17 KB

Contents

1. Introduction

Welcome! Thank you for contributing to the further development of Health Check. We're always looking for new ways to improve our project and we appreciate any help you can give us.

1.1 What kinds of contributions are we looking for?

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.

2. Ground Rules

  1. Ensure cross compatibility for Windows, Mac OS and Linux.
  2. Ensure all Python features used in contributions exist and work in Python 3.7 and above.
  3. 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.
  4. Be welcoming to newcomers and encourage diverse new contributors from all backgrounds. See Python Community Code of Conduct.

3. Your First Contribution

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!

4. Getting Started

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.

4.1 Setting up your development environment

The following requirements must be installed prior to setting up:

  • Python 3.7 or greater
  • git
  • pip
  • flask

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.

  1. Fork and clone the repository to a directory on your local machine.
  2. Open a command line in that directory and execute the following command:
    python3 -m venv venv
    Edbeepbot, its dependencies, and all required development tools, are now installed to a virtual environment located in the .venv subdirectory.
  3. Activate the new virtual environment with one of the following commands:
    • Linux:
      source .venv/bin/activate
    • Windows:
      .venv\Scripts\activate
    Each time you open a new command line, you should execute this command first. From here onwards, we will assume you are executing commands from within this activated virtual environment.

4.2 To contribute changes

  • 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/kritikaparmar-programmer/HealthCheck
    
  • 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 -m "Meaningful commit message"
    
  • Push the changes for review
    git push origin <branch-name>
    
  • Create a PR from our repo on Github.
Some Additional Notes:
  • Code should be properly commented to ensure it's readability.
  • Make sure your code properly formatted.
  • Issue that pull request!

4.3 How To Report A Bug

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.

5.1 Issues

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)

5.2 Pull Requests

Pull requests are evaluated by their quality and how effectively they solve their corresponding issue. The process for reviewing pull requests is as follows:

  1. A pull request is submitted
  2. We will review and test the pull request (usually within a week)
  3. 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.
  4. If any feedback is given we expect a response within 1 week or we may decide to close the PR.
  5. 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.