Skip to content

o0h/composer-update-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

composer-update-request

Support to easily keep composer packages up-to-date, making pull request. Try composer update and send pull request automatically.

Build Status codecov MIT License

Requirements

  • PHP 7.0+

Installation

composer global require o0h/composer-update-request

Usage

composer.json

You MUST set 'name' fieled in your composer.json.
If not set, then update command run as __root__ and skip create pull request.

Set up env var.

Set up environment variables in bellow.

  • GITHUB_TOKEN
  • GITHUB_USER
    • user id of login to github(token owner)
    • like o0h
  • GITHUB_REPOSITORY
    • repository name to send pull request
    • org/repository without .git suffix
    • like o0h/composer-update-request-client-test-app

Set up scheduled task.

With cron jobs, auto checking composer-update and pull request will be created. See exsamples directory.

@TODO

This is still very WIP. Following tasks must be done 💪

  • write tests.
  • phpstan with CI.
  • support Circle CI.