Skip to content
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

how to send customizable set of options in cli? #68

Closed
dozer47528 opened this issue Aug 8, 2014 · 2 comments
Closed

how to send customizable set of options in cli? #68

dozer47528 opened this issue Aug 8, 2014 · 2 comments

Comments

@dozer47528
Copy link

- (Array<Gitlab::ObjectifiedHash>) merge_requests(project, options = {})

Gets a list of project merge requests.

Examples:

Gitlab.merge_requests(5)
Gitlab.merge_requests(:per_page => 40)
Parameters:
project (Integer) — The ID of a project.
options (Hash) (defaults to: {}) — A customizable set of options.

how to send the options argument?

@jvanbaarsen
Copy link
Contributor

@dblessing Can you take a look?

@asedge
Copy link
Collaborator

asedge commented Dec 2, 2014

I have something working for this and it will require options to be sent as a valid YAML hash:

$ ./bin/gitlab create_merge_request 4 "This should work." "{source_branch: 'new_branch', target_branch: 'master', assignee_id: 1}"

Code has just been pushed up to the master branch.

@asedge asedge closed this as completed Dec 2, 2014
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

No branches or pull requests

3 participants