Skip to content

Commit

Permalink
chore: add README
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbarrow committed Jul 24, 2024
1 parent 92106d5 commit 6a9b1c2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Webook Listeners

Microservice for consuming webhook events from various services

## Services

This microservice listens for webhooks from various services for various reasons. Below is a list of all services supported by this microservice and what features it implements.

For security purposes webhook endpoints should never be known to anyone but the service. Thus this microservice does not define any routes itself. Instead routes should come from configurations.

### GitHub - Features

- Filters private repositories from having their events sent to a Discord webhook channel
- Validates that newly opened issues have followed the contribution guidelines. Will auto-respond if any errors are found
- Validates that newly opened pull requests have followed the contribution guidelines. Will auto-respond if any errors are found

### GitHub - Setup

| Environment Variable Name | Purpose | Optional |
| ------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -------- |
| `PN_WEBHOOKS_CONFIG_GITHUB_PATH` | Defines the route for consuming GitHub webhooks. If not set, will not listen for GitHub webhooks | Yes |
| `PN_WEBHOOKS_CONFIG_GITHUB_WEBHOOK_SECRET` | The secret for validating webhook signatures. If not set, will validate `POST` bodies webhooks | Yes |
| `PN_WEBHOOKS_CONFIG_GITHUB_APP_ID` | GitHub app ID. If not set then the auto-responding bot will not be enabled | Yes |
| `PN_WEBHOOKS_CONFIG_GITHUB_APP_PRIVATE_KEY_PATH` | GitHub app private key path. If not set then the auto-responding bot will not be enabled | Yes |
| `PN_WEBHOOKS_CONFIG_GITHUB_APP_INSTALLATION_ID` | GitHub app installation ID. If not set then the auto-responding bot will not be enabled | Yes |

0 comments on commit 6a9b1c2

Please sign in to comment.