Guidelines for Patch Acceptance/Rejection
From Koha Wiki
The following guidlines for getting your patch accepted in Koha were compiled from a thread on the koha-devel mailing list
- The patch must do what it claims to do, in all commonly-supported Koha environments
- Include Unit Tests if at all possible
- The patch must not break existing functionality
- The patch must apply to the current HEAD of the master branch of the code
- All patches which will not apply cleanly to 3.2.x should be ported and submitted as separate patches marked for 3.2.x
- The patch must follow the Coding Style Guidelines
- This includes the copyright statement
- The patch must be MARC-flavour agnostic
- If a database update is require, the patch must handle the update both for new installs and upgrades
- If a new feature is added, the patch must include appropriate Help documentation
- The patch must have at least 1 (preferrably 2) signoff(s) from another party (preferrably the QA manager). Exceptions will be made for trivial patches
- The patch must refer to a bug number
- To avoid cases where the bug number could be stripped from the patch during the Git workflow, please don't enclose the bug number in square brackets. In other words, don't do "[Bug 1234]", do "bug 1234:"
Additional characteristics of a good patch
- The patch covers a single topic
- The patch is easy to read
- The patch does not contain the detritus of your coding process