fastlane-plugin-logme 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +1 -0
- data/lib/fastlane/plugin/logme/actions/logme.rb +7 -1
- data/lib/fastlane/plugin/logme/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1af4f75bec7974a6757deb651ceb0c275bcd685
|
4
|
+
data.tar.gz: ceac91b8251c3401721ba255d0f031f7f2b777e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e77f423737571a1b799259e4b6caac4a0e78179fa4c4082695fc0d60fa36af37eeec7ad6263ca76cda16708feeef2c8d480682137932b52fe899c1ad1f0668e
|
7
|
+
data.tar.gz: aab823f41f0c2f81e3ee48218fa6a2cda8bca8e24124ba09117e4d0597d3b721d3a673e657cd066ccc7a6388245a670a21da07d38fe5bf01b68a45a87c4438ce
|
data/README.md
CHANGED
@@ -24,6 +24,7 @@ Just invoke *logme* in your Fastfile action. Logme will return the commit messag
|
|
24
24
|
| `to_revision` | End revision commit | false |
|
25
25
|
| `from_revision` | From revision commit | false |
|
26
26
|
| `message_regexp_filters` | Regexp filters like. ie '^MDM-\|^CTS:' | true |
|
27
|
+
| `message_regexp_exclude_filters` | Regexp filters like. ie '^MDM-TST\|^CTS:UI' | true |
|
27
28
|
|
28
29
|
## Example
|
29
30
|
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
@@ -4,9 +4,11 @@ module Fastlane
|
|
4
4
|
|
5
5
|
def self.run(options)
|
6
6
|
regexp_filter = Regexp.new(options[:message_regexp_filters])
|
7
|
+
exclude_regexp_filter = Regexp.new(options[:message_regexp_exclude_filters])
|
7
8
|
Actions.sh("git log --pretty=format:\"%s\" --no-merges #{options[:from_revision]}...#{options[:to_revision]}")
|
8
9
|
.split(/\n/)
|
9
|
-
.select{|message| message[regexp_filter]}
|
10
|
+
.select{|message| message[regexp_filter] != nil}
|
11
|
+
.select{|message| message[exclude_regexp_filter] == nil}
|
10
12
|
.join("\n")
|
11
13
|
end
|
12
14
|
|
@@ -29,6 +31,10 @@ module Fastlane
|
|
29
31
|
FastlaneCore::ConfigItem.new(key: :message_regexp_filters,
|
30
32
|
description: "Regexp filters like. ie '^MDM-|^CTS:'",
|
31
33
|
default_value: '.',
|
34
|
+
optional: true),
|
35
|
+
FastlaneCore::ConfigItem.new(key: :message_regexp_exclude_filters,
|
36
|
+
description: "Regexp filters like. ie '^MDM-TST|^MDM-UI'",
|
37
|
+
default_value: '.',
|
32
38
|
optional: true)
|
33
39
|
]
|
34
40
|
end
|