socialcast-git-extensions 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/git-start +7 -1
- data/socialcast-git-extensions.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
data/bin/git-start
CHANGED
@@ -6,6 +6,9 @@ require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extension
|
|
6
6
|
require 'readline'
|
7
7
|
include Socialcast
|
8
8
|
|
9
|
+
tickets = tickets_from_arguments ARGV
|
10
|
+
raise "JIRA ticket id is required to run this process" unless tickets.any?
|
11
|
+
|
9
12
|
def validate_branch_name(proposed_branch_name)
|
10
13
|
proposed_branch_name = proposed_branch_name.strip.parameterize
|
11
14
|
if !(proposed_branch_name =~ /^[A-Za-z0-9\-_]+$/)
|
@@ -16,7 +19,7 @@ def validate_branch_name(proposed_branch_name)
|
|
16
19
|
proposed_branch_name
|
17
20
|
end
|
18
21
|
|
19
|
-
branch_name =
|
22
|
+
branch_name = nil
|
20
23
|
until branch_name.present?
|
21
24
|
proposed_branch_name = Readline.readline("What would you like to name your branch? ")
|
22
25
|
branch_name = validate_branch_name(proposed_branch_name)
|
@@ -25,3 +28,6 @@ end
|
|
25
28
|
run_cmd 'git checkout master'
|
26
29
|
run_cmd 'git pull'
|
27
30
|
run_cmd "git checkout -b #{branch_name}"
|
31
|
+
|
32
|
+
update_tickets tickets, :branch => branch_name
|
33
|
+
start_tickets tickets
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{socialcast-git-extensions}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ryan Sonnek"]
|
12
|
-
s.date = %q{2010-08-
|
12
|
+
s.date = %q{2010-08-11}
|
13
13
|
s.description = %q{git extension scripts for socialcast workflow}
|
14
14
|
s.email = %q{ryan@socialcast.com}
|
15
15
|
s.executables = ["git-integrate", "git-promote", "git-prune-merged", "git-release", "git-release-pending", "git-reset-staging", "git-start", "git-track", "git-update", "git-wtf"]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialcast-git-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
8
|
+
- 3
|
9
9
|
- 0
|
10
|
-
version: 1.
|
10
|
+
version: 1.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Sonnek
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-11 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|