mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-24 22:57:42 -05:00
add support for absolute revisions
This commit is contained in:
1 parent
732eba5571
commit
727abede2c
2 files changed
+12
-2
No files matched your search
+6
-1
@@ -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
|
||||
|
||||
@@ -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