Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 846 Bytes

README.md

File metadata and controls

7 lines (6 loc) · 846 Bytes

git-webhook-api Build Status Go Report Card

Creates an API which accepts a git webhook post for new PR's. Once received, two dev team members are selected as reviewers then a notification is sent using my robification-go library.

Example:

curl -X POST -H "token: 37f7f7446d64345dd367744428837fe5" -H "Content-Type: application/json" -d '{{"action": "opened","number": 280,"pull_request": {"html_url": "https://github.com/orgname/repo/pull/280","user": {"login": "josemrobles"}}}}' 'http://localhost:8008/'