Mailing List Archive

Re: svn commit: r1893327 - /httpd/dev-tools/github/apply_trunk_pr.sh
On Tue, Sep 14, 2021 at 2:57 AM <rpluem@apache.org> wrote:
>
> Author: rpluem
> Date: Tue Sep 14 06:57:34 2021
> New Revision: 1893327
>
> URL: http://svn.apache.org/viewvc?rev=1893327&view=rev
> Log:
> * Add commit authors to clog as Submitted by
>
> Modified:
> httpd/dev-tools/github/apply_trunk_pr.sh
>
> Modified: httpd/dev-tools/github/apply_trunk_pr.sh
> URL: http://svn.apache.org/viewvc/httpd/dev-tools/github/apply_trunk_pr.sh?rev=1893327&r1=1893326&r2=1893327&view=diff
> ==============================================================================
> --- httpd/dev-tools/github/apply_trunk_pr.sh (original)
> +++ httpd/dev-tools/github/apply_trunk_pr.sh Tue Sep 14 06:57:34 2021
> @@ -34,5 +34,9 @@ fi
> curl -s https://api.github.com/repos/apache/httpd/pulls/${PR}/commits | jq .[].commit.message | perl -pe 's/^"//; s/"$//; s/\\n/\n/g; ' > clog
>
> echo >> clog
> +AUTHORS=`curl -s https://api.github.com/repos/apache/httpd/pulls/266/commits | jq '.[].commit.author|.name,.email' | perl -e 'while (<>) { s/^"//; s/"$//; chomp $_; if (defined($a)) { $b{"$a <$_>\n"} = 1; $a = undef; } else { $a = $_; }} print join(",", map { chomp $_; $_ } sort, keys(%b)); '`
> +echo "Submitted by: $AUTHORS" >> clog
> +

s/266/${PR}/ ?
Re: svn commit: r1893327 - /httpd/dev-tools/github/apply_trunk_pr.sh [ In reply to ]
On 9/14/21 1:26 PM, Eric Covener wrote:
> On Tue, Sep 14, 2021 at 2:57 AM <rpluem@apache.org> wrote:
>>
>> Author: rpluem
>> Date: Tue Sep 14 06:57:34 2021
>> New Revision: 1893327
>>
>> URL: http://svn.apache.org/viewvc?rev=1893327&view=rev
>> Log:
>> * Add commit authors to clog as Submitted by
>>
>> Modified:
>> httpd/dev-tools/github/apply_trunk_pr.sh
>>
>> Modified: httpd/dev-tools/github/apply_trunk_pr.sh
>> URL: http://svn.apache.org/viewvc/httpd/dev-tools/github/apply_trunk_pr.sh?rev=1893327&r1=1893326&r2=1893327&view=diff
>> ==============================================================================
>> --- httpd/dev-tools/github/apply_trunk_pr.sh (original)
>> +++ httpd/dev-tools/github/apply_trunk_pr.sh Tue Sep 14 06:57:34 2021
>> @@ -34,5 +34,9 @@ fi
>> curl -s https://api.github.com/repos/apache/httpd/pulls/${PR}/commits | jq .[].commit.message | perl -pe 's/^"//; s/"$//; s/\\n/\n/g; ' > clog
>>
>> echo >> clog
>> +AUTHORS=`curl -s https://api.github.com/repos/apache/httpd/pulls/266/commits | jq '.[].commit.author|.name,.email' | perl -e 'while (<>) { s/^"//; s/"$//; chomp $_; if (defined($a)) { $b{"$a <$_>\n"} = 1; $a = undef; } else { $a = $_; }} print join(",", map { chomp $_; $_ } sort, keys(%b)); '`
>> +echo "Submitted by: $AUTHORS" >> clog
>> +
>
> s/266/${PR}/ ?

Rats! Thanks for catching. r1893334.

Regards

RĂ¼diger