acoustic-actor-19289
08/01/2023, 5:13 AMwarning: Could not find remote branch to clone.
fatal: Remote branch not found in upstream origin
When i echo CI_MERGE_REQUEST_TARGET_BRANCH_NAME
i m not getting any value $ echo CI_MERGE_REQUEST_TARGET_BRANCH_NAME=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}
CI_MERGE_REQUEST_TARGET_BRANCH_NAME=
red-toothbrush-65619
08/01/2023, 10:34 AMacoustic-actor-19289
08/01/2023, 10:34 AMred-toothbrush-65619
08/01/2023, 10:36 AM- echo "OPEN MERGE REQUEST ID:" "${CI_OPEN_MERGE_REQUESTS##*\!}"
- |
if [ -n "${CI_OPEN_MERGE_REQUESTS##*\!}" ]; then
export INFRACOST_VCS_PULL_REQUEST_TITLE=$(curl --silent --request GET --header "PRIVATE-TOKEN:${AUTOMATION_ADMIN_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/merge_requests/${CI_OPEN_MERGE_REQUESTS##*\!}" | jq -r '.title')
export INFRACOST_VCS_PULL_REQUEST_URL="${CI_PROJECT_URL}/-/merge_requests/${CI_OPEN_MERGE_REQUESTS##*\!}"
echo "INFRACOST_VCS_PULL_REQUEST_TITLE:" "$INFRACOST_VCS_PULL_REQUEST_TITLE"
echo "INFRACOST_VCS_PULL_REQUEST_URL:" "$INFRACOST_VCS_PULL_REQUEST_URL"
fi
To get the details needacoustic-actor-19289
08/01/2023, 10:37 AMred-toothbrush-65619
08/01/2023, 10:42 AM${AUTOMATION_ADMIN_TOKEN}
Is are Own thing 🙂busy-agent-35515
08/01/2023, 12:09 PMacoustic-actor-19289
08/01/2023, 12:10 PMbusy-agent-35515
08/01/2023, 12:14 PMacoustic-actor-19289
08/01/2023, 12:14 PMbusy-agent-35515
08/01/2023, 12:17 PMacoustic-actor-19289
08/07/2023, 12:22 PMbusy-agent-35515
08/07/2023, 12:22 PMacoustic-actor-19289
08/07/2023, 12:29 PMrules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
busy-agent-35515
08/07/2023, 12:29 PMacoustic-actor-19289
08/07/2023, 12:31 PMbusy-agent-35515
08/07/2023, 1:27 PMacoustic-actor-19289
08/07/2023, 1:29 PM