Skip to content

feat: automate blog podcast publishing - #991

Closed
riderx wants to merge 5 commits into
mainfrom
cursor/blog-podcast-automation-31da
Closed

riderx wants to merge 5 commits into
mainfrom
cursor/blog-podcast-automation-31da

Conversation

@riderx

@riderx riderx commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

Supersedes #879 — rebased onto current main with merge conflicts resolved and richer episode descriptions.

Summary

  • Generate two-voice podcast episodes from eligible English blog posts via AutoContent API (https://api.autocontentapi.com).
  • Expose episodes on matching blog pages with an accessible native audio player, Open Graph audio metadata, and JSON-LD (PodcastEpisode + AudioObject).
  • Publish a site-owned RSS feed at /podcast.xml with valid enclosures, stable GUIDs, artwork, and canonical article links.
  • Make the feed discoverable via a global RSS alternate link and robots.txt sitemap entry.
  • Add GitHub Actions workflow for new posts, daily quota-aware backfill (2 oldest missing), and manual --slug runs.

Description backlinks

Episode descriptions now include:

  • The source article URL
  • Up to 3 related Capgo blog posts (matched by shared tags)
  • Up to 3 Capgo product/docs links (matched by tags/keywords, e.g. /live-update/, /docs/plugins/updater/, /plugins/)

Activation (required before automation runs)

Automation is off by default. Set these in GitHub repository settings:

Type Name Purpose
Variable PODCAST_AUTOMATION_ENABLED Set to true to enable workflows
Variable (optional) PODCAST_SITE_URL Defaults to https://capgo.app
Secret AUTOCONTENT_API_KEY AutoContent API bearer token
Secret AUTOCONTENT_PODCAST_SHOW_ID Target podcast show ID
Secret AUTOCONTENT_PODCAST_VOICE_1 First voice ID (integer)
Secret AUTOCONTENT_PODCAST_VOICE_2 Second voice ID (integer)

Optional env overrides for local/manual runs: AUTOCONTENT_API_BASE_URL, PODCAST_POLL_INTERVAL_MS, PODCAST_POLL_TIMEOUT_MS.

Workflows

  • .github/workflows/generate-podcast.yml — push on new EN blog posts, daily cron backfill, workflow_dispatch
  • Outrank import workflow also generates one episode per import batch when enabled

Visual proof

Podcast player on a blog post

Validation

bun test scripts/blogs/generate-podcast.test.ts scripts/blogs/podcast-discovery.test.ts
bun run ci:verify:web
Open in Web Open in Cursor 

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Review in cubic

riderx and others added 3 commits August 26, 2026 16:50
Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@coderabbitai

coderabbitai Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

  • Run on-demand review

On-demand reviews are free for the next 24 days. After that, they cost $0.25 per reviewed file.

Or wait 37 minutes for your next included review.

View limit details

Limit details: You’ve used the included review currently available. Your 63 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: ec020026-4c64-457c-b865-600ebe6535d9

📥 Commits

Reviewing files that changed from the base of the PR and between 17027be and 2f2942f.

⛔ Files ignored due to path filters (2)
  • apps/web/public/capgo-podcast.png is excluded by !**/*.png
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (15)
  • .github/pull-request-assets/podcast-player.webp
  • .github/workflows/generate-podcast.yml
  • .github/workflows/import-outrank.yml
  • apps/web/public/_headers
  • apps/web/public/robots.txt
  • apps/web/src/components/PodcastEpisode.astro
  • apps/web/src/components/SEO.astro
  • apps/web/src/data/podcastEpisodes.json
  • apps/web/src/lib/podcast.ts
  • apps/web/src/pages/blog/[slug].astro
  • apps/web/src/pages/podcast.xml.ts
  • package.json
  • scripts/blogs/generate-podcast.test.ts
  • scripts/blogs/generate-podcast.ts
  • scripts/blogs/podcast-discovery.test.ts

Note

Reviews paused

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@socket-security

socket-security Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​astrojs/​rss@​4.0.1910010010089100

View full report

Comment thread apps/web/src/lib/podcast.ts Fixed
cursoragent and others added 2 commits August 26, 2026 16:57
Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@riderx
riderx marked this pull request as ready for review August 26, 2026 17:00
@sonarqubecloud

Copy link
Copy Markdown

@cursor

cursor Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai review

1 similar comment
@cursor

cursor Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai review

@cursor

cursor Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai review

Please review current HEAD 2f2942f. CodeRabbit's approval notice says it has not reviewed the latest commit. No empty commit.

@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai review

Please review current HEAD 2f2942fe32c8dd73f280372bf23bbc0f0152d88a. CodeRabbit approval notice still shows latest commit not reviewed.

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

@TorichanCapgo I will review the current HEAD 2f2942fe32c8dd73f280372bf23bbc0f0152d88a.

⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai help

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

CodeRabbit commands

These commands are invoked using PR/Issue comments.

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai review --preview-config to test the unmerged CodeRabbit configuration on a draft PR. The requester must have repository write access; preview results are non-authoritative.
  • @coderabbitai rate limit to show your current review rate limit status.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai evaluate custom pre-merge check --instructions <custom-checks-instructions> --name <custom-checks-title> [--mode <error|warning>] to validate the custom pre-merge checks instructions. Defaults to error when --mode is omitted.
  • @coderabbitai ignore pre-merge checks to override pre-merge checks and get an approval on PR.
  • @coderabbitai run pre-merge checks to run pre-merge checks on the pull request.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai emit path instructions to emit generated path-specific review instructions for this repository.
  • @coderabbitai autofix to automatically fix issues in the current review thread, or all unresolved review comments when used in the PR conversation.
  • @coderabbitai resolve to resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai generate configuration to create a PR that adds the current resolved configuration as .coderabbit.yaml (or show it if already present).
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit configuration file (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, support, documentation and community

  • Visit our status page to check the current availability of CodeRabbit.
  • Create a ticket on our support page for assistance with any issues or questions.
  • Visit our documentation site for detailed information on how to use CodeRabbit.
  • Join our Discord community to connect with other users and get help from the community.
  • Follow us on X/Twitter for updates and announcements.

@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai review --use-credits

Authorize on-demand review for current HEAD 2f2942fe32c8dd73f280372bf23bbc0f0152d88a. Included hourly limit reached; 15 billable files per CR summary.

@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

You're currently rate limited under our Fair Usage Limits Policy. Your current included review allowance is based on your included PR review attempts over the past 7 days. Your next review will be available in 52 minutes.

@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai review --use-credits

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

You're currently rate limited under our Fair Usage Limits Policy. Your current included review allowance is based on your included PR review attempts over the past 7 days. Your next review will be available in 3 minutes.

@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@TorichanCapgo
TorichanCapgo marked this pull request as draft August 27, 2026 13:59
@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

You're currently rate limited under our Fair Usage Limits Policy. Your current included review allowance is based on your included PR review attempts over the past 7 days. Your next review will be available in 44 minutes.

@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai review --use-credits

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@TorichanCapgo
TorichanCapgo marked this pull request as ready for review August 27, 2026 14:43
@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@TorichanCapgo
TorichanCapgo marked this pull request as draft August 27, 2026 15:06
@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

You're currently rate limited under our Fair Usage Limits Policy. Your current included review allowance is based on your included PR review attempts over the past 7 days. Your next review will be available in 39 minutes.

@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai pause

Pausing automatic reviews so we can request an on-demand / full review of current HEAD 2f2942fe32c8dd73f280372bf23bbc0f0152d88a (included hourly limit keeps blocking incremental review).

@TorichanCapgo
TorichanCapgo marked this pull request as ready for review August 27, 2026 15:07
@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

@TorichanCapgo Automatic reviews are paused for this pull request. You can request an on-demand or full review after the pause takes effect.

✅ Action performed

Reviews paused.

@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai full review --use-credits

Please fully review current HEAD 2f2942fe32c8dd73f280372bf23bbc0f0152d88a. Automatic reviews are paused; included hourly limit was blocking incremental review. On-demand/full review authorized.

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

@TorichanCapgo I will run a full review for the current HEAD.

⚠️ Action not completed

Review rate limited.


Your included review limit is currently reached under our Fair Usage Limits Policy. Your current included review allowance is based on your included PR review attempts over the past 7 days. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 37 minutes.

@TorichanCapgo TorichanCapgo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good on HEAD 2f2942fe32c8dd73f280372bf23bbc0f0152d88a.

Checked: merge CLEAN, CI green, Sonar script-injection / ignore-scripts fixes in the podcast workflow, tests present, podcast player screenshot on the PR body, automation gated behind PODCAST_AUTOMATION_ENABLED. CodeRabbit is still rate-limited even after pause + full review --use-credits, so approving here to clear the review bar.

@TorichanCapgo

Copy link
Copy Markdown
Contributor

@coderabbitai rate limit

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

You're currently rate limited under our Fair Usage Limits Policy. Your current included review allowance is based on your included PR review attempts over the past 7 days. Your next review will be available in 41 minutes.

@riderx riderx closed this Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants