$ composer require enomotodev/gitlabci-composer-update-mr
The application on which you want to run continuous composer update must be configured to be built on GitLabCI.
GitLab personal access token is required for sending merge requests to your repository.
GITLAB_API_PRIVATE_TOKEN
with your GitLab personal access tokenConfigure your .gitlab-ci.yml
to run gitlabci-composer-update-mr
, for example:
job:
except:
- schedules
script:
# snip
job:on-schedule:
image: composer:latest
only:
- schedules
script:
- "composer global require enomotodev/gitlabci-composer-update-mr"
- "$COMPOSER_HOME/vendor/bin/gitlabci-composer-update-mr <username> <email> master"
NOTE: Please make sure you replace <username>
and <email>
with yours.
General usage:
$ gitlabci-composer-update-mr <git username> <git email address> <git base branch>
gitlabci-composer-update-mr is open-sourced software licensed under the MIT license