Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f4845df

Browse filesBrowse files
implement ability to list comments of a specific commit
1 parent f1ca0b5 commit f4845df
Copy full SHA for f4845df

File tree

Expand file treeCollapse file tree

1 file changed

+14
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-0
lines changed

‎src/main/java/org/kohsuke/github/GHRepository.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRepository.java
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,6 +1788,20 @@ public PagedIterable<GHCommitComment> listCommitComments() {
17881788
.toIterable(GHCommitComment[].class, item -> item.wrap(this));
17891789
}
17901790

1791+
/**
1792+
* Lists all comments on a specific commit.
1793+
*
1794+
* @param commitSha
1795+
* the hash of the commit
1796+
*
1797+
* @return the paged iterable
1798+
*/
1799+
public PagedIterable<GHCommitComment> listCommitComments(String commitSha) {
1800+
return root.createRequest()
1801+
.withUrlPath(String.format("/repos/%s/%s/commits/%s/comments", getOwnerName(), name, commitSha))
1802+
.toIterable(GHCommitComment[].class, item -> item.wrap(this));
1803+
}
1804+
17911805
/**
17921806
* Gets the basic license details for the repository.
17931807
* <p>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.