glman 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +2 -2
- data/lib/glman/commands/base.rb +7 -9
- data/lib/glman/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWQ5NWUzMzk5MTk5N2QyOWIwZGNkNGFjNDU1ZGMzYmFlMzk0YTVkYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTg0NDJlNzkwODBmMTM1ODM2ZDFmN2MyZWU1Njg3ZWQ5ZjBkYmEzNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWVmZWU5NTUzNzdhODEyMWE0MmUyMmUzOTY3ODE5NGNjM2U4NjFmOWY1Mzdl
|
10
|
+
YjhjM2JmMzBjYTRlMjU3NGRiY2ZmZjJjYTEzZmE4MTM2ZjAzMjUxNTRmYTVh
|
11
|
+
ZGMwM2NlNjVkOTAyMjkyNTM2ZjgxODc2Y2NkZmRjYjI3NjM3MTg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzZkMDY2YzQ5MmVkMDgzM2Y3MDFkZmUwNzlmZWMzMTBkOTQxNzg3MTFiZWM3
|
14
|
+
ZmE5Zjg5NjA1YmQ1YmE5MGI2ODlhYzkzOGE3MzE1YWI3ZjY0MmYwNGZhZjE4
|
15
|
+
MDFkMDJjZTAwZjhkZmU1NWE2ZDUxNTE5NDkxOGVlMzY2Y2FkNzk=
|
data/README.md
CHANGED
@@ -44,9 +44,9 @@ make default: (make merge request from current branch to master with last commit
|
|
44
44
|
|
45
45
|
$ glman mr <user_email_or_alias>
|
46
46
|
|
47
|
-
make with git push
|
47
|
+
make with git push origin current_branch
|
48
48
|
|
49
|
-
$ glman mr <user_email_or_alias> --push
|
49
|
+
$ glman mr <user_email_or_alias> --push
|
50
50
|
|
51
51
|
make full syntax
|
52
52
|
|
data/lib/glman/commands/base.rb
CHANGED
@@ -20,18 +20,18 @@ module Glman
|
|
20
20
|
|
21
21
|
params = {assignee_id: user_id, title: message, source_branch: current_branch, target_branch: target_branch}
|
22
22
|
|
23
|
-
push_branch_first(
|
23
|
+
push_branch_first(current_branch) if push?
|
24
24
|
|
25
25
|
projects_repo.create_merge_request(repository_name, params)
|
26
26
|
ap params.merge({user_name: user_name, repository_name: repository_name})
|
27
27
|
end
|
28
28
|
|
29
|
-
def push=(
|
30
|
-
@
|
29
|
+
def push=(push)
|
30
|
+
@push = push
|
31
31
|
end
|
32
32
|
|
33
33
|
def push?
|
34
|
-
@
|
34
|
+
@push
|
35
35
|
end
|
36
36
|
|
37
37
|
def show=(bool)
|
@@ -118,11 +118,9 @@ module Glman
|
|
118
118
|
end
|
119
119
|
private
|
120
120
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
p "push branch: #{branch} to origin: #{origin}"
|
125
|
-
git_repo.push(origin, branch)
|
121
|
+
def push_branch_first(branch)
|
122
|
+
p "push branch: #{branch} to origin: origin"
|
123
|
+
git_repo.push('origin', branch)
|
126
124
|
end
|
127
125
|
|
128
126
|
def show_all_mrs
|
data/lib/glman/version.rb
CHANGED