It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
I'm writing a plugin that will flag changed files in a pull request and block it from being merged.
I have a merge request check, the only part I can figure out is how to get a list of files changed for the pull request. I see these is a simple way to get changed files from rest api, is there a good way to do this in a plugin?
That was quick, thanks! Exactly what I was looking for. I looked at that page before but thought it was just for managing comments on a pull request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
I tried to implement for pullrequest#streamChanges
pullRequestService.streamChanges(prOpEvent.getPullRequest().getToRef().getRepository().getId(), prOpEvent.getPullRequest().getId(), new ChangeCallback() {
@Override
public void onStart() throws IOException { }
@Override
public void onEnd(boolean arg0) throws IOException { }
@Override
public boolean onChange(Change change) throws IOException {
//filePath = change.getPath().getName();
//here im updating the file paths to
update_merge_digite_zendesk_merge(change.getPath().getName());
return false;
}
});
I commited the mutiple files but im not getting all of them..
same problem im facing wit commitservice#streamChanges().
FYI,
https://answers.atlassian.com/questions/281740/how-to-get-the-modified-file-name-with-pullrequest?page=1#comment-298210
Regards
Anil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
return false;
In your onChange method when you return false this ends the change stream. Return true to tell it to grab the next change.
https://developer.atlassian.com/static/javadoc/stash/2.10.2/api/reference/com/atlassian/stash/content/ChangeCallback.html
Also you're using a deprecated method, you should do something like this instead:
pullRequestService.streamChanges(new PullRequestChangesRequest.Builder(pullRequest).build(), new ChangeCallback() {
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kyle,
I have problem while creating pull requests with REST API and posted in this
https://answers.atlassian.com/questions/296102/mutiple-pull-requests-with-command-prompt-and-not-with-stash-server
Any suggestion please.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.