{"id":21588853,"url":"https://github.com/mikron-ia/github-agent","last_synced_at":"2025-03-18T09:42:19.579Z","repository":{"id":34058270,"uuid":"37843657","full_name":"mikron-ia/github-agent","owner":"mikron-ia","description":null,"archived":false,"fork":false,"pushed_at":"2015-09-04T08:47:29.000Z","size":323,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T16:12:20.927Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"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/mikron-ia.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":"2015-06-22T07:56:19.000Z","updated_at":"2022-02-07T22:16:26.000Z","dependencies_parsed_at":"2022-07-15T20:00:40.515Z","dependency_job_id":null,"html_url":"https://github.com/mikron-ia/github-agent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikron-ia%2Fgithub-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikron-ia%2Fgithub-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikron-ia%2Fgithub-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikron-ia%2Fgithub-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikron-ia","download_url":"https://codeload.github.com/mikron-ia/github-agent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244197668,"owners_count":20414437,"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":[],"created_at":"2024-11-24T16:11:45.067Z","updated_at":"2025-03-18T09:42:19.554Z","avatar_url":"https://github.com/mikron-ia.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Larmo WebHooks Agent\n\n[![Build Status](https://travis-ci.org/mejt/larmo-webhooks-agent.svg?branch=master)](https://travis-ci.org/mejt/larmo-webhooks-agent)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mejt/larmo-webhooks-agent/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mejt/larmo-webhooks-agent/?branch=master)\n[![Code Climate](https://codeclimate.com/github/mejt/larmo-webhooks-agent/badges/gpa.svg)](https://codeclimate.com/github/mejt/larmo-webhooks-agent)\n[![Test Coverage](https://codeclimate.com/github/mejt/larmo-webhooks-agent/badges/coverage.svg)](https://codeclimate.com/github/mejt/larmo-webhooks-agent/coverage)\n\nThis is a WebHooks Agent for open source project *Larmo*.\n\n## Supported services\n- [Github](#github) (events: push, commit comment, issues, issue comment, pull request, deployment, deployment status, create, delete, fork, gollum)\n- [Bitbucket](#bitbucket) (events: push, issues, issue comment)\n- [Gitlab](#gitlab) (event: push, tag, comments, issues, merge requests)\n- [Travis CI](#travis-c)\n- [Scrutinizer CI](#scrutinizer-ci) (event: completed)\n\n## To do\n- Add support for more services:\n    - Jira\n    - Trello\n\n## Installation guide\nThe WebhookAgent is a simple PHP application ready to be deploy to different servers.\n\n### Deploying\n#### Use case: Deploying to Heroku \n*The best way - use Heroku Toolbelt https://toolbelt.heroku.com/*\n\n1. Create empty git repository in this directory (if does not exists), type in console `git init`\n2. Create heroku app, run command in console `heroku apps:create`\n3. Install composer dependencies, type in console `composer install`\n4. Commit all files, use command: `git commit -am \"Save files for deploy\"`\n5. Deploy to heroku, run command: `git push heroku master`\n\nAfter deploying process you can verify that your site is running using the command `heroku open`.\n\n### Activate WebHooks in supported services\n#### GitHub\n1. Copy your deployed site URL.\n2. Go to Github, and select your repository. Go to Settings \u003e Webhooks \u0026 Services \u003e Add webhook (https://github.com/USER-NAME/REPO-NAME/settings/hooks/new)\n3. In field *Payload URL* put your site URL and add to end of URL */github*, example full URL: *http://still-reef-8508.herokuapp.com/github*\n4. Select individual events, but check which events are [supported](#supported-services) in agent.\n5. Click 'Add webhook' button.\n\n#### Bitbucket\n1. Copy your deployed site URL.\n2. Go to Bitbucket, and select your repository. Go to Settings \u003e Integrations \u003e Webhooks \u003e \nAdd webhook (https://bitbucket.org/USER-NAME/REPO-NAME/admin/addon/admin/bitbucket-webhooks/bb-webhooks-repo-admin)\n3. In field *URL* put your site URL and add to end of URL */bitbucket*, example full URL: *http://still-reef-8508.herokuapp.com/bitbucket*\n4. Choose from a full list of triggers, but check which events are [supported](#supported-services) in agent.\n5. Click 'Save' button.\n\n#### Gitlab\n1. Copy your deployed site URL.\n2. Go to your Gitlab page, and select repository. Go to Settings \u003e Web Hooks (https://your-gitlab-site/USER-NAME/REPO-NAME/hooks)\n3. In field *URL* put your site URL and add to end of URL */gitlab*, example full URL: *http://still-reef-8508.herokuapp.com/gitlab*\n4. Choose from list of triggers, but check which events are [supported](#supported-services) in agent.\n5. Click 'Add Web Hook' button.\n\n#### Travis CI\n1. Copy your deployed site URL.\n2. Open .travis file in your project, and add webhooks notifications, for example:\n```\n notifications:\n   webhooks: http://your-deployed-site.herokuapp.com/travis\n```\n3. Save file, commit and push changes to your repository.\n\n#### Scrutinizer CI\n1. Copy your deployed agent URL.\n2. Go to your repository settings on Scrutinizer and find 'Service Hooks' (example url: https://scrutinizer-ci.com/g/USER/REPO-NAME/settings/service-hooks).\n3. Click 'Add web-hook' button and paste agent URL. Save settings.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikron-ia%2Fgithub-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikron-ia%2Fgithub-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikron-ia%2Fgithub-agent/lists"}