Remove polkadot companion detection from url anywhere (#6570)

This commit is contained in:
Cecile Tonglet
2020-07-16 11:01:18 +02:00
committed by GitHub
parent d4c21eace6
commit 2827637103
3 changed files with 4 additions and 22 deletions
@@ -31,10 +31,7 @@ polkadot companion: paritytech/polkadot#567
it will then run cargo check from this polkadot's branch with substrate code
from this pull request. in absence of that string it will check if a polkadot
pr is mentioned and will use the last one instead. if none of the above can be
found it will check if polkadot has a branch of the exact same name than the
substrate's branch. if it can't find anything, it will uses master instead
from this pull request. otherwise, it will uses master instead
EOT
@@ -74,14 +71,6 @@ then
-e 's;^.*polkadot companion: https://github.com/paritytech/polkadot/pull/([0-9]+).*$;\1;p' \
| tail -n 1)"
if [ -z "${pr_companion}" ]
then
pr_companion="$(echo "${pr_body}" | sed -n -r \
-e 's;^.*paritytech/polkadot/#([0-9]+).*$;\1;p' \
-e 's;^.*https://github.com/paritytech/polkadot/pull/([0-9]+).*$;\1;p' \
| tail -n 1)"
fi
if [ "${pr_companion}" ]
then
boldprint "companion pr specified/detected: #${pr_companion}"