Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@SeanSith
Copy link
Contributor

Following up on the feedback in #343 fixed the failing test.

Copy link
Owner

@NARKOZ NARKOZ left a 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.

# @return [Array<Gitlab::ObjectifiedHash>]
def group_issues(group=nil, options={})
get("/groups/#{group}/issues", query: options)
end
Copy link
Owner

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

end

describe '.issue' do
describe ".group_issues" do
Copy link
Owner

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.

# @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={})
Copy link
Owner

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.

- Per @NARKOZ's comments on #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.
# @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 = {})
Copy link
Owner

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.

@NARKOZ NARKOZ merged commit 1e7be08 into NARKOZ:master Feb 8, 2019
@NARKOZ
Copy link
Owner

NARKOZ commented Feb 8, 2019

Thank you!

@SeanSith SeanSith deleted the get-group-issues branch February 8, 2019 14:13
haghighi pushed a commit to haghighi/gitlab that referenced this pull request Jun 22, 2019
* 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
onshi pushed a commit to onshi/gitlab that referenced this pull request Apr 30, 2020
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants