Method: Gitlab::Client::Wikis#create_wiki
- Defined in:
- lib/gitlab/client/wikis.rb
#create_wiki(project, title, content, options = {}) ⇒ Gitlab::ObjectifiedHash
Creates a new wiki page for the given repository with the given title, slug, and content.
45 46 47 48 |
# File 'lib/gitlab/client/wikis.rb', line 45 def create_wiki(project, title, content, = {}) body = { content: content, title: title }.merge() post("/projects/#{url_encode project}/wikis", body: body) end |