Public
Like
gh-pr-issues-summary
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.
Viewing readonly version of main branch: v26View latest version
Cron job that sends a daily summary of GitHub PR and issue activity to Slack.
Example:
- Slack Webhook: Create a Slack app with incoming webhook and copy the URL
- GitHub Token: Generate a personal access token with the proper repository scope
- Environment Variables:
SLACK_WEBHOOK_URL
- Your Slack webhook URLGITHUB_TOKEN
- Your GitHub personal access tokenGITHUB_OWNER
- GitHub username/org (e.g., "octocat")GITHUB_REPO
- Repository name (e.g., "Hello-World")
- Cron Schedule: You can set the interval in the top right corner of the cron file (
main.tsx
)
Shows last 24 hours of activity:
[open]
,[draft]
,[closed]
PRs[open]
,[closed]
issues
- Fixed PR Detection: Added
direction=desc
parameter to GitHub API calls to ensure recent PRs are properly detected in the last 24 hours - Improved Error Handling: Added better API error logging and debugging
- Enhanced Time Calculation: Fixed 24-hour lookback to use hours instead of days for more accurate filtering