https://github.com/jcrqr/github_webhooks
⚓ Handle GitHub Webhooks with Deno and Deno Deploy.
https://github.com/jcrqr/github_webhooks
deno deno-deploy github github-webhooks
Last synced: 4 months ago
JSON representation
⚓ Handle GitHub Webhooks with Deno and Deno Deploy.
- Host: GitHub
- URL: https://github.com/jcrqr/github_webhooks
- Owner: jcrqr
- License: mit
- Created: 2021-04-02T13:20:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-13T16:53:53.000Z (almost 4 years ago)
- Last Synced: 2025-08-17T16:39:50.535Z (4 months ago)
- Topics: deno, deno-deploy, github, github-webhooks
- Language: TypeScript
- Homepage: https://deno.land/x/github_webhooks
- Size: 4.88 KB
- Stars: 14
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Webhooks
> Handle GitHub Webhooks with Deno and Deno Deploy.
## Installation
```typescript
import { on, webhooks } from "https://deno.land/x/github_webhooks@0.1.0/mod.ts";
```
## Example
A more complete example can be found in [example/main.ts](/example/main.ts).
```typescript
// main.ts
///
///
import { on, webhooks } from "https://deno.land/x/github_webhooks@0.1.0/mod.ts";
webhooks()(
on("issue_comment", ({ issue, comment }, _context) => {
console.info(
`@${comment.user.login} commented on issue #${issue.number}: ${comment.body}`,
);
}),
);
```
Run the example:
```bash
$ deployctl run --libs=ns,fetchevent main.ts
```
## Contributing
All contributions are very welcome!
If you find any bug or have a feature request, please [open a new issue](https://github.com/crqra/github_webhooks/issues).
For code or documentation contributions, [fork this repository](https://github.com/crqra/github_webhooks/fork),
do your thing, and submit a [Pull Request](https://github.com/crqra/github_webhooks/pulls).
## License
This project is released under the [MIT License](/LICENSE).