octokitted 0.0.8 → 0.0.9

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 +4 -0
  3. data/lib/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7fe4c051e60f41068c020cd9c0fbfe3bae4d1cb673e22de5dc17c3b76e46ea9
4
- data.tar.gz: b6c569962b05022e655a077f9f692c5d17a2bab406e29722188887dc7be248cc
3
+ metadata.gz: 6eb37191994ca5fbce98292fa7d110d1b8ba0cef9adbfdcee64ff9a4c86783c5
4
+ data.tar.gz: dddf0023f475c442215e2c73c0112782cbef093c4725d321e72d3bcff9edffaf
5
5
  SHA512:
6
- metadata.gz: b3a9add54171018622c44d309e6ac50435d3c225fe4795eb917c9812a3a567881210fa8f538b6b575eb00cb7bc7d2831da3899cfa9f29115ef30ce42fffa384f
7
- data.tar.gz: 2cb81e5b5a4e078cfc7dec09202092c01c609a888ffc2c6e176390f45de1ebcdd3f4c9873378a90ccd33fddc4d4425493846af1288886ee2f1489a7e38432dbe
6
+ metadata.gz: 256b887a612783254b34ccabb3f4e8c348df57656f1562507453802bf37252214157164f79d45032ef8231e05ccc46b8b25f4a82e8f9850b17eff5ff5e7249c8
7
+ data.tar.gz: dc678d7dd0658e9ea8e0d8983b99f17784836140140b31e303b5718b7c39d465706db56061a9d26e79d48ea609b83599c6b2b61eed5330309f07a389ad0ce55d
data/lib/octokitted.rb CHANGED
@@ -159,6 +159,10 @@ class Octokitted
159
159
  # :return: A Hash of the GitHub event data or nil if not found
160
160
  Contract Maybe[String] => Maybe[Hash]
161
161
  def fetch_github_event(event_path)
162
+ if ENV.fetch("GITHUB_ACTIONS", nil).nil?
163
+ @log.debug("Not running in GitHub Actions - GitHub Event data not auto-hydrated")
164
+ return nil
165
+ end
162
166
  unless event_path
163
167
  @log.warn("GITHUB_EVENT_PATH env var not found")
164
168
  return nil
data/lib/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Octokitted
4
4
  module Version
5
- VERSION = "0.0.8"
5
+ VERSION = "0.0.9"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokitted
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Birkinbine