Closed cghyzel closed 1 month ago
A screenshot of the relevant part of docs after the changes is a life saver 🛟
The changes in this pull request include:
Documentation Update:
Configuration File Updates:
In the review_source_branch.cm
configuration file:
name
field comes before the prefix
field.In the review_target_branch.cm
configuration file:
name
now preceding prefix
.reviewers
field that specifies which team is responsible for reviewing PRs targeting certain branches, such as org/release-team
for the Release branch and org/experiment-team
for the Experimental branch. Prior, these fields were either not listed or incorrectly aligned with other entries.
Documentation Update:
YAML Configuration Updates:
name
and reviewers
fields before prefix
in both review_source_branch.cm
and review_target_branch.cm
files for consistency and clarity.review_source_branch.cm
:review_target_branch.cm
:reviewers
field for each branch configuration to specify organizational teams assigned for code reviews on respective branches.
From the provided diffs, only cm
(gitStream Configuration) files are relevant as there are no js
file changes. Here is the review of the cm
files:
review_source_branch.cm
Bug/Consistency:
branches
are now structured consistently with both name
and prefix
fields. This update addresses any inconsistency present in the previous versions regarding the key ordering.Performance:
Best Practices:
prefix
) for branch matching is an efficient approach and considered a best practice.{% for item in branches %}
) is positive.Improvement Suggestions:
approvals
and the actual add-reviewers@v1
action to ensure they are aligned with organizational policy or changes in the team structure.review_target_branch.cm
Bug/Consistency:
name
, prefix
, and reviewers
for branches. This provides a cleaner data structure and better maintainability.Performance:
Best Practices:
Improvement Suggestions:
reviewers: org/release-team
and reviewers: org/experiment-team
) reflect current team membership to keep review processes up to date.review_target_branch_{{ item.name }}
) can improve clarity.No security risks are apparent in the changes, but ensure that the data in reviews
and reviewers
variables sourced from any external input is validated and sanitized.
branch[*].reviewers
property indocs/downloads/automation-library/standard/review-assignment/review_target_branch.cm
docs/downloads/automation-library/standard/review-assignment/review_source_branch.cm
&docs/downloads/automation-library/standard/review-assignment/review_target_branch.cm
so that branch properties are in alphabetical order, which is also the order of reference to the properties by the gitstream automation script. This should improve readability.