Skip to content

eliotanke/github_webhooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github_webhooks

Disclaimer

Please DO NOT upload the Slack API token to this repository. The moment you do this, Slack will revoke access to that API token and you will need to create a new API token.

AWS Console

  1. Log into Sandbox_Clio_Developer via Okta
  2. See DynamoDB, Lambda and API Gateway for details

API Gateway

API Gateway is used as a webhook entry point so Github call call it and implicitly invoke our lambda function. For more details, see the API Gateway in the AWS Console.

Lambda

We use lambda to process webhook events from Github. Lambda will post data to Slack after processing

  1. To deploy your lambda function, please run the zip.sh file locally. It will create a file called github_webhook_handler.zip in the directory one level above.
  2. Upload github_webhook_handler.zip to the lambda function console by clicking on the Upload from dropdown at the right side of the page.
  3. Trigger the function either by creating a pull request, or by clicking test on the lambda function console. Note that this only triggers the opened event

Dynamo DB

Dynamo DB stores a mapping between pull request URLs and their corresponding post in Slack. This will be used to comment and add emojis to existing posts in Slack. For more information, see the Dynamo DB table in the AWS Console.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published