-
Notifications
You must be signed in to change notification settings - Fork 14
Developer's Guide
Matt Nowack edited this page Feb 9, 2022
·
4 revisions
This is a guide for developing the patch library. Documentation for how to use this library is available on HexDocs
This project is a standard Mix Project, simply clone it to your local machine to begin developing the project. The bulk of the logic of this project is in the patch.ex file.
Any new feature or bugfix should be accompanied with appropriate test coverage.
Any new function exposed by use Patch
should have a test case added to the User Suite
To run the tests simply issue
mix test
New features should have both @doc
blocks and a section in the README which serves as the end-user guidebook.
To cut a new release of the library, follow these steps.
- Make sure the Github Actions are all passing.
- Create a new branch named
release/{version}
. - Bump the version in
mix.exs
, this project uses SemVer 2.0 - Update the changelog with a short summary and the relevant standard sections for each release. 0.Minor and Major version releases require a
Breaking Changes
section, even if it only reports "None." - Commit the resulting files.
- Open a PR.
- Review and Merge the PR.
- Run
mix hex.publish
- Add a git tag with the format
v{version}
- Celebrate