Skip to content

Commit

Permalink
improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NARKOZ committed Nov 28, 2014
1 parent 3a8d339 commit 1f4ef8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/gitlab/client/repositories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ def commit_comments(project, commit, options={})
# @param [Integer] project The ID of a project.
# @param [String] sha The commit hash or name of a repository branch or tag.
# @param [String] note The text of a comment.
# @param [Hash] options A customizable set of options.
# @option options [String] :path The file path.
# @option options [Integer] :line The line number.
# @option options [Integer] :line_type The line type (new or old).
# @option options [String] :line_type The line type (new or old).
# @return [Gitlab::ObjectifiedHash] Information about created comment.
def create_commit_comment(project, commit, note, options={})
post("/projects/#{project}/repository/commits/#{commit}/comments", :body => options.merge(:note => note))
Expand All @@ -113,6 +114,8 @@ def create_commit_comment(project, commit, note, options={})
#
# @param [Integer] project The ID of a project.
# @param [Hash] options A customizable set of options.
# @option options [String] :path The path inside repository.
# @option options [String] :ref_name The name of a repository branch or tag.
# @return [Gitlab::ObjectifiedHash]
def tree(project, options={})
get("/projects/#{project}/repository/tree", query: options)
Expand Down

0 comments on commit 1f4ef8e

Please sign in to comment.