prima-twig 0.0.30 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/twig-pick-issue +2 -2
- 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: 0d2e9d9c1a490a7eb29352b8122f36072c3ee2a4
|
4
|
+
data.tar.gz: 677065040e9fa036696291d956c4e93854eb0b75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47e75ad8507d7e60d9d6b8296f62d2721edf245b517b9efe4fa05c180e062331ce33faa54d9688e9718b09c0572b854927beed4b59d307c5cbec629ae88a683c
|
7
|
+
data.tar.gz: 1bcbf52fb0390d7f39a5664e7b2ddab98a588c8009fb627f9d024380f9c1cd779da9e15ee0e757703cdc8a858ee210520a653bba695d6f71aee262c543ff88c0
|
data/bin/twig-pick-issue
CHANGED
@@ -44,7 +44,7 @@ class PickIssue
|
|
44
44
|
exit(1)
|
45
45
|
end
|
46
46
|
|
47
|
-
issues = @prima.
|
47
|
+
issues = @prima.list_issues
|
48
48
|
issues.delete_if do |issue|
|
49
49
|
issue.pull_request?
|
50
50
|
end
|
@@ -60,7 +60,7 @@ class PickIssue
|
|
60
60
|
@prima.rugged.branches.create(branch_name, base_branch_name)
|
61
61
|
|
62
62
|
@prima.twig.set_branch_property(branch_name, 'issue', issue_number)
|
63
|
-
@prima.twig.set_branch_property(branch_name, 'diff-branch',
|
63
|
+
@prima.twig.set_branch_property(branch_name, 'diff-branch', base_branch_name)
|
64
64
|
@prima.rugged.checkout(branch_name)
|
65
65
|
@prima.update_issue_with_label(issue_number, Prima::LABEL_WIP)
|
66
66
|
puts "Aggiunta label \"#{ Prima::LABEL_WIP }\" sulla issue ##{ issue_number }".green
|
data/lib/prima_twig.rb
CHANGED
@@ -150,6 +150,10 @@ class Prima
|
|
150
150
|
@gh.update_issue(repo_name, issue, :assignee => user_login)
|
151
151
|
end
|
152
152
|
|
153
|
+
def list_issues
|
154
|
+
@gh.list_issues(repo_name, state: :all)
|
155
|
+
end
|
156
|
+
|
153
157
|
def yesno(prompt = 'Continue?', default = true)
|
154
158
|
a = ''
|
155
159
|
s = default ? '[Y/n]' : '[y/N]'
|
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.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matteo Giachino
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-07-
|
13
|
+
date: 2015-07-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: twig
|