- Conventions for branch names and commit messages
- Submitting your first pull request
- Submitting a pull request
- What to expect
- Community contributors
- Contributor License Agreement (CLA)
- Commit signing
- Back to README
To contribute to the HRA base cartridge, follow the guidelines below. This helps us address your pull request in a more timely manner.
To name a branch, use the following pattern: yourusername-description
In this pattern, description
is dash-delimited.
For example: jdoe-unify-shipping-isml
To create a commit message, use the following pattern: action-term: short-description
In this pattern, action-term
is one of the following:
- Bug
- Doc
- Chore
- Update
- Breaking
- New
After action-term,
add a colon, and then write a short description. You can optionally include a GUS ticket number in parentheses.
For example: "Breaking: Unify the single- and multi-ship shipping isml templates (W-999999)."
If this is your first pull request, follow these steps:
-
Create a fork of the HRA repository
-
Download the forked repository
-
Checkout the integration branch
-
Apply your code fix
-
Create a pull request against the integration branch
-
Create a branch off the integration branch.
- To reduce merge conflicts, rebase your branch before submitting your pull request.
- If applicable, reference the issue number in the comments of your pull request.
-
In your pull request, include:
- A brief description of the problem and your solution
- (optional) Screen shots
- (optional) Error logs
- (optional) Steps to reproduce
-
Grant HRA team members access to your fork so we can run an automated test on your pull request prior to merging it into our integration branch.
- From within your forked repository, find the 'Settings' link (see the site navigation on left of the page).
- Under the settings menu, click 'User and group access'.
- Add the new user to the input field under the heading 'Users' and give the new user write access.
-
Indicate if there is any data that needs to be included with your code submission.
-
Your code should pass the automation process.
- Lint your code:
npm run lint
- Run and pass the unit test:
npm run test
- Run and pass the unit/intergration test:
npm run test:integration
- Lint your code:
After you submit your pull request, we'll look it over and consider it for merging.
As long as your submission has met the above guidelines, we should merge it in a timely manner.
All external contributors must sign our Contributor License Agreement (CLA).
All contributors must set up commit signing.