feat: add PR approval requirements policy - #1734
Open
abdulraheemabdullahi30-tech wants to merge 1 commit into
Open
abdulraheemabdullahi30-tech wants to merge 1 commit into
abdulraheemabdullahi30-tech wants to merge 1 commit into
Conversation
Adds Governance/policies/APPROVAL_REQUIREMENTS.md: the minimum approvals per change type, the checks that must be green, review validity rules, and the authorised override rules including the non-overridable list. Closes rinafcode#1600
|
@abdulraheemabdullahi30-tech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Adds
Governance/policies/APPROVAL_REQUIREMENTS.md, the versioned reference for how many approvals a pull request needs, which automated checks must be green, and who may override a requirement.The rules existed but were scattered:
CONTRIBUTING.md§4 states branch-protection settings, §9 states the review policy, and §11 states the merge preconditions — and none of them answer "a migration that also touches a route: how many approvals, and from whom?". This document answers that as a table, makes the current gate status of each check explicit, and writes down the override rules that were previously implicit.Related Issue
Issue #1600 — "Add PR approval requirements for TeachLink Backend".
Changes
New governance document
Governance/policies/APPROVAL_REQUIREMENTS.mdsrc/**, releases, hotfixes, and reverts. Each row gives the approvals fordevelop, the approvals formain, and whether a code-owner approval is required. The document states the tie-break: when a PR spans rows, the strictest row wins and every implicated code owner must approve..github/workflows/ci.yml(No build artifacts in gitandvalidate, with the individual lint / typecheck / build / migration / schema-drift steps named), the conditionally required checks, and an honest note that the unit/E2E jobsCONTRIBUTING.md§4 references are not yet defined in CI — with the interim rule reviewers must follow until they are.validatejob, secrets, security-path code-owner approval, DCO sign-off, branch protection, and direct pushes, the required record in the PR (§5.3), and the emergency-incident path with its 24-hour and 5-business-day follow-ups (§5.4).developand the mandatory back-merge.Verification Results
Governance/policies/APPROVAL_REQUIREMENTS.mdcreatedci.yml, plus conditional checks and their real gate statusGovernance/folderGovernance/is outside the build and test rootsCONTRIBUTING.md,CODEOWNERS, and the domain policies it refines; §8 records the v1.0.0 changeCloses #1600