Feature: Build site on PRs#157
Conversation
and allow it for pull requests
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis pull request refactors the GitHub Actions CI/CD pipeline by extracting build logic into a reusable workflow. A new Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/build.yml:
- Around line 16-17: The SITE_URL env default currently uses inputs.site-url
which is empty for pull_request builds; update the workflow so SITE_URL picks
the target-branch URL when inputs.site-url is not provided by inspecting the PR
base branch (use github.event.pull_request.base.ref) and map that to the staging
URL for the develop target and to the production URL otherwise; specifically
adjust the env SITE_URL assignment in .github/workflows/build.yml to fall back
from inputs.site-url to a conditional based on
github.event.pull_request.base.ref so PRs targeting develop get the staging URL
and all others get the production URL.
- Around line 23-24: The outputs mapping uses the wrong output key
(steps.upload.outputs.artifact_id); change it to use the hyphenated key by
setting the outputs entry named artifact-id to the value from
steps.upload.outputs['artifact-id'] (i.e., replace the current artifact_id
expression with ${{ steps.upload.outputs['artifact-id'] }}), so the reusable
workflow exposes the correct artifact-id output.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: acf938f6-38f7-4448-8339-7605a7e97e19
📒 Files selected for processing (2)
.github/workflows/build.yml.github/workflows/deploy.yml
This PR enables building the site for pull requests.
The site is not deployed, but a built can already show issues.