You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2022/05/16 20:21:35 UTC

[solr-docker] 01/01: Even more fixes for (#5)

This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-docker.git

commit 218e12c52ca339d86d5dcf2ea026cd788c084f40
Author: Houston Putman <ho...@apache.org>
AuthorDate: Mon May 16 16:20:00 2022 -0400

    Even more fixes for (#5)
    
    Testing out that this works on #5
    
    another#423 should not be affected
    
    Also #3 and #2
---
 .github/workflows/pr-for-official-repo.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/pr-for-official-repo.yml b/.github/workflows/pr-for-official-repo.yml
index 2d7281a..904cc5a 100644
--- a/.github/workflows/pr-for-official-repo.yml
+++ b/.github/workflows/pr-for-official-repo.yml
@@ -29,7 +29,7 @@ jobs:
         id: commit
         run: |
           str="$(jq '.head_commit.message' $GITHUB_EVENT_PATH)"    # get the head_commit message
-          message="$(echo ${str}  | sed -E 's/(#[0-9]+([^0-9]|\z?))/apache\/solr-docker\1/g')"  # get the message, substituting the github links
+          message="$(echo ${str} | sed -e 's/^#/ #/g' | sed -e 's/(#[0-9]+)$/\1 /g' | sed -e 's/([^a-zA-Z])(#[0-9]+[^0-9])/\1apache\/solr-docker\2/g')"  # get the message, substituting the github links
           echo ::set-output name=message::${message} | tr -d '"'       # get the message
           echo ::set-output name=title::${message%%\\n*} | tr -d '"'   # get the title
           echo ::set-output name=body::${message##*\\n} | tr -d '"'    # get the body