spire-git-pivotal-tracker 1.2.0 → 1.3.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.
@@ -92,7 +92,7 @@ class GitPivotalTrackerIntegration::Command::Configuration
|
|
92
92
|
|
93
93
|
repo = GitPivotalTrackerIntegration::Util::Git.repo_name
|
94
94
|
|
95
|
-
::Github.new(:oauth_token => token
|
95
|
+
::Github.new(:oauth_token => token)
|
96
96
|
end
|
97
97
|
|
98
98
|
private
|
@@ -34,15 +34,13 @@ class GitPivotalTrackerIntegration::Command::Finish < GitPivotalTrackerIntegrati
|
|
34
34
|
|
35
35
|
story = @configuration.story(@project)
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
print 'Creating PR on Github... '
|
37
|
+
print "Creating PR on Github... \n"
|
40
38
|
pr = github.pull_requests.create(
|
41
|
-
user:
|
42
|
-
repo:
|
39
|
+
user: GitPivotalTrackerIntegration::Util::Git.org_name,
|
40
|
+
repo: GitPivotalTrackerIntegration::Util::Git.repo_name,
|
43
41
|
base: GitPivotalTrackerIntegration::Util::Git.root_branch,
|
44
|
-
head: branch_name,
|
45
|
-
title: "[Delivers ##{story.id}] #{
|
42
|
+
head: GitPivotalTrackerIntegration::Util::Git.branch_name,
|
43
|
+
title: "[Delivers ##{story.id}] #{story.name}",
|
46
44
|
body: "#{story.name}\n#{story.description}\nPivotal Task: #{story.url}"
|
47
45
|
)
|
48
46
|
puts 'OK'
|
@@ -56,7 +56,11 @@ class GitPivotalTrackerIntegration::Util::Git
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def self.repo_name
|
59
|
-
GitPivotalTrackerIntegration::Util::Shell.exec('git config
|
59
|
+
GitPivotalTrackerIntegration::Util::Shell.exec('git config remote.origin.url').scan(/:(.*)\/(.*)\.git/)[0][1]
|
60
|
+
end
|
61
|
+
|
62
|
+
def self.org_name
|
63
|
+
GitPivotalTrackerIntegration::Util::Shell.exec('git config remote.origin.url').scan(/:(.*)\/(.*)\.git/)[0][0]
|
60
64
|
end
|
61
65
|
|
62
66
|
# Creates a branch with a given +name+. First pulls the current branch to
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spire-git-pivotal-tracker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-03-
|
12
|
+
date: 2016-03-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: highline
|