fastlane-plugin-polidea 2.1.1.pre.2 → 2.2.0.pre
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 195dd2dd89017eb5f7bbd37fbed5081b8c2ea42434114e7d2b3930385f7b084b
|
4
|
+
data.tar.gz: 3c58ca6693ead25acc9614bcfe4ae20af1f9326d2d69f801f46c4a52e6df7abf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce476129578f0e4302a1cc43373ff20e55f01a67dae595d95d13af8d07569d0534d8c961c17e12433e071a7bfe4b56cba8f961c6bf63946d9d128d8565def56a
|
7
|
+
data.tar.gz: f3e9a3d619bbcdb8c7f1d9df4886f567ee3d02c88eeab03cb56bd889f3494a1848750540a74a0a861e6d97a339f5249bf68cbce6b1edf93bfe1d4fcc4c35c65d
|
@@ -0,0 +1,54 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
module SharedValues
|
4
|
+
RELEASE_NOTES = :RELEASE_NOTES
|
5
|
+
end
|
6
|
+
|
7
|
+
class ReleaseNotesFromCommitsAction < Action
|
8
|
+
def self.run(config)
|
9
|
+
Fastlane::Polidea.session.action_launched("release_notes_from_commits", config)
|
10
|
+
|
11
|
+
current_version = config[:current_version]
|
12
|
+
previous_version = sh("git describe --abbrev=0 --tags #{current_version}^").strip
|
13
|
+
messages = sh("git log --oneline --pretty=format:'%s' #{previous_version}..#{current_version} | grep -Ev '^Merge'").strip
|
14
|
+
release_notes = messages.split("\n").map { |note| "- #{note}" }.join("\n")
|
15
|
+
|
16
|
+
UI.success "Extracted release notes:\n#{release_notes}"
|
17
|
+
Actions.lane_context[SharedValues::RELEASE_NOTES] = release_notes
|
18
|
+
ENV[SharedValues::RELEASE_NOTES.to_s] = release_notes
|
19
|
+
|
20
|
+
Fastlane::Polidea.session.action_completed("release_notes_from_commits")
|
21
|
+
|
22
|
+
release_notes
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.description
|
26
|
+
"Extracts release notes from git commit messages since last tag"
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.available_options
|
30
|
+
[
|
31
|
+
FastlaneCore::ConfigItem.new(key: :current_version,
|
32
|
+
env_name: "VERSION_NAME",
|
33
|
+
description: "Git ref of current version",
|
34
|
+
optional: true,
|
35
|
+
default_value: 'HEAD')
|
36
|
+
]
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.output
|
40
|
+
[
|
41
|
+
['RELEASE_NOTES', 'Release notes extracted from git commits']
|
42
|
+
]
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.author
|
46
|
+
"Piotrek Dubiel"
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.is_supported?(platform)
|
50
|
+
true
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-polidea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotrek Dubiel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -273,6 +273,7 @@ files:
|
|
273
273
|
- lib/fastlane/plugin/polidea/actions/get_binary_size.rb
|
274
274
|
- lib/fastlane/plugin/polidea/actions/import_provisioning.rb
|
275
275
|
- lib/fastlane/plugin/polidea/actions/release_notes.rb
|
276
|
+
- lib/fastlane/plugin/polidea/actions/release_notes_from_commits.rb
|
276
277
|
- lib/fastlane/plugin/polidea/actions/shuttle.rb
|
277
278
|
- lib/fastlane/plugin/polidea/helper/analytics.rb
|
278
279
|
- lib/fastlane/plugin/polidea/helper/mime.rb
|