fastlane-plugin-stream_actions 0.1.6 → 0.1.8

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: e9b22c10c2a5f37386d1b8d9a09da0098e864d78824ffe5a6da552d4e52984b6
4
- data.tar.gz: 9471a975bc5258fb802234d7c53d170397ddb0a64f430f163e3e20c134baddfd
3
+ metadata.gz: cb4a89076f247bd3930d732ca0fac5ba73a09794aa831f49d65fb6dc56294e6b
4
+ data.tar.gz: 8cdbbe019bb572f7440c609fd689c0fcf94d935e7e0ba49f1375e9975d7b7ca4
5
5
  SHA512:
6
- metadata.gz: 3fd3a80b24055e615ad2ff05870361b3e50639131fc22af910381f9f909d7a2e3a844d02de8a83d31e3f7ebf90edc404045550d8b24051defa22fe6a1ed2ff9d
7
- data.tar.gz: '09fae4d3655bf8b206e466728d19ad6f2ef22e353927f136a101ba8ec369d8fd7bdb588ace04b7712cb3106e4600666decb9f9cd416e6cfeddf6a92ec1a3f2cb'
6
+ metadata.gz: 997b862b7d2630f48d7c75eaa811d684b52bb8d49972970bb5c5a3e03a09749efaa2d757c3908f4f862bfca59b7e63713cda580b774bcc595a820b82c01e0e8d
7
+ data.tar.gz: 2ad15b8902f66ecf12bbb00ce6787d0988b0ab1034f66c6c3965a68ac5b2e496b782e31c30597fc6c5a81d2ea2e3f985c54016a4d8d656ac574f50eb3697d082
@@ -4,9 +4,11 @@ module Fastlane
4
4
 
5
5
  class IsCheckRequiredAction < Action
6
6
  def self.run(params)
7
- return true if ENV['GITHUB_EVENT_NAME'] != 'pull_request'
7
+ return true if ENV['GITHUB_EVENT_NAME'] != 'pull_request' && !params[:force]
8
8
 
9
- pr_number = JSON.parse(ENV['GITHUB_EVENT'])['pull_request']['number']
9
+ UI.user_error!("GITHUB_EVENT has to be specified") unless params[:github_event]
10
+
11
+ pr_number = JSON.parse(params[:github_event])['pull_request']['number']
10
12
 
11
13
  changed_files = sh("gh pr view #{pr_number} --json files -q '.files[].path'").split("\n")
12
14
 
@@ -44,6 +46,16 @@ module Fastlane
44
46
  verify_block: proc do |type|
45
47
  UI.user_error!("Type has to be specified") unless type
46
48
  end
49
+ ),
50
+ FastlaneCore::ConfigItem.new(
51
+ env_name: 'GITHUB_EVENT',
52
+ key: :github_event,
53
+ description: 'Github Actions: toJson(github.event)'
54
+ ),
55
+ FastlaneCore::ConfigItem.new(
56
+ key: :force,
57
+ description: 'Should the checked be anyway',
58
+ is_string: false
47
59
  )
48
60
  ]
49
61
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-stream_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream