mirror of
https://github.com/OPM/opm-upscaling.git
synced 2026-08-26 13:07:11 -05:00
add support for absolute revisions
This commit is contained in:
+6
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user