You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2021/09/14 06:57:35 UTC

svn commit: r1893327 - /httpd/dev-tools/github/apply_trunk_pr.sh

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
+
+echo >> clog
 echo "Github: closes #${PR}" >> clog
 



Re: svn commit: r1893327 - /httpd/dev-tools/github/apply_trunk_pr.sh

Posted by Rüdiger Plüm <r....@gmx.de>.

On 9/14/21 1:26 PM, Eric Covener wrote:
> On Tue, Sep 14, 2021 at 2:57 AM <rp...@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


Re: svn commit: r1893327 - /httpd/dev-tools/github/apply_trunk_pr.sh

Posted by Eric Covener <co...@gmail.com>.
On Tue, Sep 14, 2021 at 2:57 AM <rp...@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}/ ?