github_cli 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +0 -2
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +1 -1
- data/features/issue.feature +51 -0
- data/features/key.feature +52 -0
- data/features/member.feature +56 -7
- data/features/milestone.feature +41 -0
- data/features/organization.feature +32 -0
- data/features/pull_request.feature +64 -0
- data/features/reference.feature +49 -0
- data/features/repository.feature +97 -0
- data/features/search.feature +32 -0
- data/features/tag.feature +16 -0
- data/features/team.feature +105 -0
- data/features/tree.feature +8 -0
- data/features/user.feature +24 -0
- data/features/watching.feature +49 -0
- data/lib/github_cli/apis/issue.rb +1 -1
- data/lib/github_cli/apis/organization.rb +2 -2
- data/lib/github_cli/apis/pull_request.rb +7 -7
- data/lib/github_cli/apis/reference.rb +2 -2
- data/lib/github_cli/apis/tag.rb +1 -1
- data/lib/github_cli/apis/team.rb +1 -2
- data/lib/github_cli/commands/emails.rb +3 -3
- data/lib/github_cli/commands/issues.rb +11 -3
- data/lib/github_cli/commands/members.rb +2 -2
- data/lib/github_cli/commands/milestones.rb +13 -5
- data/lib/github_cli/commands/organizations.rb +8 -3
- data/lib/github_cli/commands/pull_requests.rb +5 -5
- data/lib/github_cli/commands/references.rb +5 -3
- data/lib/github_cli/commands/teams.rb +11 -11
- data/lib/github_cli/version.rb +1 -1
- metadata +20 -16
- data/features/repositories.feature +0 -18
data/features/tree.feature
CHANGED
@@ -6,3 +6,11 @@ Feature: ghc tree
|
|
6
6
|
Then the exit status should be 0
|
7
7
|
And the output should contain "ghc tree create"
|
8
8
|
And the output should contain "ghc tree get"
|
9
|
+
|
10
|
+
Scenario: Get tree
|
11
|
+
Given the GitHub API server:
|
12
|
+
"""
|
13
|
+
get('/repos/wycats/thor/git/trees/827efc6d5') { status 200 }
|
14
|
+
"""
|
15
|
+
When I run `ghc tree get wycats thor 827efc6d5`
|
16
|
+
Then the exit status should be 0
|
data/features/user.feature
CHANGED
@@ -6,3 +6,27 @@ Feature: ghc user
|
|
6
6
|
Then the exit status should be 0
|
7
7
|
And the output should contain "ghc user get"
|
8
8
|
And the output should contain "ghc user update"
|
9
|
+
|
10
|
+
Scenario: Get user
|
11
|
+
Given the GitHub API server:
|
12
|
+
"""
|
13
|
+
get('/users/wycats') { status 200 }
|
14
|
+
"""
|
15
|
+
When I run `ghc user get -u wycats`
|
16
|
+
Then the exit status should be 0
|
17
|
+
|
18
|
+
Scenario: Get the authenticated user
|
19
|
+
Given the GitHub API server:
|
20
|
+
"""
|
21
|
+
get('/user') { status 200 }
|
22
|
+
"""
|
23
|
+
When I run `ghc user get`
|
24
|
+
Then the exit status should be 0
|
25
|
+
|
26
|
+
Scenario: Update the authenticated user
|
27
|
+
Given the GitHub API server:
|
28
|
+
"""
|
29
|
+
patch('/user') { status 200 }
|
30
|
+
"""
|
31
|
+
When I run `ghc user update --params=name:peter-murach`
|
32
|
+
Then the exit status should be 0
|
data/features/watching.feature
CHANGED
@@ -9,3 +9,52 @@ Feature: ghc watching
|
|
9
9
|
And the output should contain "ghc watch watched"
|
10
10
|
And the output should contain "ghc watch watchers"
|
11
11
|
And the output should contain "ghc watch watching"
|
12
|
+
|
13
|
+
Scenario: Watchers
|
14
|
+
Given the GitHub API server:
|
15
|
+
"""
|
16
|
+
get('/repos/wycats/thor/watchers') { status 200 }
|
17
|
+
"""
|
18
|
+
When I run `ghc watch watchers wycats thor`
|
19
|
+
Then the exit status should be 0
|
20
|
+
|
21
|
+
Scenario: Start watching
|
22
|
+
Given the GitHub API server:
|
23
|
+
"""
|
24
|
+
put('/user/watched/wycats/thor') { status 200 }
|
25
|
+
"""
|
26
|
+
When I run `ghc watch start wycats thor`
|
27
|
+
Then the exit status should be 0
|
28
|
+
|
29
|
+
Scenario: Stop watching
|
30
|
+
Given the GitHub API server:
|
31
|
+
"""
|
32
|
+
delete('/user/watched/wycats/thor') { status 200 }
|
33
|
+
"""
|
34
|
+
When I run `ghc watch stop wycats thor`
|
35
|
+
Then the exit status should be 0
|
36
|
+
|
37
|
+
Scenario: Watching
|
38
|
+
Given the GitHub API server:
|
39
|
+
"""
|
40
|
+
get('/user/watched/wycats/thor') { status 200 }
|
41
|
+
"""
|
42
|
+
When I run `ghc watch watching wycats thor`
|
43
|
+
Then the exit status should be 0
|
44
|
+
|
45
|
+
Scenario: Watched by a user
|
46
|
+
Given the GitHub API server:
|
47
|
+
"""
|
48
|
+
get('/users/wycats/watched') { status 200 }
|
49
|
+
"""
|
50
|
+
When I run `ghc watch watched -u wycats`
|
51
|
+
Then the exit status should be 0
|
52
|
+
|
53
|
+
Scenario: Watched by the authenticated user
|
54
|
+
Given the GitHub API server:
|
55
|
+
"""
|
56
|
+
get('/user/watched') { status 200 }
|
57
|
+
"""
|
58
|
+
When I run `ghc watch watched`
|
59
|
+
Then the exit status should be 0
|
60
|
+
|
@@ -5,27 +5,27 @@ module GithubCLI
|
|
5
5
|
|
6
6
|
class << self
|
7
7
|
|
8
|
-
def
|
8
|
+
def list(user, repo, params, format)
|
9
9
|
output format do
|
10
|
-
github_api.pull_requests.
|
10
|
+
github_api.pull_requests.list user, repo, params
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
14
|
+
def get(user, repo, number, params, format)
|
15
15
|
output format do
|
16
|
-
github_api.pull_requests.
|
16
|
+
github_api.pull_requests.get user, repo, number, params
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
20
|
def create(user, repo, params, format)
|
21
21
|
output format do
|
22
|
-
github_api.pull_requests.
|
22
|
+
github_api.pull_requests.create user, repo, params
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
26
|
def update(user, repo, number, params, format)
|
27
27
|
output format do
|
28
|
-
github_api.pull_requests.
|
28
|
+
github_api.pull_requests.update user, repo, number, params
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
@@ -43,7 +43,7 @@ module GithubCLI
|
|
43
43
|
|
44
44
|
def merged(user, repo, number, params, format)
|
45
45
|
output format do
|
46
|
-
github_api.pull_requests.merged user, repo, number, params
|
46
|
+
github_api.pull_requests.merged? user, repo, number, params
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
@@ -5,9 +5,9 @@ module GithubCLI
|
|
5
5
|
|
6
6
|
class << self
|
7
7
|
|
8
|
-
def list(user, repo,
|
8
|
+
def list(user, repo, params, format)
|
9
9
|
output format do
|
10
|
-
github_api.git_data.references.list user, repo,
|
10
|
+
github_api.git_data.references.list user, repo, params
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
data/lib/github_cli/apis/tag.rb
CHANGED
data/lib/github_cli/apis/team.rb
CHANGED
@@ -11,7 +11,6 @@ module GithubCLI
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
|
15
14
|
def get(id, params, format)
|
16
15
|
output format do
|
17
16
|
github_api.orgs.teams.get id, params
|
@@ -74,7 +73,7 @@ module GithubCLI
|
|
74
73
|
|
75
74
|
def add_repo(id, user, repo, params, format)
|
76
75
|
output format do
|
77
|
-
github_api.orgs.teams.
|
76
|
+
github_api.orgs.teams.add_repo id, user, repo, params
|
78
77
|
end
|
79
78
|
end
|
80
79
|
|
@@ -6,11 +6,11 @@ module GithubCLI
|
|
6
6
|
namespace :email
|
7
7
|
|
8
8
|
desc 'list', 'Lists email addresses for the authenticated user'
|
9
|
-
def list
|
9
|
+
def list
|
10
10
|
Email.all options[:params], options[:format]
|
11
11
|
end
|
12
12
|
|
13
|
-
desc 'add <email
|
13
|
+
desc 'add <email>[<email>...]', 'Add email address(es) for the authenticated user'
|
14
14
|
long_desc <<-DESC
|
15
15
|
You can include a single email address or an array of addresses
|
16
16
|
DESC
|
@@ -18,7 +18,7 @@ module GithubCLI
|
|
18
18
|
Email.add emails, options[:params], options[:format]
|
19
19
|
end
|
20
20
|
|
21
|
-
desc 'delete <email
|
21
|
+
desc 'delete <email>[<email>...]', 'Delete email address(es) for the authenticated user'
|
22
22
|
long_desc <<-DESC
|
23
23
|
You can include a single email address or an array of addresses
|
24
24
|
DESC
|
@@ -46,10 +46,10 @@ module GithubCLI
|
|
46
46
|
since - Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ\n
|
47
47
|
DESC
|
48
48
|
def repo(user, repo)
|
49
|
-
Issue.
|
49
|
+
Issue.all_repo user, repo, options[:params], options[:format]
|
50
50
|
end
|
51
51
|
|
52
|
-
desc 'get <user> <repo> <id>', 'Get a single issue'
|
52
|
+
desc 'get <user> <repo> <issue-id>', 'Get a single issue'
|
53
53
|
def get(user, repo, id)
|
54
54
|
Issue.get user, repo, id, options[:params], options[:format]
|
55
55
|
end
|
@@ -63,12 +63,16 @@ module GithubCLI
|
|
63
63
|
assignee - Optional string - Login for the user that this issue should be assigned to.\n
|
64
64
|
milestone - Optional number - Milestone to associate this issue with\n
|
65
65
|
labels - Optional array of strings - Labels to associate with this issue
|
66
|
+
|
67
|
+
Example
|
68
|
+
|
69
|
+
ghc issue create wycats thor --params=title:'Found a bug'
|
66
70
|
DESC
|
67
71
|
def create(user, repo)
|
68
72
|
Issue.create user, repo, options[:params], options[:format]
|
69
73
|
end
|
70
74
|
|
71
|
-
desc 'edit <user> <repo> <id>', 'Edit an issue.'
|
75
|
+
desc 'edit <user> <repo> <issue-id>', 'Edit an issue.'
|
72
76
|
long_desc <<-DESC
|
73
77
|
Parameters
|
74
78
|
|
@@ -78,6 +82,10 @@ module GithubCLI
|
|
78
82
|
state - Optional string - State of the issue: open or closed.
|
79
83
|
milestone - Optional number - Milestone to associate this issue with\n
|
80
84
|
labels - Optional array of strings - Labels to associate with this issue
|
85
|
+
|
86
|
+
Example
|
87
|
+
|
88
|
+
ghc issue edit wycats thor 1 --params=title:'Found a bug'
|
81
89
|
DESC
|
82
90
|
def edit(user, repo, id)
|
83
91
|
Issue.edit user, repo, id, options[:params], options[:format]
|
@@ -5,7 +5,7 @@ module GithubCLI
|
|
5
5
|
|
6
6
|
namespace :member
|
7
7
|
|
8
|
-
desc 'list <org>', "Lists an organization members"
|
8
|
+
desc 'list [--public] <org>', "Lists an organization members"
|
9
9
|
long_desc <<-DESC
|
10
10
|
List all users who are members of an organization. A member is a user
|
11
11
|
that belongs to at least 1 team in the organization.
|
@@ -26,7 +26,7 @@ module GithubCLI
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
-
desc 'member <org> <user>', 'Checks if user is a member of an organization'
|
29
|
+
desc 'member [--public] <org> <user>', 'Checks if user is a member of an organization'
|
30
30
|
method_option :public, :type => :boolean, :default => false,
|
31
31
|
:desc => 'Get if a user is a public member of an organization'
|
32
32
|
def member(org, user)
|
@@ -17,7 +17,7 @@ module GithubCLI
|
|
17
17
|
Milestone.all user, repo, options[:params], options[:format]
|
18
18
|
end
|
19
19
|
|
20
|
-
desc 'get <user> <repo> <id>', 'Get a single milestone'
|
20
|
+
desc 'get <user> <repo> <milestone-id>', 'Get a single milestone'
|
21
21
|
def get(user, repo, id)
|
22
22
|
Milestone.get user, repo, id, options[:params], options[:format]
|
23
23
|
end
|
@@ -30,12 +30,16 @@ module GithubCLI
|
|
30
30
|
state - Optional string - open or closed\n
|
31
31
|
description - Optional string\n
|
32
32
|
due_on - Optional string - ISO 8601 time\n
|
33
|
+
|
34
|
+
Example
|
35
|
+
|
36
|
+
ghc milestone create wycats thor --params=title:new
|
33
37
|
DESC
|
34
38
|
def create(user, repo)
|
35
39
|
Milestone.create user, repo, options[:params], options[:format]
|
36
40
|
end
|
37
41
|
|
38
|
-
desc 'update <user> <repo> <id>', 'Update a milestone'
|
42
|
+
desc 'update <user> <repo> <milestone-id>', 'Update a milestone'
|
39
43
|
long_desc <<-DESC
|
40
44
|
Parameters
|
41
45
|
|
@@ -43,12 +47,16 @@ module GithubCLI
|
|
43
47
|
state - Optional string - open or closed\n
|
44
48
|
description - Optional string\n
|
45
49
|
due_on - Optional string - ISO 8601 time\n
|
50
|
+
|
51
|
+
Example
|
52
|
+
|
53
|
+
ghc milestone update wycats thor 1 --params=title:new
|
46
54
|
DESC
|
47
|
-
def
|
48
|
-
|
55
|
+
def update(user, repo, milestone_id)
|
56
|
+
Milestone.update user, repo, milestone_id, options[:params], options[:format]
|
49
57
|
end
|
50
58
|
|
51
|
-
desc 'delete <user> <repo> <id>', 'Delete a milestone'
|
59
|
+
desc 'delete <user> <repo> <milestone-id>', 'Delete a milestone'
|
52
60
|
def delete(user, repo, id)
|
53
61
|
Milestone.delete user, repo, id, options[:params], options[:format]
|
54
62
|
end
|
@@ -5,12 +5,13 @@ module GithubCLI
|
|
5
5
|
|
6
6
|
namespace :org
|
7
7
|
|
8
|
-
desc 'list', 'List public and private organizations for the authenticated user'
|
8
|
+
desc 'list [--user=<name>]', 'List public and private organizations for the authenticated user'
|
9
9
|
method_option :user, :type => :string, :aliases => ["-u"],
|
10
10
|
:desc => 'List all public organizations for a user',
|
11
11
|
:banner => '<user>'
|
12
12
|
def list
|
13
|
-
|
13
|
+
options[:params]['user'] = options[:user] if options[:user]
|
14
|
+
Organization.list options[:params], options[:format]
|
14
15
|
end
|
15
16
|
|
16
17
|
desc 'get <org>', 'Get properties for a single organization'
|
@@ -27,9 +28,13 @@ module GithubCLI
|
|
27
28
|
email - Optional string\n
|
28
29
|
location - Optional string\n
|
29
30
|
name - Optional string\n
|
31
|
+
|
32
|
+
Example
|
33
|
+
|
34
|
+
ghc org edit rails --params=name:github company:GitHub email:support@github.com
|
30
35
|
DESC
|
31
36
|
def edit(org)
|
32
|
-
|
37
|
+
Organization.edit org, options[:params], options[:format]
|
33
38
|
end
|
34
39
|
|
35
40
|
end # Organizations
|
@@ -5,16 +5,16 @@ module GithubCLI
|
|
5
5
|
|
6
6
|
namespace :pull
|
7
7
|
|
8
|
-
desc 'get <user> <repo> <number>', 'Get a Pull Request'
|
9
|
-
def get(user, repo, number)
|
10
|
-
PullRequest.get user, repo, number, options[:params], options[:format]
|
11
|
-
end
|
12
|
-
|
13
8
|
desc 'list <user> <repo>', 'List all Pull Requests'
|
14
9
|
def list(user, repo)
|
15
10
|
PullRequest.list user, repo, options[:params], options[:format]
|
16
11
|
end
|
17
12
|
|
13
|
+
desc 'get <user> <repo> <number>', 'Get a Pull Request'
|
14
|
+
def get(user, repo, number)
|
15
|
+
PullRequest.get user, repo, number, options[:params], options[:format]
|
16
|
+
end
|
17
|
+
|
18
18
|
desc 'create <user> <repo>', 'Create a new Pull Request'
|
19
19
|
def create(user, repo)
|
20
20
|
PullRequest.create user, repo, options[:params], options[:format]
|
@@ -5,11 +5,13 @@ module GithubCLI
|
|
5
5
|
|
6
6
|
namespace :ref
|
7
7
|
|
8
|
-
desc 'list <user> <repo>
|
8
|
+
desc 'list <user> <repo>', 'List all References'
|
9
9
|
method_option :ref, :type => :string, :banner => 'branch reference'
|
10
10
|
def list(user, repo)
|
11
|
-
|
12
|
-
|
11
|
+
if options[:ref]
|
12
|
+
options[:params]['ref'] = options[:ref]
|
13
|
+
end
|
14
|
+
Reference.list user, repo, options[:params], options[:format]
|
13
15
|
end
|
14
16
|
|
15
17
|
desc 'get <user> <repo> <ref>', 'Get a Reference'
|
@@ -10,7 +10,7 @@ module GithubCLI
|
|
10
10
|
Team.all org, options[:params], options[:format]
|
11
11
|
end
|
12
12
|
|
13
|
-
desc 'get <id>', "Get a team"
|
13
|
+
desc 'get <team-id>', "Get a team"
|
14
14
|
def get(id)
|
15
15
|
Team.get id, options[:params], options[:format]
|
16
16
|
end
|
@@ -32,7 +32,7 @@ module GithubCLI
|
|
32
32
|
Team.create org, options[:params], options[:format]
|
33
33
|
end
|
34
34
|
|
35
|
-
desc 'edit <id>', "Edit team <id>"
|
35
|
+
desc 'edit <team-id>', "Edit team <team-id>"
|
36
36
|
long_desc <<-DESC
|
37
37
|
In order to edit a team, the authenticated user must be an owner of the org that the team is associated with.
|
38
38
|
|
@@ -48,7 +48,7 @@ module GithubCLI
|
|
48
48
|
Team.edit id, options[:params], options[:format]
|
49
49
|
end
|
50
50
|
|
51
|
-
desc 'delete <id>', 'Delete team'
|
51
|
+
desc 'delete <team-id>', 'Delete team <team-id>'
|
52
52
|
long_desc <<-DESC
|
53
53
|
In order to delete a team, the authenticated user must be an owner of the org that the team is associated with.
|
54
54
|
DESC
|
@@ -56,12 +56,12 @@ module GithubCLI
|
|
56
56
|
Team.delete id, options[:params], options[:format]
|
57
57
|
end
|
58
58
|
|
59
|
-
desc 'list_member <id>', "List team <id> members"
|
59
|
+
desc 'list_member <team-id>', "List team <team-id> members"
|
60
60
|
def list_member(id)
|
61
61
|
Team.all_member id, options[:params], options[:format]
|
62
62
|
end
|
63
63
|
|
64
|
-
desc 'member <id> <user>', 'Check if <user> is a team member'
|
64
|
+
desc 'member <team-id> <user>', 'Check if <user> is a team member'
|
65
65
|
long_desc <<-DESC
|
66
66
|
In order to get if a user is a member of a team, the authenticated user must be a member of the team.
|
67
67
|
DESC
|
@@ -69,7 +69,7 @@ module GithubCLI
|
|
69
69
|
Team.member id, user, options[:params], options[:format]
|
70
70
|
end
|
71
71
|
|
72
|
-
desc 'add_member <id> <user>', 'Add team member'
|
72
|
+
desc 'add_member <team-id> <user>', 'Add team member'
|
73
73
|
long_desc <<-DESC
|
74
74
|
In order to add a user to a team, the authenticated user must have ‘admin’ permissions to the team or be an owner of the org that the team is associated with.
|
75
75
|
DESC
|
@@ -77,7 +77,7 @@ module GithubCLI
|
|
77
77
|
Team.add_member id, user, options[:params], options[:format]
|
78
78
|
end
|
79
79
|
|
80
|
-
desc 'remove_member <id> <user>', 'Remove team member'
|
80
|
+
desc 'remove_member <team-id> <user>', 'Remove team member'
|
81
81
|
long_desc <<-DESC
|
82
82
|
In order to remove a user from a team, the authenticated user must have
|
83
83
|
‘admin’ permissions to the team or be an owner of the org that the team
|
@@ -88,17 +88,17 @@ module GithubCLI
|
|
88
88
|
Team.remove_member id, user, options[:params], options[:format]
|
89
89
|
end
|
90
90
|
|
91
|
-
desc 'list_repo <id>', "List team <id> repositories"
|
91
|
+
desc 'list_repo <team-id>', "List team <team-id> repositories"
|
92
92
|
def list_repo(id)
|
93
93
|
Team.all_repo id, options[:params], options[:format]
|
94
94
|
end
|
95
95
|
|
96
|
-
desc 'repo <id> <user> <repo>', 'Check if <repo> is managed by <id> team'
|
96
|
+
desc 'repo <team-id> <user> <repo>', 'Check if <repo> is managed by <team-id> team'
|
97
97
|
def repo(id, user, repo)
|
98
98
|
Team.repo id, user, repo, options[:params], options[:format]
|
99
99
|
end
|
100
100
|
|
101
|
-
desc 'add_repo <id> <user> <repo>', 'Add team <repo>'
|
101
|
+
desc 'add_repo <team-id> <user> <repo>', 'Add team <repo>'
|
102
102
|
long_desc <<-DESC
|
103
103
|
In order to add a repo to a team, the authenticated user must be an owner
|
104
104
|
of the org that the team is associated with. Also, the repo must be owned
|
@@ -108,7 +108,7 @@ module GithubCLI
|
|
108
108
|
Team.add_repo id, user, repo, options[:params], options[:format]
|
109
109
|
end
|
110
110
|
|
111
|
-
desc 'remove_repo <id> <user> <repo>', 'Remove team <repo>'
|
111
|
+
desc 'remove_repo <team-id> <user> <repo>', 'Remove team <repo>'
|
112
112
|
long_desc <<-DESC
|
113
113
|
In order to remove a repo from a team, the authenticated user must be an
|
114
114
|
owner of the org that the team is associated with. NOTE: This does not
|
data/lib/github_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-15 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: github_api
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153331340 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0.6'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2153331340
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: thor
|
27
|
-
requirement: &
|
27
|
+
requirement: &2153330860 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2153330860
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &2153330160 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2153330160
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: aruba
|
49
|
-
requirement: &
|
49
|
+
requirement: &2153329500 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2153329500
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rake
|
60
|
-
requirement: &
|
60
|
+
requirement: &2153328840 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2153328840
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: communist
|
71
|
-
requirement: &
|
71
|
+
requirement: &2153328140 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2153328140
|
80
80
|
description: CLI-based access to GitHub API v3
|
81
81
|
email:
|
82
82
|
- ''
|
@@ -110,13 +110,15 @@ files:
|
|
110
110
|
- features/fork.feature
|
111
111
|
- features/gist.feature
|
112
112
|
- features/hook.feature
|
113
|
+
- features/issue.feature
|
114
|
+
- features/key.feature
|
113
115
|
- features/label.feature
|
114
116
|
- features/member.feature
|
115
117
|
- features/milestone.feature
|
116
118
|
- features/organization.feature
|
117
119
|
- features/pull_request.feature
|
118
120
|
- features/reference.feature
|
119
|
-
- features/
|
121
|
+
- features/repository.feature
|
120
122
|
- features/search.feature
|
121
123
|
- features/search_commands.feature
|
122
124
|
- features/settings.feature
|
@@ -259,13 +261,15 @@ test_files:
|
|
259
261
|
- features/fork.feature
|
260
262
|
- features/gist.feature
|
261
263
|
- features/hook.feature
|
264
|
+
- features/issue.feature
|
265
|
+
- features/key.feature
|
262
266
|
- features/label.feature
|
263
267
|
- features/member.feature
|
264
268
|
- features/milestone.feature
|
265
269
|
- features/organization.feature
|
266
270
|
- features/pull_request.feature
|
267
271
|
- features/reference.feature
|
268
|
-
- features/
|
272
|
+
- features/repository.feature
|
269
273
|
- features/search.feature
|
270
274
|
- features/search_commands.feature
|
271
275
|
- features/settings.feature
|
@@ -1,18 +0,0 @@
|
|
1
|
-
Feature: gh repository
|
2
|
-
|
3
|
-
Scenario: Available commands
|
4
|
-
When I run `ghc repo`
|
5
|
-
Then the exit status should be 0
|
6
|
-
And the output should contain "ghc repo branches"
|
7
|
-
And the output should contain "ghc repo contribs"
|
8
|
-
And the output should contain "ghc repo create"
|
9
|
-
And the output should contain "ghc repo edit"
|
10
|
-
And the output should contain "ghc repo get"
|
11
|
-
And the output should contain "ghc repo list"
|
12
|
-
And the output should contain "ghc repo languages"
|
13
|
-
And the output should contain "ghc repo tags"
|
14
|
-
And the output should contain "ghc repo teams"
|
15
|
-
|
16
|
-
# Scenario: List repositories
|
17
|
-
# When I run `ghc repo ls --user=wycats`
|
18
|
-
# Then the exit status should be 0
|