add support for absolute revisions

This commit is contained in:
Arne Morten Kvarving
2026-01-05 09:17:43 +01:00
parent e3466e7227
commit 2ea7b9ba41
2 changed files with 12 additions and 2 deletions
+6 -1
View File
@@ -10,7 +10,12 @@ upstreamRev[opm-grid]=master
if grep -q "opm-common=" <<< $ghprbCommentBody
then
upstreamRev[opm-common]=pull/`echo $ghprbCommentBody | sed -r 's/.*opm-common=([0-9]+).*/\1/g'`/merge
if test -n "$absolute_revisions"
then
upstreamRev[opm-common]=$(echo $ghprbCommentBody | sed -r 's/.*opm-common=([^ ]+)/\1/g')
else
upstreamRev[opm-common]=pull/$(echo $ghprbCommentBody | sed -r 's/.*opm-common=([0-9]+).*/\1/g')/merge
fi
fi
# Currently no downstreams
+6 -1
View File
@@ -10,7 +10,12 @@ upstreamRev[opm-grid]=master
if grep -q "opm-common=" <<< $ghprbCommentBody
then
upstreamRev[opm-common]=pull/`echo $ghprbCommentBody | sed -r 's/.*opm-common=([0-9]+).*/\1/g'`/merge
if test -n "$absolute_revisions"
then
upstreamRev[opm-common]=$(echo $ghprbCommentBody | sed -r 's/.*opm-common=([^ ]+)/\1/g')
else
upstreamRev[opm-common]=pull/$(echo $ghprbCommentBody | sed -r 's/.*opm-common=([0-9]+).*/\1/g')/merge
fi
fi
# Clone opm-common