### Ensure that the PR links to a JIRA issue. `r-jira` {:#r-jira}
### Ensure that the PR links to a JIRA issue. {:#r-jira}
_Standard code: `r-jira`_
For most bug-fixes and improvements, there needs to be a [JIRA issue](/tools/issue-tracking.md#jira). However, small [NFC](/tools/git.md#nfc) PRs and some [WIP](/tools/git.md#wip) PRs may not need that.
### Examine test results. `r-test` {:#r-test}
### Examine test results. {:#r-test}
_Standard code: `r-test`_
If the [automated tests](/testing/continuous-integration.md) comes back with any failures, look into why. Hopefully, Jenkins provides an itemized list of failures. If not, dig further into the "Console" output for PHP-fatals or build-failures.
### Read the code. `r-read` {:#r-read}
### Read the code. {:#r-read}
_Standard code: `r-read`_
Is it understandable? Does it follow common conventions? Does it fit in context? If it changes a difficult section of code -- does it tend to make that section better or worse?
### Try it out. `r-run` {:#r-run}
### Try it out. {:#r-run}
_Standard code: `r-run`_
Use the code somehow. You don’t need to attack every imaginable scenario in every PR, but you should do something to try it out. Be proportionate.
### Assess impact on users. `r-users` {:#r-users}
### Assess impact on users. {:#r-users}
_Standard code: `r-users`_
If a user was comfortable using the old revision, would they upgrade and assimilate naturally and unthinkingly to the new revision? If not, has there been commensurate effort to provide a fair transition-path and communication?
### Assess impact on extensions/integrations. `r-ext` {:#r-ext}
### Assess impact on extensions/integrations. {:#r-ext}
_Standard code: `r-ext`_
Would the proposal change the behaviors/inputs/outputs of an API, hook, or widely-used function? If an existing extension uses it, would it continue to work the same way? If you're unsure, consider grepping [universe](/tools/universe.md) for inspiration. If there is a foreseeable problem, has there been commensurate effort to communicate change and provide a fair transition path?
### Assess impact on core. `r-core` {:#r-core}
### Assess impact on core. {:#r-core}
_Standard code: `r-core`_
Would the patch change the contract for a PHP function or JS widget or CSS class? If so, have you verified that there are no stale/dangling references based on the old contract? Look for unexpected side-effects.
### Check for tests or maintainability. `r-maint` {:#r-maint}
### Check for tests or maintainability. {:#r-maint}
_Standard code: `r-maint`_
Many changes should introduce some kind of automated test or protective measure to ensure maintainability. However, there can be tricky cost/benefit issues, and the author and reviewer must exercise balanced judgment.
### Check for documentation. `r-doc` {:#r-doc}
### Check for documentation. {:#r-doc}
_Standard code: `r-doc`_
Some changes require addition documentation, or adjustments to existing documentation. Consider the impact of this change on users, system administrators, and developers. Do they need additional instructions in order to reap the benefits of this change? If so, [update documentation](/documentation/index.md) as necessary by making a corresponding PR on one of the guides.
## Gotchas
### Packaging `rg-pkg` {:#rg-pkg}
### Packaging {:#rg-pkg}
_Standard code: `rg-pkg`_
If the PR adds a new top-level file, new top-level folder, or novel file-type, consider whether "distmaker" will properly convey the file in `*.zip/*.tar.gz` builds.
### Permissions `rg-perm` {:#rg-perm}
### Permissions {:#rg-perm}
_Standard code: `rg-perm`_
If the PR changes the permissions model, are we sure that demo/test builds and existing installations will continue to work the same?
### Security `rg-sec` {:#rg-sec}
### Security {:#rg-sec}
_Standard code: `rg-sec`_
If the PR passes data between different tiers (such as SQL/PHP/HTML/CLI), is this data [escaped and validated](/security/index.md) correctly? Or would it be vulnerable to SQL-injections, cross-site scripting, or similar?
### Settings `rg-setting` {:#rg-setting}
### Settings {:#rg-setting}
_Standard code: `rg-setting`_
If the PR adds or removes a setting, will existing deployments or build-scripts which reference the setting continue to work as expected?
### Schema `rg-schema` {:#rg-schema}
### Schema {:#rg-schema}
_Standard code: `rg-schema`_
If the PR changes the DB, ensure new installations and upgraded installations will end up with consistent schema. (Extra: If it's a backport, take extra care to consider all upgrade paths.)
### Hook signature `rg-hook` {:#rg-hook}
### Hook signature {:#rg-hook}
_Standard code: `rg-hook`_
Adding a new parameter to an existing hook may be syntactically safe, but is it semantically safe?