fastlane-plugin-au_danger_gitlab 0.1.0 → 0.1.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d7ce807f9862bcd9df2518e68ca6eafb5cea805
|
4
|
+
data.tar.gz: a40f3062074b7b8208508bfe3ce0aaa88836546a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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']}
|
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
|
-
|
14
|
-
|
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
|