Skip to content

Commit 6d2a902

Browse files
authored
Merge pull request #707 from adamcohen2/fix-rdoc-for-create_commit
Fix example rdoc comment for create_commit
2 parents eb1a59c + dbc09a7 commit 6d2a902

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/gitlab/client/commits.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ def update_commit_status(project, sha, state, options = {})
172172

173173
# Creates a single commit with one or more changes
174174
#
175-
# @see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
175+
# @see https://docs.gitlab.com/api/commits/#create-a-commit-with-multiple-files-and-actions
176176
# Introduced in Gitlab 8.13
177177
#
178178
# @example
179-
# Gitlab.create_commit(2726132, 'master', 'refactors everything', [{action: 'create', file_path: '/foo.txt', content: 'bar'}])
180-
# Gitlab.create_commit(2726132, 'master', 'refactors everything', [{action: 'delete', file_path: '/foo.txt'}])
179+
# Gitlab.create_commit(2726132, 'master', 'refactors everything', [{action: 'create', file_path: '/foo.txt', content: 'bar'}])
180+
# Gitlab.create_commit(2726132, 'master', 'refactors everything', [{action: 'delete', file_path: '/foo.txt'}])
181181
#
182-
# @param [Integer, String] project The ID or name of a project.
182+
# @param [Integer, String] project The ID or name of a project.
183183
# @param [String] branch the branch name you wish to commit to
184184
# @param [String] message the commit message
185185
# @param [Array[Hash]] An array of action hashes to commit as a batch. See the next table for what attributes it can take.

0 commit comments

Comments
 (0)