Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended comments API to also fetch orphaned/outdated pull request co… #171

Merged
merged 2 commits into from
Feb 16, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update CommentsApi.java
cdancy authored Feb 16, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 44b652e821109bc471fd943b50e082235019ea80
14 changes: 14 additions & 0 deletions src/main/java/com/cdancy/bitbucket/rest/features/CommentsApi.java
Original file line number Diff line number Diff line change
@@ -88,6 +88,20 @@ Comments get(@PathParam("project") String project,
@PathParam("pullRequestId") int pullRequestId,
@PathParam("commentId") int commentId);

@Deprecated
@Named("comments:file-comments-deprecated")
@Documentation({"https://developer.atlassian.com/static/rest/bitbucket-server/latest/bitbucket-rest.html#idm45888278617264"})
@Consumes(MediaType.APPLICATION_JSON)
@Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/comments")
@Fallback(CommentPageOnError.class)
@GET
CommentPage fileComments(@PathParam("project") String project,
@PathParam("repo") String repo,
@PathParam("pullRequestId") int pullRequestId,
@QueryParam("path") String pathToFile,
@Nullable @QueryParam("start") Integer start,
@Nullable @QueryParam("limit") Integer limit);

@Named("comments:file-comments")
@Documentation({"https://developer.atlassian.com/static/rest/bitbucket-server/latest/bitbucket-rest.html#idm45888278617264"})
@Consumes(MediaType.APPLICATION_JSON)