Skip to content

Webhook listener that reacts to changes made via Status API

Notifications You must be signed in to change notification settings

fatcomma/status-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

status-watcher

Introduction

This is a simple proof of concept that shows how to use the status webhook event to verify updates made to a commit's status through the API are performed by authorized users.

Set up and run server

# make sure we're in the right directory 
$ cd status-watcher
# install Ruby gems
$ bundle install
# set a token to use with the API
$ export GITHUB_TOKEN=7d9dj0[...]
# run the webhook listener
$ ruby server.rb

Set up webhook

Enter the URL where we'll send webhook JSON payloads (make sure to append /payload):

Make sure we're only receiving status events:

About

Webhook listener that reacts to changes made via Status API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages