Skip to content

Commit 7be72ad

Browse files
committed
Update to createLineComment name to make it clear what it does
It was hard to understand the difference between createComment and createPullRequestComment The createPullRequestComment creates a comment that is not on a line (like PR summary)
1 parent 1751287 commit 7be72ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/scala/com/codacy/client/bitbucket/service/PullRequestServices.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ class PullRequestServices(client: BitbucketClient) {
7878
postNewComment(author, repo, prId, values)
7979
}
8080

81-
def createComment(author: String, repo: String, prId: Int, commitUUID: String, body: String, file: Option[String], line: Option[Int]): RequestResponse[PullRequestComment] = {
81+
def createLineComment(author: String, repo: String, prId: Int, commitUUID: String, body: String,
82+
file: Option[String], line: Option[Int]): RequestResponse[PullRequestComment] = {
8283
val params = file.map(filename => "filename" -> JsString(filename)) ++
8384
line.map(lineTo => "line_to" -> JsNumber(lineTo))
8485

0 commit comments

Comments
 (0)