prima-twig 0.2.8 → 0.2.10
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/bin/twig-release +6 -3
- 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: f0299a02f8b54a6179edfae15c59c67b579d24a3
|
|
4
|
+
data.tar.gz: d673a161826de5eac1da89866f328483dab39eb0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81b18e7fcf2c22f102817eaaa8e88ef8a556876927b05f5e72cc57c51cd8f33e41ff7f2431f2cd54a7ea10596b30546868343e4bf69dbcb00b7e3fc39fdab906
|
|
7
|
+
data.tar.gz: 2aacc27b6a91392f51671ef543cbcde77b1d444715b548719345024d964cdb8e715c46c5c531ff0a033ea9975970bd1e4cb5d3225470d575e419d07269358acc
|
data/bin/twig-release
CHANGED
|
@@ -144,7 +144,10 @@ class Release
|
|
|
144
144
|
issues_ids = []
|
|
145
145
|
|
|
146
146
|
self.get_commits(pr_number).each do |item|
|
|
147
|
-
|
|
147
|
+
if item.commit.message =~ /^\[*#(\d+)\]*\s-/
|
|
148
|
+
issue_id = item.commit.message.match(/^\[*#(\d+)\]*\s-/).captures.first
|
|
149
|
+
issues_ids << issue_id unless issues_ids.include? issue_id
|
|
150
|
+
end
|
|
148
151
|
end
|
|
149
152
|
|
|
150
153
|
issues_ids.each do |id|
|
|
@@ -160,14 +163,14 @@ class Release
|
|
|
160
163
|
body << "# Issues\n\n"
|
|
161
164
|
|
|
162
165
|
issues.each do |issue|
|
|
163
|
-
body << "### [##{issue.number} - #{issue.title}](#{get_issue_url(issue.number)})\n\n"
|
|
166
|
+
body << "### [##{issue.number} - #{issue.title.gsub(/\n/,' ')}](#{get_issue_url(issue.number)})\n\n"
|
|
164
167
|
body << "#{issue.body}\n\n"
|
|
165
168
|
end
|
|
166
169
|
|
|
167
170
|
body << "# Commits\n\n"
|
|
168
171
|
|
|
169
172
|
commits.each do |commit|
|
|
170
|
-
body << "* [#{commit.commit.message}](#{get_commit_url(commit.sha)})\n"
|
|
173
|
+
body << "* [#{commit.commit.message.gsub(/\n/,' ')}](#{get_commit_url(commit.sha)})\n"
|
|
171
174
|
end
|
|
172
175
|
|
|
173
176
|
if output_format == 'html'
|