lita-github_pr_list 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91165ab7475df7a5d88e14b8528154a9edf2919f
4
- data.tar.gz: a97244c9a462b27bd65b60d8622cbacd26e56b3c
3
+ metadata.gz: c755fb8dd6f5653f1aba859150becb3ad320a72a
4
+ data.tar.gz: ecc29c76d27e7c13bfa767bb4c800a17eca717a9
5
5
  SHA512:
6
- metadata.gz: b49fee37598ef82069ad9a1be7f9039df93c1ea77563234975eb000081aec8872e7b55acdbdee6d5c56b97c4aad847f4841451f02ea93580a456e5f94a1ed2fd
7
- data.tar.gz: 4399fecc1fe374a14cb805d89283fd16436b0851aa889b0e2e6b402c013d11d88f60b3ac5219eae1fecedc6a682c3635c3506c4c313cc898ee31ac2a668d1baf
6
+ metadata.gz: 7608e8723fbfbeeef2eff66a60aad67744c418f2b6436dad58ec9a28ba698e9e8a8b639f7cf2104f45321a31142c01e763581df6f5f9c9b2437e14b446cac1e7
7
+ data.tar.gz: 242ae2f5b1d84a5b7f17d254923d79c4fcf227a6bdbeef231c6801a1434a1c044b5ee7aacd86ea61cf79b5652e57b514a6375f6fa1b54ad45236600840aa5a6c
@@ -5,8 +5,8 @@ module Lita
5
5
 
6
6
  DESIGN_REVIEW_REGEX = /:art:/
7
7
  DEV_REVIEW_REGEX = /:elephant:/
8
- PASS_DEV_REGEX = /:elephant: :elephant: :elephant:/
9
- PASS_DESIGN_REGEX = /:art: :art: :art:/
8
+ PASS_DEV_REGEX = /:elephant:\s?:elephant:\s?:elephant:/
9
+ PASS_DESIGN_REGEX = /:art:\s?:art:\s?:art:/
10
10
  REVIEW_REGEX = /:book:/
11
11
  FAIL_REGEX = /:poop:|:hankey:/
12
12
  FIXED_REGEX = /:wave:/
@@ -93,8 +93,8 @@ module Lita
93
93
  def setup(comm)
94
94
  self.design = DESIGN_REVIEW_REQUIRED if comm.match(DESIGN_REVIEW_REGEX)
95
95
  self.dev = DEV_REVIEW_REQUIRED if comm.match(DEV_REVIEW_REGEX)
96
- if !comm.match(DESIGN_REVIEW_REGEX) && !comm.match(DEV_REVIEW_REGEX)
97
- self.dev = DEV_REVIEW_REQUIRED
96
+ if dev.nil? && design.nil?
97
+ self.dev = DEV_REVIEW_REQUIRED
98
98
  self.design = DESIGN_REVIEW_REQUIRED
99
99
  end
100
100
  end
@@ -1,5 +1,5 @@
1
1
  module Lita
2
2
  module GithubPrList
3
- VERSION = "0.1.3"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "created_at": "2014-07-01T17:21:15Z",
72
72
  "updated_at": "2014-07-01T17:21:15Z",
73
- "body": "Passed :elephant: :elephant: :elephant:"
73
+ "body": "Passed :elephant: :elephant::elephant:"
74
74
  },
75
75
  "repository": {
76
76
  "id": 20000106,
@@ -57,7 +57,7 @@
57
57
  "id": 1,
58
58
  "url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1",
59
59
  "html_url": "https://github.com/octocat/Hello-World/issues/1347#issuecomment-1",
60
- "body": ":art: :art: :art:",
60
+ "body": ":art::art: :art:",
61
61
  "user": {
62
62
  "login": "octocat",
63
63
  "id": 1,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-github_pr_list
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael van den Beuken
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2015-12-30 00:00:00.000000000 Z
18
+ date: 2016-04-08 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: lita
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  version: '0'
230
230
  requirements: []
231
231
  rubyforge_project:
232
- rubygems_version: 2.4.5.1
232
+ rubygems_version: 2.2.0
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: List open pull requests for an organization.