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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Review Coverage of a single branch

How can I find out the review coverage of a single code branch using crusible/fisheye and git?

The reports show me the commits in a week and which ones have been reviewed but as a lot of our branches are personal developer and project branches where we don't require code reviews on all commits it very hard to find out the coverage level of our pre-release branch.

Drew

2 answers

1 accepted

1 vote
Answer accepted

I've found a couple of ways to solve review coverage on branches, at least with SVN. I think it should work with GIT also, but YMMV.

Use a Query

  1. Open a search view for a Source repository
    1. Select "Source" from the top menu
    2. Select the repository
    3. Select "Search" from the "tabs" on the right
    4. Select "Switch to EyeQL Search" from the bottom left of the left pane
  2. For the Components, run this query and look for items with a blank in the “Reviews” column

    select revisions where not reviewed and not is deleted and is head on **MY_BRANCH** order by date desc group by changeset return path, revision, author, date, reviews

Run the Code Coverage Report on the Branch

The Coverage Report is run for the subtree of the repository File browser view from which it was called.

  1. Open the repository view for the repository.
  2. Select the appropriate branch and/or sub-tree
  3. Select Reports from the "tabs" on the right
  4. Select "Review Coverage"

Both of these solutions require a Fisheye license, which ruled them out for me.

Thanks we do have fisheye so I tried both methods.

The Query works but the Code Coverage Report method doesn't as the report is ignoring the selected branch and reporting for the whole repository.

@Drew I'm glad at least one worked for you. For me, running with SVN repositories, both methods seem to work for me. I wonder if there is something slighly different between how things work with SVN and GIT.

Hello John, the methods you listed above are using crucible, right? thank you!

Hi Drew,

I had exactly the same problem, and ended up writing a plugin to solve it. I've listed it as a paid-plugin on the Marketplace. Feel free to contact me privately to discuss.

https://marketplace.atlassian.com/plugins/biz.deref.flyover.flyoverForCrucible

Alex

Thanks for the pointer. I had seen the plugin but it's not very clear what reports it adds and since I don't have admin access to the server I couldn't install the trial version to find out. Are there screen shots/detailed descriptions of what it adds anywhere?

Good point. I have added more information to the plugin home page: http://deref.co.nz/Flyover

I've asked our IT department to install the trial as it does look to be a clearer method of finding the answer.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Bitbucket Smart Commits vs. Genius Commits - What's the difference?

If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...

130 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you