-
-
Notifications
You must be signed in to change notification settings - Fork 400
Add group-issues API (redux) #465
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
Conversation
NARKOZ
left a comment
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.
Thanks. I've left comments.
lib/gitlab/client/issues.rb
Outdated
| # @return [Array<Gitlab::ObjectifiedHash>] | ||
| def group_issues(group=nil, options={}) | ||
| get("/groups/#{group}/issues", query: options) | ||
| end |
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.
This should go into lib/gitlab/client/groups.rb
spec/gitlab/client/issues_spec.rb
Outdated
| end | ||
|
|
||
| describe '.issue' do | ||
| describe ".group_issues" do |
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.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
lib/gitlab/client/issues.rb
Outdated
| # @param [Integer, String] group_id The ID or name of a group. | ||
| # @param [Hash] options A customizable set of options. | ||
| # @return [Array<Gitlab::ObjectifiedHash>] | ||
| def group_issues(group=nil, options={}) |
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.
Surrounding spaces missing in default value assignments.
lib/gitlab/client/groups.rb
Outdated
| # @param [Integer, String] group_id The ID or name of a group. | ||
| # @param [Hash] options A customizable set of options. | ||
| # @return [Array<Gitlab::ObjectifiedHash>] | ||
| def group_issues(group = nil, options = {}) |
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.
First argument (group) is required therefore shouldn't have a default value.
|
Thank you! |
* Add get-group-issues * Fix failing shell_spec test for completions * Moved group_issues to Gitlab::Client::Groups - Per @NARKOZ's comments on NARKOZ#465, moved `group_issues` into lib/gitlab/client/groups.rb - Following with the above, moved the test to groups_spec.rb, as well. - Corrected linting failures noted by @NARKOZ and rspec. * group_issues: Removed default for 'group' parameter
* Add get-group-issues * Fix failing shell_spec test for completions * Moved group_issues to Gitlab::Client::Groups - Per @NARKOZ's comments on NARKOZ#465, moved `group_issues` into lib/gitlab/client/groups.rb - Following with the above, moved the test to groups_spec.rb, as well. - Corrected linting failures noted by @NARKOZ and rspec. * group_issues: Removed default for 'group' parameter
Following up on the feedback in #343 fixed the failing test.