geet 0.27.7 → 0.28.0
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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +0 -1
- data/README.md +8 -17
- data/geet.gemspec +1 -1
- data/lib/geet/commandline/configuration.rb +1 -1
- data/lib/geet/git/repository.rb +36 -70
- data/lib/geet/helpers/services_workflow_helper.rb +1 -1
- data/lib/geet/services/add_upstream_repo.rb +1 -1
- data/lib/geet/services/close_milestones.rb +1 -1
- data/lib/geet/services/comment_pr.rb +1 -1
- data/lib/geet/services/create_issue.rb +27 -28
- data/lib/geet/services/create_label.rb +2 -2
- data/lib/geet/services/create_milestone.rb +2 -2
- data/lib/geet/services/create_pr.rb +20 -27
- data/lib/geet/services/list_issues.rb +3 -3
- data/lib/geet/services/list_labels.rb +1 -1
- data/lib/geet/services/list_milestones.rb +7 -7
- data/lib/geet/services/list_prs.rb +1 -1
- data/lib/geet/services/merge_pr.rb +4 -3
- data/lib/geet/services/open_pr.rb +1 -1
- data/lib/geet/utils/git_client.rb +0 -11
- data/lib/geet/version.rb +1 -1
- data/spec/integration/create_label_spec.rb +0 -21
- data/spec/integration/create_pr_spec.rb +0 -1
- data/spec/integration/list_issues_spec.rb +0 -46
- data/spec/integration/list_labels_spec.rb +0 -27
- data/spec/integration/list_milestones_spec.rb +0 -27
- data/spec/integration/merge_pr_spec.rb +1 -31
- data/spec/spec_helper.rb +0 -3
- metadata +3 -17
- data/lib/geet/github/remote_repository.rb +0 -53
- data/lib/geet/gitlab/api_interface.rb +0 -212
- data/lib/geet/gitlab/issue.rb +0 -62
- data/lib/geet/gitlab/label.rb +0 -66
- data/lib/geet/gitlab/milestone.rb +0 -78
- data/lib/geet/gitlab/pr.rb +0 -114
- data/lib/geet/gitlab/user.rb +0 -52
- data/lib/geet/services/abstract_create_issue.rb +0 -21
- data/spec/vcr_cassettes/gitlab_com/create_label.yml +0 -64
- data/spec/vcr_cassettes/gitlab_com/list_issues.yml +0 -84
- data/spec/vcr_cassettes/gitlab_com/list_issues_with_assignee.yml +0 -162
- data/spec/vcr_cassettes/gitlab_com/list_labels.yml +0 -80
- data/spec/vcr_cassettes/gitlab_com/list_milestones.yml +0 -397
- data/spec/vcr_cassettes/gitlab_com/merge_pr.yml +0 -144
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
4
|
-
method: get
|
|
5
|
-
uri: https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/merge_requests?source_branch=mybranch
|
|
6
|
-
body:
|
|
7
|
-
encoding: US-ASCII
|
|
8
|
-
string: ''
|
|
9
|
-
headers:
|
|
10
|
-
Accept-Encoding:
|
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
-
Accept:
|
|
13
|
-
- "*/*"
|
|
14
|
-
User-Agent:
|
|
15
|
-
- Ruby
|
|
16
|
-
Host:
|
|
17
|
-
- gitlab.com
|
|
18
|
-
Private-Token:
|
|
19
|
-
- "<GITLAB_CREDENTIALS>"
|
|
20
|
-
response:
|
|
21
|
-
status:
|
|
22
|
-
code: 200
|
|
23
|
-
message: OK
|
|
24
|
-
headers:
|
|
25
|
-
Server:
|
|
26
|
-
- nginx
|
|
27
|
-
Date:
|
|
28
|
-
- Mon, 25 Mar 2019 11:44:35 GMT
|
|
29
|
-
Content-Type:
|
|
30
|
-
- application/json
|
|
31
|
-
Content-Length:
|
|
32
|
-
- '1188'
|
|
33
|
-
Cache-Control:
|
|
34
|
-
- max-age=0, private, must-revalidate
|
|
35
|
-
Etag:
|
|
36
|
-
- W/"ed3d49f8811d744a6429bb3c90f615d6"
|
|
37
|
-
Link:
|
|
38
|
-
- <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/merge_requests?id=donaldduck%2Ftestproject&order_by=created_at&page=1&per_page=20&sort=desc&source_branch=mybranch&state=opened>;
|
|
39
|
-
rel="first", <https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/merge_requests?id=donaldduck%2Ftestproject&order_by=created_at&page=1&per_page=20&sort=desc&source_branch=mybranch&state=opened>;
|
|
40
|
-
rel="last"
|
|
41
|
-
Vary:
|
|
42
|
-
- Origin
|
|
43
|
-
X-Content-Type-Options:
|
|
44
|
-
- nosniff
|
|
45
|
-
X-Frame-Options:
|
|
46
|
-
- SAMEORIGIN
|
|
47
|
-
X-Next-Page:
|
|
48
|
-
- ''
|
|
49
|
-
X-Page:
|
|
50
|
-
- '1'
|
|
51
|
-
X-Per-Page:
|
|
52
|
-
- '20'
|
|
53
|
-
X-Prev-Page:
|
|
54
|
-
- ''
|
|
55
|
-
X-Request-Id:
|
|
56
|
-
- cX2JhRXZHh3
|
|
57
|
-
X-Runtime:
|
|
58
|
-
- '0.074870'
|
|
59
|
-
X-Total:
|
|
60
|
-
- '1'
|
|
61
|
-
X-Total-Pages:
|
|
62
|
-
- '1'
|
|
63
|
-
Strict-Transport-Security:
|
|
64
|
-
- max-age=31536000
|
|
65
|
-
Ratelimit-Limit:
|
|
66
|
-
- '600'
|
|
67
|
-
Ratelimit-Observed:
|
|
68
|
-
- '1'
|
|
69
|
-
Ratelimit-Remaining:
|
|
70
|
-
- '599'
|
|
71
|
-
Ratelimit-Reset:
|
|
72
|
-
- '1553514335'
|
|
73
|
-
Ratelimit-Resettime:
|
|
74
|
-
- Tue, 25 Mar 2019 11:45:35 GMT
|
|
75
|
-
body:
|
|
76
|
-
encoding: UTF-8
|
|
77
|
-
string: '[{"id":123456,"iid":4,"project_id":123456,"title":"Delete pizza","description":"","state":"opened","created_at":"2019-03-25T11:44:15.881Z","updated_at":"2019-03-25T11:44:15.881Z","merged_by":null,"merged_at":null,"closed_by":null,"closed_at":null,"target_branch":"master","source_branch":"mybranch","user_notes_count":0,"upvotes":0,"downvotes":0,"author":{"id":123456,"name":"Donald
|
|
78
|
-
Duck","username":"donaldduck","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef05ea2797cb94a5b0?s=80\u0026d=identicon","web_url":"https://gitlab.com/donaldduck"},"assignee":null,"source_project_id":123456,"target_project_id":123456,"labels":[],"work_in_progress":false,"milestone":null,"merge_when_pipeline_succeeds":false,"merge_status":"can_be_merged","sha":"9a845eec03092a38707eaecaa0a1d71aa05a1bff","merge_commit_sha":null,"discussion_locked":null,"should_remove_source_branch":null,"force_remove_source_branch":false,"web_url":"https://gitlab.com/donaldduck/testproject/merge_requests/4","time_stats":{"time_estimate":0,"total_time_spent":0,"human_time_estimate":null,"human_total_time_spent":null},"squash":false,"approvals_before_merge":null}]'
|
|
79
|
-
http_version:
|
|
80
|
-
recorded_at: Mon, 25 Mar 2019 11:44:35 GMT
|
|
81
|
-
- request:
|
|
82
|
-
method: put
|
|
83
|
-
uri: https://gitlab.com/api/v4/projects/donaldduck%2Ftestproject/merge_requests/4/merge
|
|
84
|
-
body:
|
|
85
|
-
encoding: UTF-8
|
|
86
|
-
string: ''
|
|
87
|
-
headers:
|
|
88
|
-
Accept-Encoding:
|
|
89
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
90
|
-
Accept:
|
|
91
|
-
- "*/*"
|
|
92
|
-
User-Agent:
|
|
93
|
-
- Ruby
|
|
94
|
-
Host:
|
|
95
|
-
- gitlab.com
|
|
96
|
-
Private-Token:
|
|
97
|
-
- "<GITLAB_CREDENTIALS>"
|
|
98
|
-
response:
|
|
99
|
-
status:
|
|
100
|
-
code: 200
|
|
101
|
-
message: OK
|
|
102
|
-
headers:
|
|
103
|
-
Server:
|
|
104
|
-
- nginx
|
|
105
|
-
Date:
|
|
106
|
-
- Mon, 25 Mar 2019 11:44:37 GMT
|
|
107
|
-
Content-Type:
|
|
108
|
-
- application/json
|
|
109
|
-
Content-Length:
|
|
110
|
-
- '1855'
|
|
111
|
-
Cache-Control:
|
|
112
|
-
- max-age=0, private, must-revalidate
|
|
113
|
-
Etag:
|
|
114
|
-
- W/"0953f932a542fa60616d9cd2eb521226"
|
|
115
|
-
Vary:
|
|
116
|
-
- Origin
|
|
117
|
-
X-Content-Type-Options:
|
|
118
|
-
- nosniff
|
|
119
|
-
X-Frame-Options:
|
|
120
|
-
- SAMEORIGIN
|
|
121
|
-
X-Request-Id:
|
|
122
|
-
- EtYFTByIBFa
|
|
123
|
-
X-Runtime:
|
|
124
|
-
- '1.315189'
|
|
125
|
-
Strict-Transport-Security:
|
|
126
|
-
- max-age=31536000
|
|
127
|
-
Ratelimit-Limit:
|
|
128
|
-
- '600'
|
|
129
|
-
Ratelimit-Observed:
|
|
130
|
-
- '2'
|
|
131
|
-
Ratelimit-Remaining:
|
|
132
|
-
- '598'
|
|
133
|
-
Ratelimit-Reset:
|
|
134
|
-
- '1553514337'
|
|
135
|
-
Ratelimit-Resettime:
|
|
136
|
-
- Tue, 25 Mar 2019 11:45:37 GMT
|
|
137
|
-
body:
|
|
138
|
-
encoding: UTF-8
|
|
139
|
-
string: '{"id":123456,"iid":4,"project_id":123456,"title":"Delete pizza","description":"","state":"merged","created_at":"2019-03-25T11:44:15.881Z","updated_at":"2019-03-25T11:44:37.343Z","merged_by":{"id":123456,"name":"Donald
|
|
140
|
-
Duck","username":"donaldduck","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef05ea2797cb94a5b0?s=80\u0026d=identicon","web_url":"https://gitlab.com/donaldduck"},"merged_at":"2019-03-25T11:44:37.381Z","closed_by":null,"closed_at":null,"target_branch":"master","source_branch":"mybranch","user_notes_count":0,"upvotes":0,"downvotes":0,"author":{"id":123456,"name":"Donald
|
|
141
|
-
Duck","username":"donaldduck","state":"active","avatar_url":"https://secure.gravatar.com/avatar/0123456789abcdef05ea2797cb94a5b0?s=80\u0026d=identicon","web_url":"https://gitlab.com/donaldduck"},"assignee":null,"source_project_id":123456,"target_project_id":123456,"labels":[],"work_in_progress":false,"milestone":null,"merge_when_pipeline_succeeds":false,"merge_status":"can_be_merged","sha":"9a845eec03092a38707eaecaa0a1d71aa05a1bff","merge_commit_sha":"f2bfcfaaad7211e42662978616ca655c5200f8e0","discussion_locked":null,"should_remove_source_branch":null,"force_remove_source_branch":false,"web_url":"https://gitlab.com/donaldduck/testproject/merge_requests/4","time_stats":{"time_estimate":0,"total_time_spent":0,"human_time_estimate":null,"human_total_time_spent":null},"squash":false,"subscribed":true,"changes_count":"1","latest_build_started_at":null,"latest_build_finished_at":null,"first_deployed_to_production_at":null,"pipeline":null,"diff_refs":{"base_sha":"619b12ce4162cf7bb30c5e64f860ba14318f3098","head_sha":"9a845eec03092a38707eaecaa0a1d71aa05a1bff","start_sha":"619b12ce4162cf7bb30c5e64f860ba14318f3098"},"merge_error":null,"user":{"can_merge":true},"approvals_before_merge":null}'
|
|
142
|
-
http_version:
|
|
143
|
-
recorded_at: Mon, 25 Mar 2019 11:44:37 GMT
|
|
144
|
-
recorded_with: VCR 3.0.3
|