fastlane-plugin-stream_actions 0.1.8 → 0.1.9

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: cb4a89076f247bd3930d732ca0fac5ba73a09794aa831f49d65fb6dc56294e6b
4
- data.tar.gz: 8cdbbe019bb572f7440c609fd689c0fcf94d935e7e0ba49f1375e9975d7b7ca4
3
+ metadata.gz: e70cd39c5c644d6c32857d6d03444addbdeed3966a24c6b83e06215f620c7ee0
4
+ data.tar.gz: db8d4280649ec11e52fd4c7b78e2c24edba1cd9390a5ce9386dc93e26a465478
5
5
  SHA512:
6
- metadata.gz: 997b862b7d2630f48d7c75eaa811d684b52bb8d49972970bb5c5a3e03a09749efaa2d757c3908f4f862bfca59b7e63713cda580b774bcc595a820b82c01e0e8d
7
- data.tar.gz: 2ad15b8902f66ecf12bbb00ce6787d0988b0ab1034f66c6c3965a68ac5b2e496b782e31c30597fc6c5a81d2ea2e3f985c54016a4d8d656ac574f50eb3697d082
6
+ metadata.gz: e3f9788c4b4eb0ffbbb5fbd178c45681ca68d039ce1a3eb9311961ca50a71c2b900adec91b168a6bb56f4e83c7008a354e116d9d54d4643ad955f324b5d33f4c
7
+ data.tar.gz: c7f5206c11ed95b95d914decc895a8e2dbe31605c538e0207614b8b190feb5be4a78f73ca9441677e991c0dfc91a6dc1e9157cc19f6a33fd98a80df0abd019bd
@@ -6,11 +6,9 @@ module Fastlane
6
6
  def self.run(params)
7
7
  return true if ENV['GITHUB_EVENT_NAME'] != 'pull_request' && !params[:force]
8
8
 
9
- UI.user_error!("GITHUB_EVENT has to be specified") unless params[:github_event]
9
+ UI.user_error!("GITHUB_PR_NUM has to be specified") unless params[:github_pr_num]
10
10
 
11
- pr_number = JSON.parse(params[:github_event])['pull_request']['number']
12
-
13
- changed_files = sh("gh pr view #{pr_number} --json files -q '.files[].path'").split("\n")
11
+ changed_files = sh("gh pr view #{params[:github_pr_num]} --json files -q '.files[].path'").split("\n")
14
12
 
15
13
  return true if changed_files.size == 100 # TODO: https://github.com/cli/cli/issues/5368
16
14
 
@@ -48,9 +46,9 @@ module Fastlane
48
46
  end
49
47
  ),
50
48
  FastlaneCore::ConfigItem.new(
51
- env_name: 'GITHUB_EVENT',
52
- key: :github_event,
53
- description: 'Github Actions: toJson(github.event)'
49
+ env_name: 'GITHUB_PR_NUM',
50
+ key: :github_pr_num,
51
+ description: 'GitHub PR number'
54
52
  ),
55
53
  FastlaneCore::ConfigItem.new(
56
54
  key: :force,
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.9"
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.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream