solicit 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: 3c92629f063199635ccde07aba4584aacc9106d53cd7e910add1939cfc30fba0
4
- data.tar.gz: 125cf7b47c20534a717be5574c99625b0490844b1de48dc35c8a64bfe38b36c2
3
+ metadata.gz: f5b1cad9b91d13d346961819928a674b6824888f0e818158fbbdb7704d89baa9
4
+ data.tar.gz: 0ac5da6eaf980b98278586226619c5588ae079862a1556be2c42b061a842c97a
5
5
  SHA512:
6
- metadata.gz: '034080a6aa99467cc4a200c87b8f6580917f6302b6e9d9ab328ebeae3c4d74548075e44205ed271116768d6bd23672bf5fdc2213406aca94d8b691590e2d3a76'
7
- data.tar.gz: '0494515dfe1297ac1f658cd41f34020231da9016604ba81b8de7c18f084938aa737400798b1ff9326b785d71813239eeb7376fef8ee71e20b62e8f78d11a1521'
6
+ metadata.gz: 0bf4790797bfbc9ff95d9a5d0b210b5cf7965286f83f27d89be6ee3276200a8bab430950448d08bbbf4e14c3fce1b4638474dfabb4e366d1144b08ce930f3508
7
+ data.tar.gz: 33060e277208026d64bf1b38bcd3ba25a00706f7e544cc4fa62115d058250b82187e0e1f4c9b8c63c710ba7fff6c5b14391b6175e00162eb8435f803fde2a5a9
@@ -34,11 +34,9 @@ module Solicit
34
34
  end
35
35
 
36
36
  def ensure_can_notify
37
- label = payload.dig(:label, :name).to_sym
38
37
  head :ok unless request_is_from_github? &&
39
38
  payload[:action] == 'labeled' &&
40
- Solicit.labels_map.key?(label) &&
41
- Solicit.needs_more_assignees.call(payload.dig(:pull_request, :assignees), label) &&
39
+ Solicit.labels_map.key?(payload.dig(:label, :name).to_sym) &&
42
40
  payload.dig(:pull_request, :number) &&
43
41
  payload.dig(:repository, :url)
44
42
  end
@@ -1,3 +1,3 @@
1
1
  module Solicit
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/solicit.rb CHANGED
@@ -11,9 +11,9 @@ module Solicit
11
11
  :github_secret,
12
12
  :needs_more_assignees
13
13
 
14
- # by default, always remove the "I'll do it" button;
14
+ # by default, always display the "I'll do it" button;
15
15
  # the main app can define more complicated behaviour here if necessary
16
- self.needs_more_assignees = proc { false }
16
+ self.needs_more_assignees = proc { true }
17
17
  self.labels_map = { go: "#general" }
18
18
  self.slack_username = "Solicit"
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solicit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Optimal Workshop