Skip to content

OPSA-582 adapted code for monorepo#2

Open
yra-wtag wants to merge 5 commits intomasterfrom
OPS-582-Adapt-Pronto-For-MonoRepo
Open

OPSA-582 adapted code for monorepo#2
yra-wtag wants to merge 5 commits intomasterfrom
OPS-582-Adapt-Pronto-For-MonoRepo

Conversation

@yra-wtag
Copy link

@yra-wtag yra-wtag commented Jul 9, 2020

No description provided.

entrypoint.sh Outdated
Comment on lines +23 to +32
if [ -z "${BASE_FOLDER}" ]; then
for PULL_ID in $PULL_IDS; do
PRONTO_PULL_REQUEST_ID=$PULL_ID /usr/local/bundle/bin/pronto run -f github_status github_pr -c origin/master
done
done
else
cd ${BASE_FOLDER}
for PULL_ID in $PULL_IDS; do
PRONTO_PULL_REQUEST_ID=$PULL_ID /usr/local/bundle/bin/pronto run -f github_status github_pr -c origin/master
done
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we simplify this? The commands seem to be the same, no?

if [ ! -z "${BASE_FOLDER}" ]; then
  cd ${BASE_FOLDER}
fi

for PULL_ID in $PULL_IDS; do
  PRONTO_PULL_REQUEST_ID=$PULL_ID /usr/local/bundle/bin/pronto run -f github_status github_pr -c origin/master
done

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totally agree

yra-wtag and others added 4 commits July 9, 2020 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants