Skip to content

Latest commit

 

History

History
144 lines (96 loc) · 2.88 KB

CONTRIBUTING.rst

File metadata and controls

144 lines (96 loc) · 2.88 KB

How To Contribute

Contributions to zsh-ghq are welcome.

Follow semantic commits to make :command:`git log` a little easier to follow.

chore
something just needs to happen, e.g. versioning
docs
documentation pages in :file:`_docs/` or docstrings
feat
new code in :file:`src/`
fix
code improvement in :file:`src/`
refactor
code movement in :file:`src/`
style
aesthetic changes
test
test case modifications in :file:`test/`

Examples commit messages:

  • (#01) chore: 0.1.0
  • (#01) docs: Add configuration setting
  • (#01) feat: Create Lambda function
  • (#01) fix: Retry upload on failure
  • (#01) refactor: Extract duplicate code
  • (#01) style: isort, YAPF
  • (#01) test: Coverage around add permissions

Use `slash convention`_ with the same leaders as :ref:`commits`, e.g.:

  • (prefix-task)

Note

  • Use :file:`.rst` for regular pages
  • Use :file:`.rest` for pages included using .. include:: file.rest (fixes a Sphinx issue that thinks references are duplicated)

Run all unit tests

make test.all

Run unit tests specified

make test run={{path}}
  1. See if an Issue exists
    • Comment with any added information to help the discussion
  2. Create an Issue if needed
  1. See if a Pull Request exists
    • Add some comments or review the code to help it along
    • Don't be afraid to comment when logic needs clarification
  2. Create a Fork and open a Pull Request if needed
  • Anyone can review code
  • Any Pull Request should be closed or merged within a week

Try to keep history as linear as possible using a rebase merge strategy.

  1. One thumb up at minimum, two preferred

  2. Request submitter to rebase and resolve all conflicts

    # Update `develop`
    git checkout develop
    git pull origin develop
    
    # Update `#698` Branch
    git flow feature start #698
    git rebase develop
    
    # Update remote Branch and Pull Request
    git push -f
  3. Merge the new feature

    # Merge `#698` into `develop`
    git checkout develop
    git merge --ff-only feature/#698
    git push
  4. Delete merged Branch