Skip to content

feat: scheduled blog posts, published when they come due - #269

Merged
Cervator merged 2 commits into
masterfrom
feat/scheduled-blog-posts
Nov 14, 2026
Merged

Cervator merged 2 commits into
masterfrom
feat/scheduled-blog-posts

Conversation

@soloturn

Copy link
Copy Markdown
Contributor

AI-assisted change proposal. Filed by agent driven by @soloturn via GDD.

Summary

  • Blog posts dated in the future are hidden from the list, home page, search index and post pages, and their co-located files are not copied into the build. npm run dev still shows them for preview.
  • A daily check (scripts/posts-due.mjs, 02:00 UTC) builds only when a post's date has passed since the last successful deploy, or when that deploy is over 30 days old, which also refreshes module and Good First Issue data. Pushes and manual runs always build.
  • The date is not added to post URLs, which would break existing links.

Test plan

  • Build with a 2099 post planted: absent from pages, search index and copied files; dev server serves it
  • posts-due.mjs locally: false with nothing due, true with a due post, true on push, true when stale
  • astro check, ESLint and Prettier pass
  • First scheduled run on Actions: check green, build and deploy skipped when nothing is due

Related

…come due

getPosts() filters on the date and the assets copy skips hidden posts; `astro dev` still shows them. A daily check job builds only if a post's date passed since the last successful deploy. Refs #215.

Co-Authored-By: soloturn <soloturn@gmail.com>
Module and Good First Issue data only refresh on a build, so a quiet repo let them go stale. The daily check now also builds once the last successful deploy passes REFRESH_DAYS (default 30).

Co-Authored-By: soloturn <soloturn@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5d1cfda7-dceb-4724-a26f-37fd24f20945
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Cervator
Cervator merged commit fbf7ab6 into master Nov 14, 2026
6 checks passed
@Cervator
Cervator deleted the feat/scheduled-blog-posts branch November 14, 2026 03:43
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.

Scheduling Blog Post Publish Date

2 participants