Class: Fastlane::Actions::AndroidUpdateReleaseNotesAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::AndroidUpdateReleaseNotesAction
- Defined in:
- lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_release_notes.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .output ⇒ Object
- .return_value ⇒ Object
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
52 53 54 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_release_notes.rb', line 52 def self. ['Automattic'] end |
.available_options ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_release_notes.rb', line 32 def self. [ FastlaneCore::ConfigItem.new(key: :new_version, env_name: 'FL_ANDROID_UPDATE_RELEASE_NOTES_VERSION', description: 'The version we are currently freezing; An empty entry for the _next_ version after this one will be added to the release notes', type: String), FastlaneCore::ConfigItem.new(key: :release_notes_file_path, env_name: 'FL_ANDROID_UPDATE_RELEASE_NOTES_FILE_PATH', description: 'The path to the release notes file to be updated', type: String, default_value: 'RELEASE-NOTES.txt'), ] end |
.description ⇒ Object
24 25 26 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_release_notes.rb', line 24 def self.description 'Updates the release notes file for the next app version' end |
.details ⇒ Object
28 29 30 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_release_notes.rb', line 28 def self.details 'Updates the release notes file for the next app version' end |
.is_supported?(platform) ⇒ Boolean
56 57 58 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_release_notes.rb', line 56 def self.is_supported?(platform) platform == :android end |
.output ⇒ Object
46 47 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_release_notes.rb', line 46 def self.output end |
.return_value ⇒ Object
49 50 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_release_notes.rb', line 49 def self.return_value end |
.run(params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_release_notes.rb', line 4 def self.run(params) UI. 'Updating the release notes...' require_relative '../../helper/android/android_version_helper' require_relative '../../helper/release_notes_helper' require_relative '../../helper/git_helper' path = params[:release_notes_file_path] next_version = Fastlane::Helper::Android::VersionHelper.calc_next_release_short_version(params[:new_version]) Fastlane::Helper::ReleaseNotesHelper.add_new_section(path: path, section_title: next_version) Fastlane::Helper::GitHelper.commit(message: "Release Notes: add new section for next version (#{next_version})", files: path) UI. 'Done.' end |