fastlane-plugin-git_commit_lzx 0.1.1 → 0.1.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51122f50128ae039d946c585c76c2f4737677876d8381474a751b84153d95dab
|
4
|
+
data.tar.gz: 5fb780e5feb94c8a33f6654310cd262a98ef6f85555b663f4ce0e434d78b9e60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf901f79b425ae9e4e134f915ecacd299cb730852319346ab55b744775f6c13e4614e30f99d86266b809700e49eb4b96c18eb2b4eb7c872845bc587712fc929c
|
7
|
+
data.tar.gz: 5b80af248df45ced42e615ba634d5ee2069203d27156ca23cbeec3f0d7d5c487a91425e8f7239ed56f7307d8684f1bf8061e18c46e711c9f686bc7abd0f9c4c6
|
@@ -11,11 +11,11 @@ module Fastlane
|
|
11
11
|
paths = params[:path].map(&:shellescape).join(' ')
|
12
12
|
end
|
13
13
|
UI.message("The git_commit_lzx plugin is working!")
|
14
|
-
if params[:all] == true
|
14
|
+
if params[:all] == true
|
15
15
|
result = Actions.sh("git commit -a -m #{params[:message].shellescape}")
|
16
|
-
|
16
|
+
else
|
17
17
|
result = Actions.sh("git commit -m #{params[:message].shellescape} #{paths}")
|
18
|
-
|
18
|
+
end
|
19
19
|
UI.success("Successfully committed \"💾.")
|
20
20
|
return result
|
21
21
|
end
|
@@ -39,7 +39,7 @@ module Fastlane
|
|
39
39
|
|
40
40
|
def self.available_options
|
41
41
|
[
|
42
|
-
FastlaneCore::ConfigItem.new(key: :all,description: "all")
|
42
|
+
FastlaneCore::ConfigItem.new(key: :all,description: "all"),
|
43
43
|
FastlaneCore::ConfigItem.new(key: :path,
|
44
44
|
description: "The file you want to commit",
|
45
45
|
is_string: true),
|
@@ -50,22 +50,18 @@ module Fastlane
|
|
50
50
|
|
51
51
|
def self.example_code
|
52
52
|
[
|
53
|
-
'git_commit(all:true , path: "*"
|
53
|
+
'git_commit(all:true , path: ["*"], message: "Version Bump")',
|
54
54
|
'git_commit(path: "./version.txt", message: "Version Bump")',
|
55
55
|
'git_commit(path: ["./version.txt", "./changelog.txt"], message: "Version Bump")',
|
56
56
|
'git_commit(path: ["./*.txt", "./*.md"], message: "Update documentation")'
|
57
57
|
]
|
58
58
|
end
|
59
59
|
|
60
|
-
def self.category
|
61
|
-
:source_control
|
62
|
-
end
|
63
|
-
|
64
60
|
def self.is_supported?(platform)
|
65
61
|
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
66
62
|
# See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
|
67
63
|
#
|
68
|
-
|
64
|
+
[:ios, :mac, :android].include?(platform)
|
69
65
|
true
|
70
66
|
end
|
71
67
|
end
|