@@ -14,9 +14,31 @@ Selecting Reviewers
1414-------------------
1515
1616There is a space in the pull request template to list the GitHub user ID of the
17- scitech and code reviewers. These can also be filled into the appropriate
17+ scitech and code reviewers - these will also be filled into the appropriate
1818:ref: `project spaces <review_project >`.
1919
20+ .. admonition :: Requesting a Review
21+
22+ Review requests are handled in the ``Reviewers `` pane on the right hand
23+ side of a pull request.
24+
25+ In Simulation Systems repositories, SciTech and Code Reviewers will be
26+ automatically requested by a workflow, based on entries in the Pull Request
27+ Template.
28+
29+ To request a review manually, select the cog, and then search for the person
30+ you wish to review by either name or GitHub user ID.
31+
32+ .. image :: images/gh_screenshots/review_cog_light.png
33+ :class: only-light border
34+
35+ .. image :: images/gh_screenshots/review_cog_dark.png
36+ :class: only-dark border
37+
38+ Code owners in some repositories will automatically be added to this
39+ reviewers section based on the files being changed.
40+
41+
2042SciTech Review
2143^^^^^^^^^^^^^^
2244
@@ -25,8 +47,9 @@ owner(s) for the area affected. If they don't want to then they may have
2547suggestions for other suitable reviewers or you can approach anyone who would
2648have good insight into the changes made.
2749
28- Once you have found a reviewer add their GitHub user ID to the pull request
29- description and request their review.
50+ Once you have found a reviewer and are ready for review, add their GitHub user
51+ ID to the pull request description. Their review will automatically be
52+ requested by the :ref: `review project workflow <review_project >`.
3053
3154Guidance for the SciTech reviewer can be found on the
3255:ref: `SciTech review page <scitech_review >`.
@@ -42,30 +65,13 @@ leave a comment for ``@MetOffice/ssdteam`` on the pull request.
4265
4366The assigned person will be listed in the pull request description and
4467:ref: `Review Tracking project <review_project >`. Once the SciTech review has
45- been completed either the developer or SciTech reviewer should request the
46- review of the assigned Code Reviewer.
68+ been completed, the Code Reviewer will be automatically requested (unless they
69+ are already requested as a Code Owner - in this case you may want to tag them to
70+ make them aware).
4771
4872Guidance for the Code reviewer can be found on the
4973:ref: `Code review page <code_review >`.
5074
51- .. admonition :: Requesting a Review
52-
53- Review requests are handled in the ``Reviewers `` pane on the right hand
54- side of a pull request.
55-
56- Select the cog, and then search for the person you wish to review by
57- either name or GitHub user ID.
58-
59- .. image :: images/gh_screenshots/review_cog_light.png
60- :class: only-light border
61-
62- .. image :: images/gh_screenshots/review_cog_dark.png
63- :class: only-dark border
64-
65- Code owners in some repositories will automatically be added to this
66- reviewers section based on the files being changed.
67-
68-
6975.. _review_project :
7076
7177Simulation Systems Review Tracker
@@ -82,45 +88,27 @@ sidebar of the pull request:
8288 :class: only-dark border
8389
8490The project is used to give pull requests a status that distinguishes between
85- the different review states, and to monitor who is doing the reviews.
86-
87- Some states are achieved automatically, some require changing manually:
88-
89- * When the developer feels a PR is ready for the SciTech or Code Reviewer to
90- look at (either initially, or after changes have been made) the state should
91- be **manually ** changed to ``SciTech Review `` or ``Code Review `` as
92- appropriate.
93-
94- * When the SciTech Review has been completed the state should be **manually **
95- changed to Code Review.
96-
97- * When the Code Review has been completed the state should be **manually **
98- changed to Approved.
99-
100- Automatic changes include:
101-
102- * When changes are requested by a reviewer the state becomes ``Changes Requested ``
103- * When the pull request has been merged, or otherwise closed, the state becomes
104- ``Done ``
105-
106- .. important ::
107- Changing the project status **does not ** notify the reviewer. To do this:
108-
109- * When the SciTech Review has been completed you should add the assigned Code
110- Reviewer to the list of reviewers. This will notify them that their review is
111- required.
112-
113- * If a reviewer has requested changes then you can alert them that you are
114- ready for another review by using GitHubs ``rerequest review `` option;
115- selecting the circling arrows to the right of the reviewers name.
116-
117- .. image :: images/gh_screenshots/rerequest_light.png
118- :class: only-light border
91+ the different review states, and to monitor who is doing the reviews. The state
92+ and fields of the project are automatically updated by github actions.
93+
94+ * The developer should tag the SciTech Reviewer in the Pull Request template
95+ when you are ready for review. This will request a review from them and update
96+ the state to SciTech Review.
97+ * The SSD team will add a Code Reviewer. When the Scitech Review has been
98+ completed a review from the Code Reviewer will automatically be requested, and
99+ the project state updated. If the Pull Request is trivial, you will need to
100+ manually request a review from the Code Reviewer.
101+ * As reviews are completed the state will move to ``Changes Requested `` and
102+ ``Approved `` as appropriate. Re-request a review once any changes have been
103+ made.
104+
105+ .. image :: images/gh_screenshots/rerequest_light.png
106+ :class: only-light border
119107
120- .. image :: images/gh_screenshots/rerequest_dark.png
121- :class: only-dark border
108+ .. image :: images/gh_screenshots/rerequest_dark.png
109+ :class: only-dark border
122110
123- * You can ``@username `` in any comment to draw that persons attention to the
111+ * You can ``@username `` in any comment to draw that persons attention to the
124112 pull request.
125113
126114
0 commit comments