Skip to content

Commit 27b96a9

Browse files
authored
Merge pull request #765 from hpcc-systems/yadhap/main-branch-merging-rules
Yadhap/main branch merging rules
2 parents ec9b002 + 827284e commit 27b96a9

File tree

3 files changed

+42
-28
lines changed

3 files changed

+42
-28
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+39-26
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,51 @@
11
## Description
22

3-
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
3+
Please provide a summary of the changes made and the issue it resolves. Include relevant context and any dependencies required for this change.
44

55
Fixes # (issue)
66

7-
## Type of change
7+
## Developer's Checklist
88

9-
- [ ] Bug fix (non-breaking change which fixes an issue)
10-
- [ ] New feature (non-breaking change which adds functionality)
11-
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12-
- [ ] Vulnerability fix (package bumps or CodeQL adjustments to ensure code security)
13-
- [ ] This change requires a documentation update
9+
Please select at least one
1410

15-
## Developer Checklist:
11+
- [ ] Bug fix (non-breaking change that resolves an issue)
12+
- [ ] Breaking change (enhancement, fix, or feature that alters existing functionality)
13+
- [ ] New feature (non-breaking change that adds functionality)
14+
- [ ] Vulnerability fix (package updates or CodeQL adjustments to enhance code security)
15+
- [ ] Documentation update (addition or update of documentation or helper text)
16+
- [ ] Other change (please explain in the comment section)
1617

17-
- [ ] I have commented my code, particularly in hard-to-understand areas
18-
- [ ] I have resolved any conflicts with the branch I am attempting to merge to.
18+
#### Code Quality ( All must be selected )
19+
20+
- [ ] I have commented on my code, especially in complex areas
21+
- [ ] I have resolved any conflicts with the target branch
22+
- [ ] My changes do not generate new warnings
23+
- [ ] I have checked my code for any misspellings
24+
- [ ] I have ensured my code does not duplicate existing code unnecessarily
25+
26+
#### Documentation
27+
28+
- [ ] No documentation changes were required
1929
- [ ] I have made corresponding changes to the documentation
20-
- [ ] My changes generate no new warnings
21-
- [ ] I have added tests that prove my fix is effective or that my feature works
22-
- [ ] New and existing unit tests pass locally with my changes
23-
- [ ] Any dependent changes have been merged and published in downstream modules
24-
- [ ] I have checked my code and corrected any misspellings
25-
- [ ] I have ensured that my code does not unecessarily duplicate existing cod
26-
- [ ] I have ensured that all security checks have been passed
27-
- [ ] All input boxes have sensible character limits applied
28-
- [ ] Refreshing related pages puts page in a workable and sensible state
2930

31+
#### Security
32+
33+
- [ ] I have confirmed that all security checks (e.g., CodeQL) have passed
34+
- [ ] No user input validation was required for this change
35+
- [ ] All user inputs have appropriate validation, including reasonable character limits
36+
37+
#### UX
38+
39+
- [ ] This change does not involve any updates to UX elements
40+
- [ ] Refreshing related pages results in a functional and logical state
41+
- [ ] Appropriate error messages are displayed when necessary
42+
43+
#### Testing
44+
45+
- [ ] Existing unit tests pass locally with my changes
46+
- [ ] No new unit tests were necessary for my changes
47+
- [ ] I have added new unit tests for my changes
3048

3149
## Reviewer Checklist
32-
- [ ] I have pulled the branch into my local environemtn and started the project succesfully
33-
- [ ] I have reviewed the code for proper comments and mispellings
34-
- [ ] All input boxes have sensible character limits applied
35-
- [ ] Refreshing related pages puts page in a workable and sensible state
36-
- [ ] Submitting any relevant Forms relays proper messaging to user
37-
- [ ] I have checked that all security checks have been passed
38-
- [ ] I have checked that all backend routes have proper validation
50+
51+
- [ ] I have successfully pulled the branch into my local environment, initiated the project, and verified that all the checked items above have passed

.github/dependabot.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ updates:
44
directory: "/**"
55
schedule:
66
interval: "daily"
7+
target-branch: "dev" # Dependabot will scan the 'dev' branch
78
allow:
8-
- dependency-type: "production"
9+
- dependency-type: "production"

.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [dev, master]
16+
branches: [dev, main]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
1919
branches: [dev, master]

0 commit comments

Comments
 (0)