lib/gitlab/client/issues.rb in gitlab-3.4.0 vs lib/gitlab/client/issues.rb in gitlab-3.5.0
- old
+ new
@@ -35,10 +35,14 @@
get("/projects/#{project}/issues/#{id}")
end
# Creates a new issue.
#
+ # @example
+ # Gitlab.create_issue(5, 'New issue')
+ # Gitlab.create_issue(5, 'New issue', :description => "This is a new issue", :assignee_id => 42)
+ #
# @param [Integer] project The ID of a project.
# @param [String] title The title of an issue.
# @param [Hash] options A customizable set of options.
# @option options [String] :description The description of an issue.
# @option options [Integer] :assignee_id The ID of a user to assign issue.
@@ -49,9 +53,12 @@
body = {:title => title}.merge(options)
post("/projects/#{project}/issues", :body => body)
end
# Updates an issue.
+ #
+ # @example
+ # Gitlab.edit_issue(6, 1, :title => 'Updated title')
#
# @param [Integer] project The ID of a project.
# @param [Integer] id The ID of an issue.
# @param [Hash] options A customizable set of options.
# @option options [String] :title The title of an issue.