prima-twig 0.2.26 → 0.2.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/twig-deploy +3 -3
- data/bin/twig-hotfix +1 -1
- data/bin/twig-open-pr +2 -1
- data/bin/twig-release +3 -3
- data/lib/prima_twig.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ae2b2439b1eea4e4aab608aec6dc9ead04561c7
|
4
|
+
data.tar.gz: 160d6f697d55a16b005eed9d10e7cbdb51554091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09da201f05deca5428bca7546e0303ec002ecf3f9c4154d74ed5b833a09ed5acc0edceb8a9b3e0ac447e07cd46d8a0826f1bdef729e724f08c5eddc2205f20fe
|
7
|
+
data.tar.gz: 8d4b87e6d48cfb33df31cf21f41e265032cff01b34b2d2ebc6ee87cefed6eb2f8fbeff1c010249f98912df92145489ac3c9bfd398595417b9b491c3657e7a2d3
|
data/bin/twig-deploy
CHANGED
@@ -73,8 +73,8 @@ class Review
|
|
73
73
|
artifact = artifacts.select {|v| v[:rev] == artifact_rev}.first
|
74
74
|
|
75
75
|
mail = Mail.new do
|
76
|
-
from '
|
77
|
-
to '
|
76
|
+
from 'deploy@prima.it'
|
77
|
+
to 'deploy@prima.it'
|
78
78
|
subject "#{user} ha effettuato il deploy della revision #{artifact[:rev]}"
|
79
79
|
end
|
80
80
|
|
@@ -98,7 +98,7 @@ class Review
|
|
98
98
|
mail.text_part = text_part
|
99
99
|
|
100
100
|
opts = {address: 'smtp.mandrillapp.com', port: '587'}
|
101
|
-
opts[:user_name] = '
|
101
|
+
opts[:user_name] = 'deploy@prima.it'
|
102
102
|
opts[:password] = @prima.config['mandrill']
|
103
103
|
|
104
104
|
mail.delivery_method(:smtp, opts)
|
data/bin/twig-hotfix
CHANGED
@@ -56,7 +56,7 @@ class Hotfix
|
|
56
56
|
exec_step 'git fetch'
|
57
57
|
exec_step 'git checkout dev'
|
58
58
|
exec_step 'git merge origin/dev'
|
59
|
-
exec_step "git merge #{current_branch_name}"
|
59
|
+
exec_step "git merge --no-ff #{current_branch_name}"
|
60
60
|
|
61
61
|
exec_step 'git push origin dev' if @prima.yesno 'Vuoi effettuare il push di dev?'.blue
|
62
62
|
|
data/bin/twig-open-pr
CHANGED
@@ -117,7 +117,8 @@ class OpenPR
|
|
117
117
|
unless @prima.twig.get_branch_property(current_branch_name, 'issue').nil?
|
118
118
|
body << " close ##{@prima.twig.get_branch_property(current_branch_name, 'issue')}"
|
119
119
|
end
|
120
|
-
@prima.
|
120
|
+
pr = @prima.create_pull_request base_branch, head, title, body
|
121
|
+
@prima.assign_pull_request_to_me(pr.number)
|
121
122
|
end
|
122
123
|
end
|
123
124
|
|
data/bin/twig-release
CHANGED
@@ -59,8 +59,8 @@ class Release
|
|
59
59
|
@prima.update_pr pr.number, {:body => pr_body}
|
60
60
|
|
61
61
|
mail = Mail.new do
|
62
|
-
from '
|
63
|
-
to '
|
62
|
+
from 'deploy@prima.it'
|
63
|
+
to 'deploy@prima.it'
|
64
64
|
subject "#{`git config user.name`} ha iniziato la creazione della release #{branch_name}"
|
65
65
|
end
|
66
66
|
|
@@ -78,7 +78,7 @@ class Release
|
|
78
78
|
mail.text_part = text_part
|
79
79
|
|
80
80
|
opts = {address: 'smtp.mandrillapp.com', port: '587'}
|
81
|
-
opts[:user_name] = '
|
81
|
+
opts[:user_name] = 'deploy@prima.it'
|
82
82
|
opts[:password] = @prima.config['mandrill']
|
83
83
|
|
84
84
|
mail.delivery_method(:smtp, opts)
|
data/lib/prima_twig.rb
CHANGED
@@ -196,6 +196,10 @@ class Prima
|
|
196
196
|
@gh.update_issue(repo_name, issue, :assignee => user_login)
|
197
197
|
end
|
198
198
|
|
199
|
+
def assign_pull_request_to_me(pr_number)
|
200
|
+
@gh.update_pull_request(repo_name, pr_number, :assignee => user_login)
|
201
|
+
end
|
202
|
+
|
199
203
|
def list_issues
|
200
204
|
results = @gh.list_issues repo_name, state: :open, :per_page => 20, :page => 1
|
201
205
|
unless @gh.last_response.rels[:last].nil?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prima-twig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matteo Giachino
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-
|
14
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: twig
|