Generate Thursday updates for the Pocket Casts team using AI!
If you just want to run the Thursday updates script, download and execute the bin
file directly:
# Get AI updates for the past 14 days
./bin/pocket-updates
# Get AI updates for a specific date range
./bin/pocket-updates --from 2024-12-05 --to 2024-12-19
This script needs to access WordPress.com API and GitHub API, for these we need:
- WordPress.com OAuth access token - This is automatically setup the first time you run the script.
- GitHub Personal Access Token (PAT) - this is read from
GITHUB_TOKEN
environment variable.
To get a GitHub Personal Access Token (PAT), you can follow these steps:
- Go to GitHub Settings
- Click on "Generate new token (classic)"
- Set the token name and permissions to "repo"
- Click on "Generate token"
- Copy the token and save it as
GITHUB_TOKEN
environment variable in your shell.
Usage: pocket-updates [options]
Options:
--debug Enable debug logging
--verbose Enable verbose logging
--from Start date (YYYY-MM-DD)
--to End date (YYYY-MM-DD)
--help Show this help message
For development, you'll need to install the Bun.sh runtime.
Run the Thursday updates script:
bun run start
Build the Thursday updates binary and save it in the bin
directory:
bun run build
You can read the full summary about it in the P2 Post here.
-
Search GitHub PRs within a given date range (last 14 days by default).
- Source:
get-thursday-updates.ts
- Source:
-
Summarize Pull Requests with AI.
- Source:
ai-summarize-pull-requests.ts
- Source:
-
Get Project Threads from WordPress.com.
- Source:
posts.ts
- Source:
-
Summarize Project Threads with AI.
- Source:
ai-summarize-project-threads.ts
- Source:
-
Format Summaries with a Schema for flexible output formatting.
- Source:
schema.ts
- Source:
-
Evaluate Top Shipped Changes using AI.
- Source:
ai-report-top-shipped.ts
- Source:
-
Combine Everything into a Single Markdown Report.
- Source:
format-report.ts
- Source: