Skip to content

Commit

Permalink
omd: improve writing changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Aug 28, 2024
1 parent 6191f71 commit 716deb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ next:
- grafana:
- pnp-datasource update to 2.1.0
- thruk-datasource update to 2.1.1
- monitoring-plugins update to 2.4.0
- snmptrapd:
- improve the trap_logger
- monitoring-plugins update to 2.4.0
- omdnotificationforwarder update to 2.6.1.2

5.40 Jul 12 2024
Expand Down
5 changes: 5 additions & 0 deletions t/changelog.pl
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ sub _format_changes {
next unless $changes->{$cat};
$txt .= _format_changes_cat($changes, $cat);
}
for my $cat (sort keys %{$changes}) {
next if $cat eq '';
next if grep(/$cat/, @categories);
$txt .= _format_changes_cat($changes, $cat);
}
for my $cat (sort keys %{$changes}) {
next if $cat ne '';
$txt .= _format_changes_cat($changes, $cat);
Expand Down

0 comments on commit 716deb8

Please sign in to comment.