From 2824d1fdb3e3428b2a2b94c35315a9659de0fed9 Mon Sep 17 00:00:00 2001 From: Chris Ghyzel Date: Thu, 5 Sep 2024 12:11:56 -0700 Subject: [PATCH 1/2] fixed broken review-target-branch link --- docs/automations/standard/branch-management/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/automations/standard/branch-management/README.md b/docs/automations/standard/branch-management/README.md index 331d76a3..a881d4d8 100644 --- a/docs/automations/standard/branch-management/README.md +++ b/docs/automations/standard/branch-management/README.md @@ -10,7 +10,7 @@ Use gitStream to enforce branch naming conventions, review assignment, and other [Enforce Branch Naming Conventions](#enforce-branch-name) - Automatically enforce prefixes or keywords in PR branch names. -[Assign Reviewers Based on Target Branch](#review-target-branch) - Automatically assign PR reviewers for target branches that include a specified keyword. +[Branch-Based Review Policies](#review-branch) - Automatically assign PR reviewers for target branches that include a specified keyword. @@ -18,6 +18,11 @@ Use gitStream to enforce branch naming conventions, review assignment, and other --8<-- "docs/automations/standard/branch-management/enforce-branch-name/README.md:example" + +## Branch-Based Review Policies + +--8<-- "docs/automations/standard/review-assignment/review-branch/README.md:example" + ## Additional Resources --8<-- "docs/snippets/general.md" From f35561057386ee8a9572ce37fe66c66d7abc5007 Mon Sep 17 00:00:00 2001 From: Chris Ghyzel Date: Thu, 5 Sep 2024 12:25:46 -0700 Subject: [PATCH 2/2] reformatted review_source/target_branch.cm & fixed review_target_branch.cm to have reviewers --- .../review-assignment/review_source_branch.cm | 8 ++++---- .../review-assignment/review_target_branch.cm | 12 +++++++----- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/docs/downloads/automation-library/standard/review-assignment/review_source_branch.cm b/docs/downloads/automation-library/standard/review-assignment/review_source_branch.cm index 5b251c4d..d0fe6959 100644 --- a/docs/downloads/automation-library/standard/review-assignment/review_source_branch.cm +++ b/docs/downloads/automation-library/standard/review-assignment/review_source_branch.cm @@ -20,9 +20,9 @@ automations: {% endfor %} branches: - - prefix: r/^ABC/ + - name: ABC + prefix: r/^ABC/ reviewers: org/a-team - name: ABC - - prefix: r/^XYZ-/ + - name: XYZ + prefix: r/^XYZ-/ reviewers: org/x-team - name: XYZ diff --git a/docs/downloads/automation-library/standard/review-assignment/review_target_branch.cm b/docs/downloads/automation-library/standard/review-assignment/review_target_branch.cm index 548f6c8d..8e35b6b5 100644 --- a/docs/downloads/automation-library/standard/review-assignment/review_target_branch.cm +++ b/docs/downloads/automation-library/standard/review-assignment/review_target_branch.cm @@ -20,9 +20,11 @@ automations: {% endfor %} branches: - - prefix: r/^release/ + - name: Release + prefix: r/^release/ + reviewers: org/release-team reviews: 4 - name: Release - - prefix: r/^experimental-/ - reviews: 1 - name: Experimental \ No newline at end of file + - name: Experimental + prefix: r/^experimental-/ + reviewers: org/experiment-team + reviews: 1 \ No newline at end of file