fastlane-plugin-apadmi_grout 1.1.0 → 1.2.0

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: e09c118b4ee869170d2846d836cf0f7e1193619e41bbd92771fc187f0e1c5eb2
4
- data.tar.gz: d0f1ae6d8c4210f74795363f9662e94cf14fe101835aeed85c527c3723f5640b
3
+ metadata.gz: ac24d03d0373738dffc98532e4b3ea50ee479995a70aeb3e40d2d1593c10ff25
4
+ data.tar.gz: 480f7215601eb77112b327065db85bf5aab1501ea468ca3b5ea6832e451c000c
5
5
  SHA512:
6
- metadata.gz: c52883e0ff3547408b61893df958bb7f152c59a4c609e8af5ce0828290b3d662140e3b3ed8342c4475002d111a6a06976de60cf673986341c24d52aa38b05a98
7
- data.tar.gz: db570ea6fb066f893248bea522a932d03e1792a1d817635e1c910ebf6b8c06b21aa4fb9648b4328f3d1e57235351a63497046cb1a56ede6a946e7b21a434c3f8
6
+ metadata.gz: ad61c7daca59c15050a638dd832002d164162eb5f496b2a9052a6dc03a6bff3c9911f52b5e6ee16415a43234222cbc47ccab95f4cc5b4841a4a3cff6bba3b5a3
7
+ data.tar.gz: dacd6738d17ed4fc07505faeedf2d4d21cb3e21314164c38b4594a3b6f6a4d1dbc7d0326ae77c4f852cd152bc81558ba7dfcd940423d2fe11ca347e44e1b6990
data/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Fastlane Plugin Changelog
2
2
 
3
+ ## [1.2.0] - 2022-05-17
4
+ * Automatically save generated release notes to a file on disk.
5
+
3
6
  ## [1.1.0] - 2022-05-12
4
7
  * Support allowing tickets that aren't assigned to a sprint to be moved.
5
8
  * Create action for obtaining iOS deployment target
6
9
 
7
10
  ## [1.0.0] - 2022-05-09 - Initial release
8
-
9
11
  * Fastlane wrappers for new core functionality
@@ -3,6 +3,7 @@
3
3
  require "fastlane/action"
4
4
  require "apadmi_grout"
5
5
  require_relative "../utils/fastlane_logger"
6
+ require "fileutils"
6
7
 
7
8
  module Fastlane
8
9
  module Actions
@@ -43,7 +44,14 @@ module Fastlane
43
44
  )
44
45
 
45
46
  logger.message("Generating Release Notes")
46
- build_tools.generate_release_notes_action.run(config)
47
+ release_notes = build_tools.generate_release_notes_action.run(config)
48
+
49
+ FileUtils.mkdir_p(params[:output_dir])
50
+ file_name = "#{params[:output_dir]}/#{params[:release_notes_title]}-#{params[:app_version]}.md"
51
+
52
+ File.write(file_name, release_notes)
53
+ logger.success("Saved Release Notes to #{file_name}")
54
+ [release_notes, file_name]
47
55
  end
48
56
 
49
57
  def self.description
@@ -163,7 +171,11 @@ module Fastlane
163
171
  FastlaneCore::ConfigItem.new(key: :templates,
164
172
  description: "Release notes templates",
165
173
  default_value: Apadmi::Grout::Templates.default,
166
- type: Apadmi::Grout::Templates)
174
+ type: Apadmi::Grout::Templates),
175
+ FastlaneCore::ConfigItem.new(key: :output_dir,
176
+ description: "Directory in which to save the release notes file",
177
+ default_value: ENV["BITRISE_DEPLOY_DIR"] || "#{Apadmi::Grout::GitUtils.git_root}/build",
178
+ type: String)
167
179
  ]
168
180
  end
169
181
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module ApadmiGrout
5
- VERSION = "1.1.0"
5
+ VERSION = "1.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-apadmi_grout
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - Sam
7
+ - Apadmi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-12 00:00:00.000000000 Z
11
+ date: 2022-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apadmi_grout