I'm writing a plugin for BitBucket Server, that is displayed during a pull-request on the review/diff view. As part of this, I'd like to know what file the developer/reviewer is currently looking at. Does anyone know how to look up the current active file?
I looked through the Developer docs and couldn't find any points of reference to help figure this out.
- Mike D.
I think I was able to figure this out, albeit this might not be the best solution.
var filePath = require('bitbucket/internal/model/page-state').getFilePath(); var fullPath = filePath.attributes.components.join('/');
- Mike D.
As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...
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!
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