NEW Addition to gitlab-ci for creating merge reqeusts

This commit is contained in:
Jared Kipe
2019-08-06 09:29:22 -07:00
parent 247ce359ed
commit e3e6e2de57
2 changed files with 68 additions and 0 deletions

View File

@@ -21,6 +21,16 @@ before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
merge_request:
before_script:
- apk add curl jq
stage: build
only:
- /(^new\/)|(^mig\/)|(^imp\/)|(^fix\/)/
script:
- ls -lah
- RELEASE=$(echo $CI_COMMIT_REF_NAME | sed "s{.*\/\(.*\)\/.*{\1{g") HOST=$(echo $CI_PROJECT_URL | sed 's{\(^https://[^/]*/\).*{\1{g') CI_PROJECT_ID=${CI_PROJECT_ID} CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} GITLAB_USER_ID=${GITLAB_USER_ID} PRIVATE_TOKEN=${PRIVATE_TOKEN} ./.gitlab-ci-automerge.sh
build:
stage: build
script: