{"id":17191747,"url":"https://github.com/enomotodev/gitlabci-composer-update-mr","last_synced_at":"2025-04-13T20:07:16.858Z","repository":{"id":46685890,"uuid":"166908740","full_name":"enomotodev/gitlabci-composer-update-mr","owner":"enomotodev","description":"Create MergeRequest of composer update in GitLabCI","archived":false,"fork":false,"pushed_at":"2021-09-30T03:46:11.000Z","size":11,"stargazers_count":11,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-18T11:30:54.941Z","etag":null,"topics":["composer","gitlab","gitlab-ci","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enomotodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-22T01:53:09.000Z","updated_at":"2022-04-01T13:58:04.000Z","dependencies_parsed_at":"2022-08-21T08:10:51.067Z","dependency_job_id":null,"html_url":"https://github.com/enomotodev/gitlabci-composer-update-mr","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enomotodev%2Fgitlabci-composer-update-mr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enomotodev%2Fgitlabci-composer-update-mr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enomotodev%2Fgitlabci-composer-update-mr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enomotodev%2Fgitlabci-composer-update-mr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enomotodev","download_url":"https://codeload.github.com/enomotodev/gitlabci-composer-update-mr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219845733,"owners_count":16556441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","gitlab","gitlab-ci","php"],"created_at":"2024-10-15T01:27:16.892Z","updated_at":"2024-10-15T01:27:17.441Z","avatar_url":"https://github.com/enomotodev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitlabci-composer-update-mr\n\n[![Latest Stable Version](https://poser.pugx.org/enomotodev/gitlabci-composer-update-mr/v/stable.png)](https://packagist.org/packages/enomotodev/gitlabci-composer-update-mr)\n[![Build Status](https://api.travis-ci.org/enomotodev/gitlabci-composer-update-mr.svg?branch=master)](https://travis-ci.org/enomotodev/gitlabci-composer-update-mr)\n\n## Installation\n\n```\n$ composer require enomotodev/gitlabci-composer-update-mr\n```\n\n## Prerequisites\n\nThe application on which you want to run continuous composer update must be configured to be built on GitLabCI.\n\n## Usage\n\n### Setting GitLab personal access token to GitLabCI\n\nGitLab personal access token is required for sending merge requests to your repository.\n\n1. Go to [your account's settings page](https://gitlab.com/profile/personal_access_tokens) and generate a personal access token with \"api\" scope\n1. On GitLab dashboard, go to your application's \"Settings\" -\u003e \"CI /CD\" -\u003e \"Environment variables\"\n1. Add an environment variable `GITLAB_API_PRIVATE_TOKEN` with your GitLab personal access token\n\n### Configure .gitlab-ci.yml\n\nConfigure your `.gitlab-ci.yml` to run `gitlabci-composer-update-mr`, for example:\n\n```yaml\njob:\n  except:\n    - schedules\n  script:\n    # snip\n\njob:on-schedule:\n  image: composer:latest\n  only:\n    - schedules\n  script:\n    - \"composer global require enomotodev/gitlabci-composer-update-mr\"\n    - \"$COMPOSER_HOME/vendor/bin/gitlabci-composer-update-mr \u003cusername\u003e \u003cemail\u003e master\"\n```\n\nNOTE: Please make sure you replace `\u003cusername\u003e` and `\u003cemail\u003e` with yours.\n\n### Setting Schedule\n\n1. On GitLab dashboard, go to your application's \"Schedules\" -\u003e \"New schedule\"\n1. Create new schedule and save\n\n## CLI command references\n\nGeneral usage:\n\n```\n$ gitlabci-composer-update-mr \u003cgit username\u003e \u003cgit email address\u003e \u003cgit base branch\u003e\n```\n\n## License\n\ngitlabci-composer-update-mr is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenomotodev%2Fgitlabci-composer-update-mr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenomotodev%2Fgitlabci-composer-update-mr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenomotodev%2Fgitlabci-composer-update-mr/lists"}