malleable
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
main.ts
https://charmaine--a86c3210722b11f09b700224a6c84d84.web.val.run
Webhook automation for GitHub PRs with Slack notifications and Asana task syncing.
- PR Assignment: Auto-assigns one teammate or another when PR marked ready for review
- Review Reassignment: Reassigns PR back to author after approval/rejection
- Slack Notifications: Posts when PRs are opened and ready for review
- Asana Integration: Replaces Asana URLs with task titles, adds PR links to tasks
-
Environment Variables:
GITHUB_TOKEN
- GitHub Personal Access TokenSLACK_WEBHOOK
- Slack webhook URLASANA_API_TOKEN
- Asana Personal Access Token
-
GitHub Token Permissions (Fine-grained):
- Pull requests: Read and Write
- Issues: Read and Write
- Contents: Read
- Metadata: Read
-
Configure Reviewers: Update
REVIEWERS
array ingithub.ts
with your team members -
GitHub Webhook:
- URL:
https://your-val-town-url.web.val.run/webhook
(note the/webhook
) - Events:
Pull requests
,Pull request reviews
- URL:
main.ts
- Hono webhook handler, sends messages to Slackgithub.ts
- GitHub API functionsasana.ts
- Asana API functions