fastlane-plugin-write_changelog_from_commits 1.2.0 → 3.1.0
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: 36a3500ca531024ffb834fa0c00d2cb4e8682dfc42709e25395fb6aea85cb2da
|
4
|
+
data.tar.gz: 3e975cb400ac4ec4c0e6fa69bff072033a6c67ba65edad7fd07588a1de48cf99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88701fff2bb35b4e7be74230e46ff0809e95a1c675747ee889871db7f40c4fea80384eddcdf3f6fafb5e82e07059b8f707049690937dbfff4223ed28b12328aa
|
7
|
+
data.tar.gz: e0c78886d7be3dd087174f25e68bb0c8b1227e8b3803a2fd2a6f1e027b0fb21c81e8e2c154405484fd0ed91253a0c5f5ba2e5f536200f9ab19dd7dc588324e99
|
data/lib/fastlane/plugin/write_changelog_from_commits/actions/write_changelog_from_commits_action.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
require
|
2
|
-
require_relative
|
1
|
+
require "fastlane/action"
|
2
|
+
require_relative "../helper/write_changelog_from_commits_helper"
|
3
3
|
|
4
4
|
module Fastlane
|
5
5
|
module Actions
|
6
6
|
class WriteChangelogFromCommitsAction < Action
|
7
|
-
|
8
7
|
def self.run(params)
|
9
8
|
if params[:additional_section_name].nil? && params[:commit_prefixes].nil?
|
10
9
|
raise "Please provide either 'additional_section_name' or 'commit_prefixes' to action"
|
@@ -12,11 +11,11 @@ module Fastlane
|
|
12
11
|
|
13
12
|
from = Actions.last_git_tag_name
|
14
13
|
UI.verbose("Found the last Git tag: #{from}")
|
15
|
-
to =
|
14
|
+
to = "HEAD"
|
16
15
|
|
17
16
|
if params[:path].nil?
|
18
17
|
UI.message("No path provided, using default at '/'")
|
19
|
-
params[:path] =
|
18
|
+
params[:path] = "./" unless params[:path]
|
20
19
|
end
|
21
20
|
|
22
21
|
params[:commit_prefixes] ||= []
|
@@ -66,8 +65,10 @@ module Fastlane
|
|
66
65
|
release_notes = ""
|
67
66
|
raw_release_notes.keys.each do |section_title|
|
68
67
|
next if raw_release_notes[section_title].empty?
|
69
|
-
|
70
|
-
release_notes << "#{
|
68
|
+
|
69
|
+
release_notes << "#{section_title}:\n"
|
70
|
+
checklist = raw_release_notes[section_title].map {|li| "•#{li}"}.join("\n")
|
71
|
+
release_notes << "#{checklist}\n\n"
|
71
72
|
end
|
72
73
|
release_notes
|
73
74
|
end
|
@@ -100,43 +101,43 @@ module Fastlane
|
|
100
101
|
[
|
101
102
|
FastlaneCore::ConfigItem.new(
|
102
103
|
key: :path,
|
103
|
-
env_name:
|
104
|
-
description:
|
104
|
+
env_name: "WRITE_CHANGELOG_FROM_COMMITS_PATH",
|
105
|
+
description: "Path of the git repository",
|
105
106
|
optional: true,
|
106
|
-
default_value:
|
107
|
+
default_value: "./",
|
107
108
|
),
|
108
109
|
FastlaneCore::ConfigItem.new(
|
109
110
|
key: :quiet,
|
110
|
-
env_name:
|
111
|
-
description:
|
111
|
+
env_name: "WRITE_CHANGELOG_FROM_COMMITS_TAG_QUIET",
|
112
|
+
description: "Whether or not to disable changelog output",
|
112
113
|
optional: true,
|
113
114
|
default_value: false,
|
114
|
-
is_string: false
|
115
|
+
is_string: false,
|
115
116
|
),
|
116
117
|
FastlaneCore::ConfigItem.new(
|
117
118
|
key: :changelog_dir,
|
118
|
-
env_name:
|
119
|
-
description:
|
120
|
-
optional: false
|
119
|
+
env_name: "WRITE_CHANGELOG_FROM_COMMITS_CHANGELOG_DIR",
|
120
|
+
description: "Path to write new changelogs",
|
121
|
+
optional: false,
|
121
122
|
),
|
122
123
|
FastlaneCore::ConfigItem.new(
|
123
124
|
key: :commit_prefixes,
|
124
125
|
env_name: "WRITE_CHANGELOG_FROM_COMMITS_PREFIXES",
|
125
126
|
description: "List of prefixes to group in the changelog (omit to place all lines under additional_section_name)",
|
126
127
|
type: Array,
|
127
|
-
optional: true
|
128
|
+
optional: true,
|
128
129
|
),
|
129
130
|
FastlaneCore::ConfigItem.new(
|
130
131
|
key: :additional_section_name,
|
131
132
|
env_name: "WRITE_CHANGELOG_FROM_COMMITS_ADDITIONAL_SECTION",
|
132
133
|
description: "Section to contain all other commit lines (omit if you only want to log lines beginning with prefixes)",
|
133
|
-
optional: true
|
134
|
+
optional: true,
|
134
135
|
),
|
135
136
|
FastlaneCore::ConfigItem.new(
|
136
137
|
key: :version_code,
|
137
138
|
env_name: "WRITE_CHANGELOG_FROM_COMMITS_VERSION_CODE",
|
138
139
|
description: "Version code used to create file",
|
139
|
-
optional: true
|
140
|
+
optional: true,
|
140
141
|
),
|
141
142
|
FastlaneCore::ConfigItem.new(
|
142
143
|
key: :read_only,
|
@@ -144,8 +145,8 @@ module Fastlane
|
|
144
145
|
description: "If true will simply return the changelog rather than writing it",
|
145
146
|
optional: true,
|
146
147
|
default_value: false,
|
147
|
-
is_string: false
|
148
|
-
)
|
148
|
+
is_string: false,
|
149
|
+
),
|
149
150
|
]
|
150
151
|
end
|
151
152
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-write_changelog_from_commits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lewis Bright
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop-require_tools
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +108,34 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop-rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
111
139
|
- !ruby/object:Gem::Dependency
|
112
140
|
name: simplecov
|
113
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +156,14 @@ dependencies:
|
|
128
156
|
requirements:
|
129
157
|
- - ">="
|
130
158
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
159
|
+
version: '0'
|
132
160
|
type: :development
|
133
161
|
prerelease: false
|
134
162
|
version_requirements: !ruby/object:Gem::Requirement
|
135
163
|
requirements:
|
136
164
|
- - ">="
|
137
165
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
166
|
+
version: '0'
|
139
167
|
description:
|
140
168
|
email: lewis_bright@yahoo.com
|
141
169
|
executables: []
|
@@ -167,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
195
|
- !ruby/object:Gem::Version
|
168
196
|
version: '0'
|
169
197
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
198
|
+
rubygems_version: 3.2.32
|
171
199
|
signing_key:
|
172
200
|
specification_version: 4
|
173
201
|
summary: Writes a changelog by pattern matching on git commits since the last tag.
|