Skip to content

chore: event-driven self-deploy; README documents both cadences#8

Merged
znat merged 5 commits intomainfrom
chore/event-driven-publish
May 2, 2026
Merged

chore: event-driven self-deploy; README documents both cadences#8
znat merged 5 commits intomainfrom
chore/event-driven-publish

Conversation

@znat
Copy link
Copy Markdown
Owner

@znat znat commented May 2, 2026

Summary

Two changes addressing your earlier question about replacing the cron with event triggers.

`self-deploy.yml` — event-driven

```diff
on:
push:
branches: [main]

  • schedule:
    • cron: "0 9 * * *"
  • release:
  • types: [published]
    workflow_dispatch:
    ```

znat/gitpulse will now re-publish on every commit landing on `main` and on every `release: published` event (covers regular releases + pre-releases). Drops the idle daily cron run.

README — both cadences offered

The install snippet now presents two options for consumers, with a one-line tradeoff each:

  • Option A (event-driven, recommended): `push: branches: [main]` + `release: types: [published]` + `workflow_dispatch`. New content appears within a couple of minutes; no idle runs.
  • Option B (daily): `schedule: cron 0 9 * * *` + `workflow_dispatch`. Lower CI footprint for sporadic repos; up to a day of lag.

Either snippet is copy-paste ready. Consumers can change their mind later by editing the file.

Test plan

  • `yarn typecheck` clean (no code changed)
  • `yarn test` — 94/94 pass (no code changed)
  • Self-deploy fires on the next merge to main (verifies the `push` trigger still works)
  • Tagging `v1.0.0` after merge fires another self-deploy run via `release: published`

Summary by CodeRabbit

  • Documentation

    • Updated installation instructions with two configurable deployment options: event-driven (on pushes and releases) and daily scheduled; clarified first-run wording.
  • Chores

    • Deployment workflow now triggers on published releases instead of a scheduled cron.
    • Build process adjusted to run without Turbo before post-build renaming.

Drops the daily cron from znat/gitpulse's self-deploy in favour of
push + release event triggers. New content (PRs, direct pushes,
releases) now appears on the site within a couple of minutes of
landing instead of waiting up to a day.

README install snippet now offers consumers two cadences:

- Option A (event-driven, recommended): push + release + manual.
  Re-publishes the moment something changes; no idle runs.
- Option B (daily): cron at 09:00 UTC + manual. Lower CI footprint
  for repos with sporadic activity; new content lags up to a day.

Both work; consumers can switch by editing their workflow file.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 2, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 0ea56e66-e021-4e2d-bbfd-3b20cde95549

📥 Commits

Reviewing files that changed from the base of the PR and between a5bcbbf and 811e002.

📒 Files selected for processing (1)
  • site/package.json

📝 Walkthrough

Walkthrough

Changes update deployment automation and build configuration: the self-deploy workflow now triggers on published releases instead of a scheduled cron, README adds two workflow setup options (event-driven or daily), and the site build script runs next build --no-turbo.

Changes

Self-deploy & Install Docs

Layer / File(s) Summary
Trigger change
.github/workflows/self-deploy.yml
Replaced scheduled cron trigger (on.schedule) with on.release configured for types: [published].
Docs / Wiring
README.md
Replaced single example with two installation options: Option A (push-to-main, published releases, workflow_dispatch, Pages/id-token permissions, reusable workflow call) and Option B (daily cron + workflow_dispatch); bootstrap wording updated to begin "Either way:".

Build script

Layer / File(s) Summary
Build script change
site/package.json
scripts.build updated from next build && node scripts/rename-og-png.mjs to next build --no-turbo && node scripts/rename-og-png.mjs.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

I’m a rabbit in CI’s glade,
I swapped the cron for a release parade.
Docs now offer two paths to deploy,
And Next builds sprint without turboed joy. 🐇✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main changes: event-driven deployment trigger replacement and README documentation of both deployment cadence options.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/event-driven-publish

Review rate limit: 9/10 reviews remaining, refill in 6 minutes.

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

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@README.md`:
- Around line 23-30: The docs claim the workflow runs on the repository's
default branch but the snippet hardcodes branches: [main]; update the workflow
example (the Gitpulse workflow name and the on: push: branches: [main] block) to
remove the branches filter so push triggers are not limited to "main" (i.e., use
on: push without branches) so the workflow actually runs on the repo's default
branch across different repos.
- Around line 21-47: The "Option A — event-driven (recommended)" and "Option B —
daily" headings are using level-4 headings (####) but should be level-3 (###) to
sit directly under the "## Install" section and satisfy MD001; update the
heading markers for both "Option A — event-driven (recommended)" and "Option B —
daily" (and any adjacent cadence option headings) from "####" to "###" so the
markdown hierarchy is consistent.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 1718e9bf-046e-405c-bd12-057d5ca5fab2

📥 Commits

Reviewing files that changed from the base of the PR and between 61a6717 and 96f8d76.

📒 Files selected for processing (2)
  • .github/workflows/self-deploy.yml
  • README.md

Comment thread README.md Outdated
Comment thread README.md Outdated
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 2, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 1 file(s) based on 2 unresolved review comments.

Files modified:

  • README.md

Commit: d4fc7685aa262d84e1babcaecf30f42c17953f08

The changes have been pushed to the chore/event-driven-publish branch.

Time taken: 2m 47s

Fixed 1 file(s) based on 2 unresolved review comments.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@README.md`:
- Around line 23-30: The prose says "default branch" but the YAML snippet uses a
broad push trigger (`on: push:`) which fires for all branches; either restrict
the YAML push trigger to the repository's default branch (e.g., replace `on:
push:` with a branch-scoped trigger like `on: push: branches: - main` or `-
${default_branch}`) or change the prose to say "all branches" so it matches the
`on: push:` usage; update the `on: push:`/`release:` snippet and the sentence
mentioning "default branch" so both describe the same scope.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: bbabb29e-aeae-4914-9ac4-2fb447135f8d

📥 Commits

Reviewing files that changed from the base of the PR and between 96f8d76 and d4fc768.

📒 Files selected for processing (1)
  • README.md

Comment thread README.md
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 2, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 2 file(s) based on 1 unresolved review comment.

Files modified:

  • README.md
  • site/next.config.js

Commit: 8cd27b05df173694fbf0abff4cc6c480e25a4bb0

The changes have been pushed to the chore/event-driven-publish branch.

Time taken: 3m 7s

Fixed 2 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@site/next.config.js`:
- Around line 11-13: Remove the unsupported experimental.turbo config: delete
the experimental block (specifically the experimental: { turbo: undefined }
entry) from the Next.js config, and if you intended to enable the new bundler
set the top-level turbopack key instead (e.g., add a turbopack setting) so the
config uses turbopack rather than experimental.turbo.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 52d4e315-35f4-4ee6-aa2d-f448eda82293

📥 Commits

Reviewing files that changed from the base of the PR and between d4fc768 and 8cd27b0.

📒 Files selected for processing (2)
  • README.md
  • site/next.config.js

Comment thread site/next.config.js Outdated
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 2, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

The agent ran but didn't make any changes. The issues may already be fixed or require manual intervention.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 2, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 2 file(s) based on 1 unresolved review comment.

Files modified:

  • site/next.config.js
  • site/package.json

Commit: a5bcbbffbb1b3e7a5615e080c13d177786ff5952

The changes have been pushed to the chore/event-driven-publish branch.

Time taken: 3m 23s

Fixed 2 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@site/package.json`:
- Line 7: The package.json "build" script currently uses an invalid Next.js flag
"--no-turbo"; update the "build" npm script (the "build" field in package.json)
to replace "--no-turbo" with a valid bundler flag such as "--webpack" (or
"--turbopack" if you prefer Turbopack) so the Next.js build command succeeds,
and keep the existing post-build step (node scripts/rename-og-png.mjs)
unchanged.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: dc333b18-b5d1-4a54-8ab3-0b13f82a1b0e

📥 Commits

Reviewing files that changed from the base of the PR and between 8cd27b0 and a5bcbbf.

📒 Files selected for processing (1)
  • site/package.json

Comment thread site/package.json Outdated
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 2, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 1 file(s) based on 1 unresolved review comment.

Files modified:

  • site/package.json

Commit: 811e002210d6c7b40b0537a1686edcdfde04dfda

The changes have been pushed to the chore/event-driven-publish branch.

Time taken: 2m 24s

Fixed 1 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented May 2, 2026

Greptile Summary

This PR replaces the daily cron trigger in self-deploy.yml with release: types: [published], updates the README with two copy-paste deployment options (event-driven vs. daily), and adds --webpack to next build to opt out of Turbopack in Next.js 16. All three changes are correct and well-scoped.

Confidence Score: 5/5

Safe to merge — purely configuration and documentation changes with no logic modifications.

All three files contain straightforward, well-understood changes: a GitHub Actions trigger swap, README documentation, and a Next.js build flag addition. The --webpack flag is the official documented way to opt out of Turbopack in Next.js 16. No code logic was modified.

No files require special attention.

Important Files Changed

Filename Overview
.github/workflows/self-deploy.yml Replaces daily cron trigger with release: types: [published]; keeps the existing push and workflow_dispatch triggers intact.
README.md Splits installation example into Option A (event-driven, recommended) and Option B (daily cron); both snippets are syntactically correct and complete.
site/package.json Adds --webpack to next build to opt out of Turbopack (Next.js 16 default), which is the documented flag for this purpose.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Push to main] -->|push trigger| D[self-deploy.yml]
    B[Release published] -->|release: published| D
    C[Manual trigger] -->|workflow_dispatch| D
    D --> E[publish.yaml reusable workflow]
    E --> F[Gitpulse site deployed to Pages]

    subgraph "Dropped trigger"
        G["⏱ schedule: cron 0 9 * * *"]
    end
    G -.->|removed| D
Loading

Reviews (1): Last reviewed commit: "fix: apply CodeRabbit auto-fixes" | Re-trigger Greptile

@znat znat merged commit ef9abfe into main May 2, 2026
2 checks passed
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.

1 participant