Download the PHP package pensiero/github-tools without Composer
On this page you can find all versions of the php package pensiero/github-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pensiero/github-tools
More information about pensiero/github-tools
Files in pensiero/github-tools
Package github-tools
Short Description Helpful GitHub tools packed in a ZF2 module
License BSD-3-Clause
Homepage https://github.com/pensiero/github-tools
Informations about the package github-tools
GitHub Tools module for ZF2
Created by Oscar Fanelli
Introduction
ZF2 module that provides tools to connect your application with your GitHub repository via ZF2 console. What you can do?
- Automatically create a new PR (from
develop
tomaster
) and a new draft release (its notes will contains the diff commits betweendevelop
andmaster
) - Mark a repository as deployed
Installation
GitHub Tools work with composer. Make sure you have the composer.phar downloaded and you have a composer.json file at the root of your project. To install it, add the following line into your composer.json file:
Requirements
- PHP5.6+
- zend-mvc 2.7
- zend-console 2.6
Configuration
Use the config/github-tools.local.php.dist as blueprint configuration file:
copy it to the config/autoload
directory of your ZF2 application and remove the .dist
extension from its name.
If you are using environment variables to store sensible informations of your projects (like auth keys) you can use the following ones:
GITHUB_ACCESS_TOKEN
will override thegithub_access_token
configENV
will override theenvironment
configPROTOCOL
andHOST
will be combined in order to override thetarget_url
config
NOTE: if
github_from_branch
===github_to_branch
, PR creation will be skipped and the release will be created with the diff commits against the latest release
Available commands
Mark a repository as deployed
Will be marked the configurated GitHub repository as deployed
Create a new release
Will be created a new PR from github_from_branch
to github_to_branch
named with the new version name.
Will be created a new draft release for github_to_branch
named with the new version name.
Major
New version name: get the latest release name and increment the major part of 1, according to semver.
Example:
- Latest release:
v2.0.3
- New release:
v3.0.0
Minor
New version name: get the latest release name and increment the minor part of 1, according to semver.
Example:
- Latest release:
v2.0.3
- New release:
v2.1.0
Patch
New version name: get the latest release name and increment the patch part of 1, according to semver.
Example:
- Latest release:
v2.0.3
- New release:
v2.0.4
All versions of github-tools with dependencies
zendframework/zend-console Version ^2.6
zendframework/zend-i18n Version ^2.6
zendframework/zend-log Version ^2.9
zendframework/zend-eventmanager Version ^2.6
zendframework/zend-modulemanager Version ^2.7
zendframework/zend-mvc Version ^2.7
zendframework/zend-serializer Version ^2.8
zendframework/zend-servicemanager Version ^2.7
zendframework/zend-text Version ^2.6
zendframework/zend-version Version ^2.5
zendframework/zend-view Version ^2.8
knplabs/github-api Version ~2.0
php-http/guzzle6-adapter Version 1.*