gplan 0.0.6 → 0.0.7
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.
- data/bin/gplan +8 -1
- data/lib/github.rb +1 -1
- metadata +2 -2
data/bin/gplan
CHANGED
@@ -47,11 +47,18 @@ end
|
|
47
47
|
|
48
48
|
def pull_dependency(story)
|
49
49
|
return if story['blocks'].nil?
|
50
|
+
|
51
|
+
# find dependency based on blocks
|
50
52
|
story['blocks'].each do |block|
|
51
53
|
if block.match(/(dependenc(y|ies|ys))/i)
|
52
|
-
return "PR
|
54
|
+
return "PR ##{story['number']}: " + block
|
53
55
|
end
|
54
56
|
end
|
57
|
+
|
58
|
+
# else find dependency based on labels
|
59
|
+
if story['labels'].to_s.match /Has Dependency/i
|
60
|
+
return "PR ##{story['number']}: has a dependency label"
|
61
|
+
end
|
55
62
|
return nil
|
56
63
|
end
|
57
64
|
|
data/lib/github.rb
CHANGED
@@ -37,7 +37,7 @@ module Github
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def self.pulls_url(pr_id)
|
40
|
-
"#{GITHUB_BASE_URL}/repos/#{@repo_name}/#{@app_name}/
|
40
|
+
"#{GITHUB_BASE_URL}/repos/#{@repo_name}/#{@app_name}/issues/#{pr_id}?access_token=#{GITHUB_TOKEN}"
|
41
41
|
end
|
42
42
|
|
43
43
|
def self.get_story(pr_id)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gplan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
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: 2014-
|
12
|
+
date: 2014-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|