64
64
$ errors = [];
65
65
66
66
// Magic sauce
67
- exec ("git log --format= \"%s \" $(git log --no-walk --tags | head -n1 | cut -d ' ' -f 2)..HEAD | grep -v '^Merge ' " , $ changelog );
67
+ exec ("git log --oneline -- format= \"%s \" $(git log --no-walk --tags | head -n1 | cut -d ' ' -f 2)..HEAD | grep -v '^Merge ' " , $ changelog );
68
68
69
69
// Case insensitive removal of duplicates
70
70
$ changelog = array_intersect_key ($ changelog , array_unique (array_map ("strtolower " , $ changelog )));
@@ -193,7 +193,7 @@ function add_change(string $change, string $category, string $scope = null) {
193
193
if ($ githubstyle ) {
194
194
echo "The changelog is listed below: \n\nRelease Changelog \n=========== \n" ;
195
195
} else {
196
- echo "The changelog is listed below: \n\n __** Release Changelog**__ \n" ;
196
+ echo "The changelog is listed below: \n\n ## Release Changelog \n" ;
197
197
}
198
198
199
199
function print_change (string $ change ) {
@@ -208,7 +208,7 @@ function print_change(string $change) {
208
208
// Output tidy formatting
209
209
foreach ($ catgroup as $ cat => $ list ) {
210
210
if (!empty ($ list )) {
211
- echo "\n" . ($ githubstyle ? '## ' : '__** ' ) . $ cat . ( $ githubstyle ? '' : ' **__ ' ) . "\n" ;
211
+ echo "\n" . ($ githubstyle ? '## ' : '### ' ) . $ cat . "\n" ;
212
212
foreach ($ list as $ key => $ item ) {
213
213
if (is_array ($ item )) {
214
214
foreach ($ item as $ change ) {
@@ -230,6 +230,13 @@ function print_change(string $change) {
230
230
echo "\n" ;
231
231
}
232
232
233
- foreach ($ errors as $ err ) {
234
- trigger_error ($ err , E_USER_WARNING );
235
- }
233
+ /*
234
+ * Disabled as it generates pages and pages of stack traces, making it
235
+ * extremely difficult to copy and paste the error log when running this
236
+ * on the command line for sending discord announcement changelogs.
237
+ *
238
+ * foreach ($errors as $err) {
239
+ * trigger_error($err, E_USER_WARNING);
240
+ * }
241
+ *
242
+ */
0 commit comments