Is there an API call to update the source under review with new commits?

I have created a review that is based on a branch from my BitBucket server, but when new commits get added to the branch, the source in the review doesn't update. I have turned on the Auto Update feature, but it doesn't seem to be catching the new commits during the reindex ever 60 seconds. I have to click the "Update now" link on the branch in the review. 

I would like to create a hook that automatically does this for me when the branch is changed, but I can't find any REST API calls to make this happen. I have tried repositories-v1/{repository}/reindex-reviews and repositories-v1/{repository}/scan to no avail. Both returned success, but it didn't change the review. 

1 answer

0 vote

Can you confirm that FishEye completed indexing of the new commits and that you can see them when browsing repository? 

I am asking because not having the code review updated automatically when the 'Auto Update' is enabled seems more like a bug. And the REST API is rather obsolete - i.e. simply the bug should be solved.

I can confirm that the indexing had been completed and the changes were visible.

 

We have a script which automatically creates the review for each pull request, and it uses an undocumented API call to add the branch to the review. So I'm wondering if that has anything to do with it. It shows up correctly and auto-update is turned on when I view the review. So I was hoping for a way to force it to update by adding a hook to the BitBucket pull request process for new commits.

I can confirm that the indexing had been completed and the changes were visible.

 

We have a script which automatically creates the review for each pull request, and it uses an undocumented API call to add the branch to the review. So I'm wondering if that has anything to do with it. It shows up correctly and auto-update is turned on when I view the review. So I was hoping for a way to force it to update by adding a hook to the BitBucket pull request process for new commits

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted yesterday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

50 views 2 2
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you