Skip to content

Latest commit

 

History

History
88 lines (64 loc) · 3.16 KB

CONTRIBUTING.md

File metadata and controls

88 lines (64 loc) · 3.16 KB

Contributing guidelines

We 💙 Pull Requests for fixing issues or adding features. Thanks for your contribution!

Please read our code of conduct, which is based on Contributor Covenant

For small changes, especially documentation, you can simply use the "Edit" button to update the Markdown file, and start the pull request process. Use the preview tab in GitHub to make sure that it is properly formatted before committing. Please use conventional commits and follow the semantic PR format as documented here. A pull request will cause integration tests to run automatically, so please review the results of the pipeline and correct any mistakes that are reported.

If you plan to contribute often or have a larger change to make, it is best to setup an environment for contribution, which is what the rest of these guidelines describe. The atsign-foundation GitHub organization's conventions and configurations are documented here.

Development Environment Setup

This was developed on Ubuntu 20.04 running on Windows Subsystem for Linux (WSL2) with Python 3.8.6. But any environment with Python 3.6 or later should be suitable.

GitHub Repository Clone

To prepare your dedicated GitHub repository:

  1. Fork in GitHub https://github.com/atsign-company/labels

  2. Clone your forked repository (e.g., git clone [email protected]:yourname/REPO)

  3. Set your remotes as follows:

    cd labels
    git remote add upstream [email protected]:atsign-company/labels.git
    git remote set-url upstream --push DISABLED

    Running git remote -v should give something similar to:

    origin  [email protected]:yourname/labels.git (fetch)
    origin  [email protected]:yourname/labels.git (push)
    upstream        [email protected]:atsign-company/labels.git (fetch)
    upstream        DISABLED (push)
    

    The use of upstream --push DISABLED is to prevent those with write access to the main repository from accidentally pushing changes directly.

Development Process

  1. Fetch latest changes from main repository:

    git fetch upstream
  2. Reset your fork's master branch to exactly match upstream master:

    git checkout master
    git reset --hard upstream/master
    git push --force

    IMPORTANT: Do this only once, when you start working on new feature as the commands above will completely overwrite any local changes in master content.

  3. Edit, edit, edit, and commit your changes to Git:

    # edit, edit, edit
    git add *
    git commit -m 'A useful commit message'
    git push
  4. There are no unit or integration tests. Please test any changes against your own repos.

  5. Open a new Pull Request to the main repository using your master branch