forked from nec-postgres/pgjdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: simple script to compose release notes
To be executed like ./release_notes.sh REL9_4_1200..HEAD fixes pgjdbc#357
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
git shortlog --format="%s@@@%H@@@%h@@@" --no-merges $1 | perl release_notes_filter.pl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/perl | ||
|
||
while(<>) { | ||
if ($_ !~ /@@@/) { | ||
print $_; | ||
next; | ||
} | ||
my @c = split('@@@', $_); | ||
my $subject = @c[0]; | ||
my $sha = @c[1]; | ||
my $shortSha = @c[2]; | ||
my $body = `git log --format='%B' -n 1 $sha`; | ||
my $pr = ''; | ||
if ($body =~ /(?:fix|fixes|close|closes) *#?(\d+)/) { | ||
$pr = ' PR #'.$1; | ||
} | ||
print $subject.$pr." (".$shortSha.")\n"; | ||
} |