fastlane-plugin-au_danger_gitlab 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fb8e65b24d147c4042c562406d5deb5e5c285b8
4
- data.tar.gz: fc47ba6425c0728354efc2387920393b961e5564
3
+ metadata.gz: 0d7ce807f9862bcd9df2518e68ca6eafb5cea805
4
+ data.tar.gz: a40f3062074b7b8208508bfe3ce0aaa88836546a
5
5
  SHA512:
6
- metadata.gz: afd571d8b2def17e9c5b7ed07d27fb2f40b02061dc489df1f05257975b5c8ac9dca6155acb5136616bb2a1988dce7b8d3041df94a1cba25f8abae660b6b3c18f
7
- data.tar.gz: 75327b37a4b4e871b550ff481696a5e1dcbcba1e889f678e06c1a8f99e87b3969a389b2a3e4640e717cb63786d2c36dcd8b647208c7d179ca505e882d10b3fdb
6
+ metadata.gz: 9e942d9a36f6c55522ed709f493dce6fe9dc9dbef812d05c814569d073d2aa7381e32ba1c85c4c5706595ccc51e7162885ac7ee7952246f72012c7aeeb8b2869
7
+ data.tar.gz: 100617c9553f4b47f19bb28757c37642145d890f8f9f870125851248dcaf8d4841eb2c9ed3249396509c7aedc7ddf7524ad35a8e19bf03b3e8496a3f0d9e430d
@@ -6,13 +6,16 @@ module Fastlane
6
6
  class AuDangerGitlabAction < Action
7
7
  def self.run(params)
8
8
  # UI.message("The au_danger_gitlab plugin is working!")
9
- remotes = sh("git ls-remote -q origin merge-requests\\*head|grep #{ENV['CI_COMMIT_SHA']} || echo 'not a merge request' ")
9
+ remotes = sh("git ls-remote -q origin merge-requests\\*head|grep #{ENV['CI_COMMIT_SHA']}")
10
10
  match_data = /.*merge-requests\/([0-9]+)\//.match(remotes)
11
11
  if match_data && match_data[1]
12
12
  ENV['CI_MERGE_REQUEST_ID'] = match_data[1]
13
- else
14
- UI.message("Not a merge request, exiting...")
13
+ UI.message("Adding `CI_MERGE_REQUEST_ID` to ENVs")
14
+ return true
15
15
  end
16
+
17
+ UI.message("Not a merge request, exiting...")
18
+ return false
16
19
  end
17
20
 
18
21
  def self.description
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AuDangerGitlab
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-au_danger_gitlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil