asfgit closed pull request #1313: METRON-1954 Commit Script Fails to Extract 
Usernames with Numerals
URL: https://github.com/apache/metron/pull/1313
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/dev-utilities/committer-utils/metron-committer-common 
b/dev-utilities/committer-utils/metron-committer-common
index 23ec4e94a1..30a9bfdd65 100644
--- a/dev-utilities/committer-utils/metron-committer-common
+++ b/dev-utilities/committer-utils/metron-committer-common
@@ -239,7 +239,7 @@ function setup_code {
 #
 function get_contributor_info {
     # use github api to retrieve the contributor's login
-    USER=`curl -s 
https://api.github.com/repos/apache/${CHOSEN_REPO}/pulls/${PR} | grep login | 
head -1 | awk -F":" '{print $2}' | sed 's/[^a-zA-Z.@_-]//g'`
+    USER=`curl -s 
https://api.github.com/repos/apache/${CHOSEN_REPO}/pulls/${PR} | grep login | 
head -1 | awk -F":" '{print $2}' | sed 's/[^a-zA-Z0-9.@_-]//g'`
     read -p "  github contributor's username [$USER]: " INPUT
     [ -n "$INPUT" ] && USER=${INPUT}
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to