octokitted 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/octokitted.rb +5 -0
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 986492cc42b62e6430a462513f232ad56788e51208ca6e6cfaf6560a37b22f81
4
- data.tar.gz: 266493071acbdae5115a6bea0ef739f89c6cafc07883f165df38db6d59c9db1e
3
+ metadata.gz: 9e2273f42d15b208e1c3044e0357230b800cfc9e9868c0921df2c77b054ea9b9
4
+ data.tar.gz: c4ab08a959a98b1bce866644b7b8dcbbb7b3e40ac09fb6b5cc80a65d10803c12
5
5
  SHA512:
6
- metadata.gz: 1b80f268701244a188b1a5508ff53089d84da3b2db5873003b10426fd91bf4814a7b2a4609861ee4d822df6c7d74834512740ced1c9233eeb98c44c4c3d63b22
7
- data.tar.gz: 5355f24848030b3e248c1cdc45b1769d1a5332da6c18bff43fcdb07e38ee7e7dffe1973034c39ddf1742a22574b00f6ceeab3e166413e22e02103746a0ac9469
6
+ metadata.gz: 4687eb29d75b078b0e5f2b15ef4391a1a518aac3a64fb1a04c36c421b6e435967929df8287f71e159a80193a3404a38a0df49435d4ab49f4020c5b9acdeea87a
7
+ data.tar.gz: 24b3c9d44929a10a6ea7c0aea947b40f84c4694827a1f5d0901c919e0497c68195da963bf7e45b3d76996d499d55feed545905b91f45faeac0bef262ae11bcd0
data/lib/octokitted.rb CHANGED
@@ -193,6 +193,11 @@ class Octokitted
193
193
 
194
194
  issue_number = (github_event[:issue] || github_event[:pull_request] || github_event)[:number]
195
195
 
196
+ if issue_number.nil?
197
+ @log.debug("issue_number not found in GitHub event data - issue_number not auto-hydrated")
198
+ return nil
199
+ end
200
+
196
201
  @log.info("issue_number auto-hydrated - issue_number: #{issue_number}")
197
202
  return issue_number
198
203
  end
data/lib/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Octokitted
4
4
  module Version
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokitted
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Birkinbine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-27 00:00:00.000000000 Z
11
+ date: 2023-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: contracts