pivotal-git-tracker 0.2.0 → 0.2.1
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e30ba8335144a4755985238920b373490f7f7a8
|
|
4
|
+
data.tar.gz: ac9107017efa98e10e3343d709e7b3090192b0e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9340c91dc5856097b3df188e00da6ea510d9cd6f3efac9fc7c8ab7da41eed51d68431749a9d1e16f17494911d5a165154bd033b1dde34579395e174ed96727c2
|
|
7
|
+
data.tar.gz: 212967b7f510a83d16579cea71040952f9136206b023254439329dc59e5c41c3a8e285a7ba171d606e0fca77ffb6cf020a81bde3eef54069e234530082b34cf5
|
|
@@ -13,6 +13,7 @@ module Tracker
|
|
|
13
13
|
collection = project.finished
|
|
14
14
|
|
|
15
15
|
collection.each do |story|
|
|
16
|
+
puts "Found finished story in Pivotal with id #{story.id}"
|
|
16
17
|
if git.contains?(story.id, options)
|
|
17
18
|
puts "Delivering story with id #{story.id} on server #{server_name}"
|
|
18
19
|
project.deliver(story)
|
|
@@ -26,10 +27,12 @@ module Tracker
|
|
|
26
27
|
options[:branch] = branch if branch
|
|
27
28
|
|
|
28
29
|
for story_id in git.latest_log(options)
|
|
29
|
-
puts "Found story with id #{story_id} on server #{server_name}"
|
|
30
30
|
story = project.find(story_id)
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
if story
|
|
32
|
+
puts "Found story with id #{story_id} on server #{server_name}"
|
|
33
|
+
project.comment(story, server_name)
|
|
34
|
+
project.add_label(story, version) if version
|
|
35
|
+
end
|
|
33
36
|
end
|
|
34
37
|
end
|
|
35
38
|
end
|
|
@@ -10,8 +10,8 @@ module Tracker
|
|
|
10
10
|
def latest_log(options = {})
|
|
11
11
|
branch = options.fetch(:branch, 'HEAD')
|
|
12
12
|
remote_branch = options[:remote_branch]
|
|
13
|
-
commits = `git log -n
|
|
14
|
-
commits
|
|
13
|
+
commits = `git log -n 2 #{[remote_branch, branch].compact.join('..')} --grep='#' --oneline`
|
|
14
|
+
commits.scan(/#([0-9]{9})/).flatten
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
end
|