Opening Pull Requests
Contents:
- 1. Check out a New Branch for the Work to be Completed
- 2. Complete the development work
- 3. PR Submission Checklist
- Ensure Jira ticket is updated with correct testing instructions
- Ensure your work satisfies all business rules from the Jira ticket
- Tidy up any unused
console.log()orConsole.WriteLine()type statements - Tidy up any commented code
- Tidy up verbose logging statements, etc.
- Ensure your work follows the code style guidelines
- 4. Open the PR on Github
- 5. Reassign \& Notify
1. Check out a New Branch for the Work to be Completed
Branch Naming Guidelines
Note
Please also refer to our commit conventions as branch naming conventions align closely with commit guidelines.
When creating a branch, follow the guidelines below:
-
Type:
The following are the acceptable types:
- feat: For new features
- fix: For bug fixes
- chore: For general maintenance tasks
- docs: For documentation changes
-
JIRA Ticket Number:
- Always include the associated ticket number, e.g.,
rp-1250.
- Always include the associated ticket number, e.g.,
-
Short Description:
- Use kebab-case (e.g.,
archive-icon-update) for a concise description of the work being done.
- Use kebab-case (e.g.,
Examples
feat/rp-1250-phone-warningfix/rp-1261-archive-icon-updatechore/rp-1300-refactor-auth-module
This standardization ensures clarity and consistency across all branch names.
2. Complete the development work
Be sure to follow the commit guidelines throughout this process.
3. PR Submission Checklist
Prior to submitting a PR, be sure to check the following items:
Ensure Jira ticket is updated with correct testing instructions
If there have been any deviations from the original Jira ticket, make sure the testing instructions have been updated appropriately. This helps the person testing the functionality / reviewing the PR to make sure everything is working as expected.
Ensure your work satisfies all business rules from the Jira ticket
Functionally test your work before submitting a PR. If there are obvious regression bugs / deviations in functionality from the ticket, those should be resolved prior to submitting a PR.
If another unrelated bug is identified, open a new ticket describing the bug and link it to the current ticket.
Tidy up any unused console.log() or Console.WriteLine() type statements
There are very few circumstances in which these statements should be included in the codebase - e.g. when logging basic authentication steps in an app to let us know that authentication has taken place. These statements overall clutter up the console unnecessarily.
Tidy up any commented code
Commented code should be removed prior to a PR, as it clutters the file in general.
There are some circumstances in which there's a specific reason for keeping commented code - in those cases, the reason should be commented along with it so a future reader is aware of why this was left behind. E.g.:
// TODO - the following code will need to be enabled at some point, but we are
// consciously leaving this out for now
// const foo = getSomeValue();
// doSomethingElse(foo);
Tidy up verbose logging statements, etc.
E.g. Angular has an enableTracing configuration option for the Angular Router. This is helpful for debugging by logging verbose Router details, but should not be included in the main codebase.
Ensure your work follows the code style guidelines
Check the General Code Style Guidelines and language-specific code style guidelines to make sure your work follows these guidelines.
4. Open the PR on Github
It's time to open a PR. This can be done either from the GitHub web interface OR from the GH CLI:
PR Naming Convention
The PR name should include the conventional commit prefix, the ticket number, and a brief description of the branch:
Examples might include:
fix/RP-1234: Fixes issue where dashboard throws error when not authenticated
feat/RP-4321: Adds Refresh button to reports inbox
docs/RP-2233: Adds docs for user sync process
5. Reassign & Notify
PR Assignment
PR Assignment is critical! If a PR is not assigned to the right person(s), it can and will be missed.
There are 2 actions to take here:
- Mark the appropriate developer(s) as a reviewer on the PR
- Assign the PR to the same developer(s).
For example:
