Skip to content

Conversation

@piyush-jaiswal
Copy link
Owner

@piyush-jaiswal piyush-jaiswal commented Sep 29, 2025

Summary by CodeRabbit

  • Chores
    • Pull requests now receive an automatic comment containing the Vercel preview URL after preview deployment.
    • The deployment workflow captures the preview URL from the preview build and exposes it for subsequent steps.
    • A new workflow step posts the captured preview URL as a persistent PR comment for easy access and review.
    • Applies to preview builds triggered via GitHub Actions on pull requests.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 29, 2025

Warning

Rate limit exceeded

@piyush-jaiswal has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 11 minutes and 11 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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.

📥 Commits

Reviewing files that changed from the base of the PR and between bf50dc8 and c7202f9.

📒 Files selected for processing (1)
  • .github/workflows/deploy_preview.yml (2 hunks)

Walkthrough

Captures the Vercel preview URL from the deploy step (written to GITHUB_OUTPUT as preview-url) and adds a workflow step that posts that URL as a sticky comment on the pull request using thollander/actions-comment-pull-request@v3.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow
\.github/workflows/deploy_preview.yml
Deploy step modified to emit the Vercel preview URL to GITHUB_OUTPUT (shared output preview-url). Added a new step that reads preview-url and posts it as a PR comment using thollander/actions-comment-pull-request@v3. Existing deploy behavior retained.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    actor Dev as Developer
    participant GA as GitHub Actions
    participant Deploy as Deploy Step (vercel CLI)
    participant Vercel as Vercel
    participant Out as GITHUB_OUTPUT (preview-url)
    participant Comment as PR Comment Action
    participant PR as GitHub PR

    Dev->>GA: Open/update PR
    GA->>Deploy: Run vercel deploy
    Deploy->>Vercel: Request deploy
    Vercel-->>Deploy: Return preview URL
    Deploy->>Out: Write preview-url to GITHUB_OUTPUT
    GA->>Comment: Run comment action
    Comment->>Out: Read preview-url
    Comment->>PR: Post sticky PR comment with preview URL
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

A rabbit hops through YAML lines, so spry,
I fetch the preview URL and pin it high.
With whiskers twitching, I leave a note,
"Preview ready!" — on the PR I wrote. 🥕✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly describes the main purpose of the changeset, which is to post the preview deployment URL as a comment on the pull request, and it directly reflects the core functionality added without extraneous details.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

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

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

Copy link
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

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8dc3ebb and 6b7b48f.

📒 Files selected for processing (1)
  • .github/workflows/deploy_preview.yml (1 hunks)

@github-actions
Copy link

github-actions bot commented Sep 29, 2025

Copy link
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

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 236bde2 and bf50dc8.

📒 Files selected for processing (1)
  • .github/workflows/deploy_preview.yml (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: deploy-preview

@piyush-jaiswal piyush-jaiswal force-pushed the ci/preview-deployment-url-comment branch from c7202f9 to bf50dc8 Compare September 29, 2025 14:07
@piyush-jaiswal piyush-jaiswal merged commit 95f1931 into master Sep 29, 2025
5 checks passed
@piyush-jaiswal piyush-jaiswal deleted the ci/preview-deployment-url-comment branch September 29, 2025 14:14
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.

2 participants