-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Refined Requirement: Change Review Status Label After Code Review Completion
1. Purpose
Ensure pull requests reflect the current review state by replacing the "Ready for review" label with a "Reviewed" label once a code review is completed.
2. Scope
In Scope
- Update pull request labels after a code review is completed.
- Remove the existing "Ready for review" label when review outcome is submitted.
- Add a reviewed-status label when review outcome is submitted.
- Treat both review outcomes as completion: "Approved" and "Request changes".
Out of Scope
- Changing label behavior before review completion.
- Changing reviewer assignment flow.
- Modifying other labels not related to review completion status.
3. Users / Roles Affected
- Pull request authors
- Code reviewers
- Team members tracking pull request status via labels
4. Functional Requirements
- If a pull request has the "Ready for review" label, and a reviewer submits an "Approved" review, the "Ready for review" label must be removed.
- If a pull request has the "Ready for review" label, and a reviewer submits a "Request changes" review, the "Ready for review" label must be removed.
- After either of the above review submissions, a reviewed-status label must be added to the pull request.
- The reviewed-status label to add must match one agreed label name from the available options in this issue.
5. Business Rules / Constraints
- The trigger event is review completion, specifically when outcome is "Approved" or "Request changes".
- Label naming must use an existing label from the repository label set.
- Existing behavior that adds "Ready for review" when PR is assigned for review remains unchanged.
6. Acceptance Criteria
- Given a pull request labeled "Ready for review", when a reviewer submits "Approved", then "Ready for review" is removed.
- Given a pull request labeled "Ready for review", when a reviewer submits "Request changes", then "Ready for review" is removed.
- Given either review outcome above, when review is submitted, then one reviewed-status label is added.
- Given this automation runs, when checking labels afterward, then both "Ready for review" and the reviewed-status label are not present together.
7. Open Questions
- Which exact reviewed-status label should be used consistently: "status : reviewed" or "Reviewed"?
- Answer - Primarily "status : reviewed", but should support "Reviewed"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels