Skip to content

Commit e83eeb0

Browse files
committed
update version and comments
1 parent c553cc5 commit e83eeb0

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

shard.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: octokit
2-
version: 0.2.5
2+
version: 0.3.0
33

44
authors:
55
- Grant Birkinbine

src/octokit/client/pull_requests.cr

+20-12
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ module Octokit
147147
alias_method :pull_request_commits, :pull_commits
148148

149149
# List review comments on a pull request
150+
#
150151
# This method applies to pull request review comments. Pull request review comments are NOT the same as standard comments left on PRs - those are issue comments.
152+
#
151153
# **See Also:**
152154
# - [https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request](https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request)
153155
#
@@ -168,6 +170,8 @@ module Octokit
168170

169171
# List comments on a pull request
170172
#
173+
# This method applies to pull request review comments. Pull request review comments are NOT the same as standard comments left on PRs - those are issue comments.
174+
#
171175
# **See Also:**
172176
# - [https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request](https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request)
173177
#
@@ -189,6 +193,8 @@ module Octokit
189193

190194
# Get a single comment on a pull request
191195
#
196+
# This method applies to pull request review comments. Pull request review comments are NOT the same as standard comments left on PRs - those are issue comments.
197+
#
192198
# **See Also:**
193199
# - [https://developer.github.com/v3/pulls/comments/#get-a-single-comment](https://developer.github.com/v3/pulls/comments/#get-a-single-comment)
194200
#
@@ -206,25 +212,27 @@ module Octokit
206212

207213
# Create a comment on a pull request
208214
#
215+
# This method applies to pull request review comments. Pull request review comments are NOT the same as standard comments left on PRs - those are issue comments.
216+
#
209217
# **See Also:**
210218
# - [https://developer.github.com/v3/pulls/comments/#create-a-comment](https://developer.github.com/v3/pulls/comments/#create-a-comment)
211219
#
212-
# repo (String) — A GitHub repository
213-
# number (Integer) — Pull request number
214-
# body (String) — Comment content
215-
# commit_id (String) — Sha of the commit to comment on
216-
# path (String) — Relative path of the file to comment on
217-
# line (Integer) — Line number in the diff to comment on
218-
# side (String) — Side of the diff that the comment applies to (LEFT or RIGHT)
219-
# start_line (Integer) — Start line for multi-line comments
220-
# start_side (String) — Start side for multi-line comments (LEFT or RIGHT)
221-
# in_reply_to (Integer) — ID of the review comment to reply to
222-
# subject_type (String) — Level at which the comment is targeted (line or file)
220+
# - repo (String) — A GitHub repository
221+
# - number (Integer) — Pull request number
222+
# - body (String) — Comment content
223+
# - commit_id (String) — Sha of the commit to comment on
224+
# - path (String) — Relative path of the file to comment on
225+
# - line (Integer) — Line number in the diff to comment on
226+
# - side (String) — Side of the diff that the comment applies to (LEFT or RIGHT)
227+
# - start_line (Integer) — Start line for multi-line comments
228+
# - start_side (String) — Start side for multi-line comments (LEFT or RIGHT)
229+
# - in_reply_to (Integer) — ID of the review comment to reply to
230+
# - subject_type (String) — Level at which the comment is targeted (line or file)
223231
#
224232
# **Examples:**
225233
#
226234
# ```
227-
# Octokit.create_pull_request_comment("crystal-lang/crystal", 123, "Comment body", "commit_id", "path", 1, side: "RIGHT")
235+
# Octokit.create_pull_request_comment("crystal-lang/crystal", 123, "Comment body", "commit_id", "path/to/file.txt", 1, side: "RIGHT")
228236
# ```
229237
def create_pull_request_comment(
230238
repo : String,

src/octokit/version.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Octokit
2-
VERSION = "0.2.5"
2+
VERSION = "0.3.0"
33
end

0 commit comments

Comments
 (0)