workflow that requires a code-review for each fix
Is there an existing workflow that requires a code-review for fixes? Our team is young and we need to insure that all code that is applied to fix bugs gets reviewed before it is integrated into the main repo. I'd like this to be part of the bug flow so that bugs are assigned, fixes are coded, then the issue passes through a code review step, which possibly includes returning it to the open state for further work before it is finally integrated and on to the step where it is verified and finally marked as fixed and closed.
Please sign in to leave a comment.
The ideal flow would have an assigned 'Integrator' Role, that could
include 1 or more users.
Once work on a feature/bugfix is completed, then the state should be
something like 'Code Complete' or 'Fixed'. At that point the state
should transition to 'Code Review' where one of the integrators could
review the code and merge it into the mainline.
Having a 'Reviewed by' field would work great, and probably states such
as 'Reviewed' and 'Integrated' would be ideal.
We also have a verification process, so the feature/issue should go
through a 'Verify' step also.
Is there a good documentation on the workflows? I'd like to find out
more about the states flows.
Ed
Dmitry Krasilschikov - YouTrack wrote:
This workflow requires to fill the user[1] field 'Reviewed by' on state transition to 'Reviewed':
rule Require reviewed by when State.becomes({Reviewed}) { Reviewed by.required("Reviewed by user is required."); }More workflow examples you can find in the Workflow Language Quick Reference.
review.zip (1.5KB)