https://github.com/thecodingmachine/gitlab_scrutinizer_hook_adapter
This project is an adapter between Gitlab web hooks and Scrutinizer post-receive hook triggers
https://github.com/thecodingmachine/gitlab_scrutinizer_hook_adapter
Last synced: 11 months ago
JSON representation
This project is an adapter between Gitlab web hooks and Scrutinizer post-receive hook triggers
- Host: GitHub
- URL: https://github.com/thecodingmachine/gitlab_scrutinizer_hook_adapter
- Owner: thecodingmachine
- Created: 2015-04-27T14:11:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-27T16:42:50.000Z (over 10 years ago)
- Last Synced: 2025-02-16T12:30:26.996Z (11 months ago)
- Language: PHP
- Size: 121 KB
- Stars: 2
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Gitlab to Scrutinizer hook adapter
==================================
Here, at [TheCodingMachine](http://www.thecodingmachine.com), we make an extensive use of Gitlab.
We are also keen on working with Scrutinizer.
Alas, there is no real easy way to configure Push events on Gitlab.
Indeed, Gitlab comes sends a [special payload](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/web_hooks/web_hooks.md#push-events) with web hooks.
Scrutinizer on the other hand expects a completely different payload (see the *Setting Up a Post-Receive Hook* of your project to view the details).
This project is a very very thin wrapper that transforms hooks from Gitlab to Scrutinizer.
Set up
------
- Clone the repository
- Run `composer install`
- Copy `config.php.tmpl` to `config.php`
- In `config.php`, change the `SCRUTINIZER_API_TOKEN` entry to your API token.
- In Gitlab, add a "web hook" and point it to: http://[your-server]/[app_path]/hook/[Scrutinizer_project_name]
You are done!