-
-
Notifications
You must be signed in to change notification settings - Fork 400
Added wikis API #442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added wikis API #442
Conversation
|
Thank you ❤️ |
| # | ||
| # @example | ||
| # Gitlab.update_wiki(6, 'home', { title: 'New title' }) | ||
| # Gitlab.update_wiki(6, 'home', { title: 'New title', message: 'New Message', format: 'rdoc' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR is welcome
| # | ||
| # @example | ||
| # Gitlab.create_wiki(3, 'Some Content', 'Some Title') | ||
| # Gitlab.create_wiki(3, 'Some Content', 'Some Title', { format: 'rdoc' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The content and title need to be switched here, and in the parameters below
| # | ||
| # @param [Integer, String] project The ID or name of a project. | ||
| # @param [Hash] options A customizable set of options. | ||
| # @option options [String] :with_content(optional) Include pages content |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is :with_content supposed to be a symbol?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like it is, but the other options in this file aren't symbols, that should probably be fixed :)
Wikis API
Gitlab.wikis(project)Gitlab.wiki(project, slug)Gitlab.create_wiki(project, title, content, options = {})Gitlab.update_wiki(project, slug, options)Gitlab.delete_wiki(project, slug)Closes #437