add support for absolute revisions

This commit is contained in:
Arne Morten Kvarving committed 2026-01-05 09:17:16 +01:00
1 parent 732eba5571
commit 727abede2c
2 files changed
+12 -2

No files matched your search

+6 -1
View File
@@ -13,7 +13,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
# No downstreams currently
+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