Skip to content

matrottier/gitlab-ci-build-status

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitlab-ci-build-status

build status Build Status Code Coverage Scrutinizer Code Quality

Simple tool to check latest commit build from GitLab CI

Installation

The tool requires you have PHP 5.4.* + and Composer.

The get the latest version of gitlab-ci-build-status, add the following line to your composer.json file:

"maenbn/gitlab-ci-build-status": "dev-master"

Then run composer install or composer update to install.

Usage

Setting up the client requires your Gitlab CI URL, Gitlab CI project ID, and Gitlab CI project token:

$client = new \Maenbn\GitlabCiBuildStatus\Client('https://gitlab.example.com/api/v3' 'project_id', 'my_private_token');

Then you can grab the status. You can also specify a branch (defaults to master).

$status = $client->getStatus('my_current_patch');

About

Simple tool to check latest commit build from GitLab CI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%