Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I Automatically create Crucible reviews every _week_ ?

Peter Drier
Contributor
September 27, 2011

Basically want to force a peer review via crucible. Person A's checkins for the week assigned to B, and B's checkins assigned to A. Preferably done automaticaly, but if I can do it in a few clicks, that's ok too.

Seems like it should be a basic use case for Crucible, but not so much. At best I've seen where a single svn checkin can be turned into a review, but that's too small for our flow.

2 answers

0 votes
Pierre-Etienne Poirot
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 13, 2011

Alternatively, you might be able to do it using Crucible's REST API (the examples below is with Mercurial):

* for each user:

* create the review: http://confluence.atlassian.com/display/CRUCIBLE/Review+Service+-+Reviews#ReviewService-Reviews-CreateReview

* generate a list of changeset IDs for the user for that week: hg log -d "Oct 10 to Oct 14" --template="{node}\n" -u "username" > user-week10.txt

* add the changeset IDs to the review: http://confluence.atlassian.com/display/CRUCIBLE/Review+Service+-+Reviews#ReviewService-Reviews-AddChangesetToReview

Alternatively, you can do:

* for each user:

* generate a patch with the commits of the user from the week: hg log -d "Oct 10 to Oct 14" -p --template="\n" -u "username" > user-week10.patch

* add the patch file to the review: http://confluence.atlassian.com/display/CRUCIBLE/Review+Service+-+Reviews#ReviewService-Reviews-AddChangesetToReview

0 votes
mwatson
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 27, 2011

AFAIK there is no plugin to do exactly what you want, but it wouldn't be too hard to create a plugin to do this - the best starting point would be the Automatic Review Creation Plugin: https://plugins.atlassian.com/plugin/details/14896

Peter Drier
Contributor
October 12, 2011

1. It's hard to make a plugin for Hosted Studio.. 2. Does anyone use this plugin as is? we do maybe 200 commits a week, some small, some big. I can't imagine reviewing everything individually.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events