├── .gitignore ├── .travis.yml ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── bin └── gitlab ├── gitlab.gemspec ├── lib ├── gitlab.rb └── gitlab │ ├── api.rb │ ├── cli.rb │ ├── cli_helpers.rb │ ├── client.rb │ ├── client │ ├── branches.rb │ ├── groups.rb │ ├── issues.rb │ ├── merge_requests.rb │ ├── milestones.rb │ ├── notes.rb │ ├── projects.rb │ ├── repositories.rb │ ├── snippets.rb │ ├── system_hooks.rb │ └── users.rb │ ├── configuration.rb │ ├── error.rb │ ├── help.rb │ ├── objectified_hash.rb │ ├── request.rb │ ├── shell.rb │ └── version.rb └── spec ├── fixtures ├── branch.json ├── branches.json ├── comment_merge_request.json ├── create_branch.json ├── create_merge_request.json ├── error_already_exists.json ├── group.json ├── group_create.json ├── group_member.json ├── group_member_delete.json ├── group_members.json ├── groups.json ├── issue.json ├── issues.json ├── key.json ├── keys.json ├── merge_request.json ├── merge_request_comments.json ├── merge_requests.json ├── milestone.json ├── milestones.json ├── note.json ├── notes.json ├── project.json ├── project_commit.json ├── project_commit_diff.json ├── project_commits.json ├── project_delete_key.json ├── project_events.json ├── project_for_user.json ├── project_fork_link.json ├── project_hook.json ├── project_hooks.json ├── project_issues.json ├── project_key.json ├── project_keys.json ├── project_tags.json ├── projects.json ├── protect_branch.json ├── session.json ├── snippet.json ├── snippets.json ├── system_hook.json ├── system_hook_test.json ├── system_hooks.json ├── tag.json ├── team_member.json ├── team_members.json ├── unprotect_branch.json ├── update_merge_request.json ├── user.json └── users.json ├── gitlab ├── cli_spec.rb ├── client │ ├── branches_spec.rb │ ├── groups_spec.rb │ ├── issues_spec.rb │ ├── merge_requests_spec.rb │ ├── milestones_spec.rb │ ├── notes_spec.rb │ ├── projects_spec.rb │ ├── repositories_spec.rb │ ├── snippets_spec.rb │ ├── system_hooks_spec.rb │ └── users_spec.rb ├── objectified_hash_spec.rb └── request_spec.rb ├── gitlab_spec.rb └── spec_helper.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/gitlab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/bin/gitlab -------------------------------------------------------------------------------- /gitlab.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/gitlab.gemspec -------------------------------------------------------------------------------- /lib/gitlab.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab.rb -------------------------------------------------------------------------------- /lib/gitlab/api.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/api.rb -------------------------------------------------------------------------------- /lib/gitlab/cli.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/cli.rb -------------------------------------------------------------------------------- /lib/gitlab/cli_helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/cli_helpers.rb -------------------------------------------------------------------------------- /lib/gitlab/client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/client.rb -------------------------------------------------------------------------------- /lib/gitlab/client/branches.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/client/branches.rb -------------------------------------------------------------------------------- /lib/gitlab/client/groups.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/client/groups.rb -------------------------------------------------------------------------------- /lib/gitlab/client/issues.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/client/issues.rb -------------------------------------------------------------------------------- /lib/gitlab/client/merge_requests.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/client/merge_requests.rb -------------------------------------------------------------------------------- /lib/gitlab/client/milestones.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/client/milestones.rb -------------------------------------------------------------------------------- /lib/gitlab/client/notes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/client/notes.rb -------------------------------------------------------------------------------- /lib/gitlab/client/projects.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/client/projects.rb -------------------------------------------------------------------------------- /lib/gitlab/client/repositories.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/client/repositories.rb -------------------------------------------------------------------------------- /lib/gitlab/client/snippets.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/client/snippets.rb -------------------------------------------------------------------------------- /lib/gitlab/client/system_hooks.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/client/system_hooks.rb -------------------------------------------------------------------------------- /lib/gitlab/client/users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/client/users.rb -------------------------------------------------------------------------------- /lib/gitlab/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/configuration.rb -------------------------------------------------------------------------------- /lib/gitlab/error.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/error.rb -------------------------------------------------------------------------------- /lib/gitlab/help.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/help.rb -------------------------------------------------------------------------------- /lib/gitlab/objectified_hash.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/objectified_hash.rb -------------------------------------------------------------------------------- /lib/gitlab/request.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/request.rb -------------------------------------------------------------------------------- /lib/gitlab/shell.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/lib/gitlab/shell.rb -------------------------------------------------------------------------------- /lib/gitlab/version.rb: -------------------------------------------------------------------------------- 1 | module Gitlab 2 | VERSION = "3.2.0" 3 | end 4 | -------------------------------------------------------------------------------- /spec/fixtures/branch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/branch.json -------------------------------------------------------------------------------- /spec/fixtures/branches.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/branches.json -------------------------------------------------------------------------------- /spec/fixtures/comment_merge_request.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/comment_merge_request.json -------------------------------------------------------------------------------- /spec/fixtures/create_branch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/create_branch.json -------------------------------------------------------------------------------- /spec/fixtures/create_merge_request.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/create_merge_request.json -------------------------------------------------------------------------------- /spec/fixtures/error_already_exists.json: -------------------------------------------------------------------------------- 1 | {"message": "409 Already exists"} -------------------------------------------------------------------------------- /spec/fixtures/group.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/group.json -------------------------------------------------------------------------------- /spec/fixtures/group_create.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/group_create.json -------------------------------------------------------------------------------- /spec/fixtures/group_member.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/group_member.json -------------------------------------------------------------------------------- /spec/fixtures/group_member_delete.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/group_member_delete.json -------------------------------------------------------------------------------- /spec/fixtures/group_members.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/group_members.json -------------------------------------------------------------------------------- /spec/fixtures/groups.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/groups.json -------------------------------------------------------------------------------- /spec/fixtures/issue.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/issue.json -------------------------------------------------------------------------------- /spec/fixtures/issues.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/issues.json -------------------------------------------------------------------------------- /spec/fixtures/key.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/key.json -------------------------------------------------------------------------------- /spec/fixtures/keys.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/keys.json -------------------------------------------------------------------------------- /spec/fixtures/merge_request.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/merge_request.json -------------------------------------------------------------------------------- /spec/fixtures/merge_request_comments.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/merge_request_comments.json -------------------------------------------------------------------------------- /spec/fixtures/merge_requests.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/merge_requests.json -------------------------------------------------------------------------------- /spec/fixtures/milestone.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/milestone.json -------------------------------------------------------------------------------- /spec/fixtures/milestones.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/milestones.json -------------------------------------------------------------------------------- /spec/fixtures/note.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/note.json -------------------------------------------------------------------------------- /spec/fixtures/notes.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/notes.json -------------------------------------------------------------------------------- /spec/fixtures/project.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/project.json -------------------------------------------------------------------------------- /spec/fixtures/project_commit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/project_commit.json -------------------------------------------------------------------------------- /spec/fixtures/project_commit_diff.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/project_commit_diff.json -------------------------------------------------------------------------------- /spec/fixtures/project_commits.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/project_commits.json -------------------------------------------------------------------------------- /spec/fixtures/project_delete_key.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/project_delete_key.json -------------------------------------------------------------------------------- /spec/fixtures/project_events.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/project_events.json -------------------------------------------------------------------------------- /spec/fixtures/project_for_user.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/project_for_user.json -------------------------------------------------------------------------------- /spec/fixtures/project_fork_link.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/project_fork_link.json -------------------------------------------------------------------------------- /spec/fixtures/project_hook.json: -------------------------------------------------------------------------------- 1 | {"id":1,"url":"https://api.example.net/v1/webhooks/ci"} 2 | -------------------------------------------------------------------------------- /spec/fixtures/project_hooks.json: -------------------------------------------------------------------------------- 1 | [{"id":1,"url":"https://api.example.net/v1/webhooks/ci"}] -------------------------------------------------------------------------------- /spec/fixtures/project_issues.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/project_issues.json -------------------------------------------------------------------------------- /spec/fixtures/project_key.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/project_key.json -------------------------------------------------------------------------------- /spec/fixtures/project_keys.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/project_keys.json -------------------------------------------------------------------------------- /spec/fixtures/project_tags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/project_tags.json -------------------------------------------------------------------------------- /spec/fixtures/projects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/projects.json -------------------------------------------------------------------------------- /spec/fixtures/protect_branch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/protect_branch.json -------------------------------------------------------------------------------- /spec/fixtures/session.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/session.json -------------------------------------------------------------------------------- /spec/fixtures/snippet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/snippet.json -------------------------------------------------------------------------------- /spec/fixtures/snippets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/snippets.json -------------------------------------------------------------------------------- /spec/fixtures/system_hook.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/system_hook.json -------------------------------------------------------------------------------- /spec/fixtures/system_hook_test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/system_hook_test.json -------------------------------------------------------------------------------- /spec/fixtures/system_hooks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/system_hooks.json -------------------------------------------------------------------------------- /spec/fixtures/tag.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/tag.json -------------------------------------------------------------------------------- /spec/fixtures/team_member.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/team_member.json -------------------------------------------------------------------------------- /spec/fixtures/team_members.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/team_members.json -------------------------------------------------------------------------------- /spec/fixtures/unprotect_branch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/unprotect_branch.json -------------------------------------------------------------------------------- /spec/fixtures/update_merge_request.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/update_merge_request.json -------------------------------------------------------------------------------- /spec/fixtures/user.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/user.json -------------------------------------------------------------------------------- /spec/fixtures/users.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/fixtures/users.json -------------------------------------------------------------------------------- /spec/gitlab/cli_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/cli_spec.rb -------------------------------------------------------------------------------- /spec/gitlab/client/branches_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/client/branches_spec.rb -------------------------------------------------------------------------------- /spec/gitlab/client/groups_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/client/groups_spec.rb -------------------------------------------------------------------------------- /spec/gitlab/client/issues_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/client/issues_spec.rb -------------------------------------------------------------------------------- /spec/gitlab/client/merge_requests_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/client/merge_requests_spec.rb -------------------------------------------------------------------------------- /spec/gitlab/client/milestones_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/client/milestones_spec.rb -------------------------------------------------------------------------------- /spec/gitlab/client/notes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/client/notes_spec.rb -------------------------------------------------------------------------------- /spec/gitlab/client/projects_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/client/projects_spec.rb -------------------------------------------------------------------------------- /spec/gitlab/client/repositories_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/client/repositories_spec.rb -------------------------------------------------------------------------------- /spec/gitlab/client/snippets_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/client/snippets_spec.rb -------------------------------------------------------------------------------- /spec/gitlab/client/system_hooks_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/client/system_hooks_spec.rb -------------------------------------------------------------------------------- /spec/gitlab/client/users_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/client/users_spec.rb -------------------------------------------------------------------------------- /spec/gitlab/objectified_hash_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/objectified_hash_spec.rb -------------------------------------------------------------------------------- /spec/gitlab/request_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab/request_spec.rb -------------------------------------------------------------------------------- /spec/gitlab_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/gitlab_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitlabhq/gitlab-cli/HEAD/spec/spec_helper.rb --------------------------------------------------------------------------------