Skip to content

Conversation

@jkbktl
Copy link
Collaborator

@jkbktl jkbktl commented Nov 29, 2025

This PRs:

  • allow external contributors to create PRs which will deploy previews on Vercel after one of the team member's approval

This needs to be tested after merge.

relates https://github.com/status-im/status-website/issues/1576

to do:

  • create github environment to add required reviewers
  • add secrets
  • testing (after merge)

@changeset-bot
Copy link

changeset-bot bot commented Nov 29, 2025

🦋 Changeset detected

Latest commit: 84c74ab

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
status-components Ready Ready Preview, Comment Jan 8, 2026 0:47am
status-network-hub Ready Ready Preview, Comment Jan 8, 2026 0:47am
status-portfolio Ready Ready Preview, Comment Jan 8, 2026 0:47am
status-website Error Error Jan 8, 2026 0:47am
2 Skipped Deployments
Project Deployment Review Updated (UTC)
status-api Ignored Ignored Preview Jan 8, 2026 0:47am
status-network-website Ignored Ignored Preview Jan 8, 2026 0:47am

@jkbktl jkbktl marked this pull request as ready for review November 30, 2025 14:51
Copilot AI review requested due to automatic review settings November 30, 2025 14:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new GitHub Actions workflow to enable preview deployments for pull requests from external contributors (forked repositories). The workflow uses pull_request_target with environment-based approval to safely deploy previews while protecting repository secrets.

Key Changes:

  • Adds automated preview deployment workflow for fork PRs with manual approval requirement
  • Implements Turbo-based change detection to selectively deploy only affected applications
  • Creates GitHub commit statuses and PR comments with deployment URLs

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
.github/workflows/preview-deploy.yml New workflow for deploying preview environments for external contributors with approval gate, Turbo change detection, and Vercel deployments for affected apps
.changeset/thick-humans-impress.md Changeset documenting the new preview deploy feature

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@status-im-auto
Copy link
Member

status-im-auto commented Dec 11, 2025

Jenkins Builds

Click to see older builds (6)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 33bfc9d #6 2025-12-11 13:09:29 ~16 min connector 📦zip
✔️ 33bfc9d #6 2025-12-11 13:10:43 ~18 min wallet 📦zip
✔️ a2e8414 #8 2025-12-14 13:10:05 ~41 sec connector 📦zip
✔️ a2e8414 #8 2025-12-14 13:10:34 ~1 min wallet 📦zip
✔️ d6ad349 #9 2025-12-21 22:03:45 ~38 sec connector 📦zip
✔️ d6ad349 #9 2025-12-21 22:04:18 ~1 min wallet 📦zip
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ e7217c2 #11 2026-01-06 22:12:22 ~39 sec connector 📦zip
✔️ e7217c2 #11 2026-01-06 22:12:52 ~1 min wallet 📦zip
✔️ 84c74ab #12 2026-01-08 12:46:28 ~47 sec connector 📦zip
✔️ 84c74ab #12 2026-01-08 12:46:56 ~1 min wallet 📦zip

@jkbktl
Copy link
Collaborator Author

jkbktl commented Dec 17, 2025

@jkbktl Is there any way we can test the workflow?

@jinhojang6 No, unfortunately no, this is the tricky part, I can test it after merge. I did some testing with similar workflow with my personal account, but this is company account and is little bit different and needs testing afterwards.

Copy link
Collaborator

@felicio felicio left a comment

Choose a reason for hiding this comment

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

Left a couple of comments 👍.

Would also first test it with your own Vercel team with at least one project set up there.

@github-project-automation github-project-automation bot moved this from In Progress to Waiting in Web & User Interfaces Dec 17, 2025
Copy link
Contributor

@jinhojang6 jinhojang6 left a comment

Choose a reason for hiding this comment

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

@jkbktl Thanks, let me double-check after this PR is merged again.

Copy link
Contributor

@JulesFiliot JulesFiliot left a comment

Choose a reason for hiding this comment

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

Overall code looks good to me 👍
I'll test the functionality once merged.

On a side note, we have to be careful when approving "anybody"'s code to be deployed. One could introduce a harmful script or library for example and since we deploy everything with powerful permissions it can be dangerous.

@jinhojang6 jinhojang6 mentioned this pull request Dec 22, 2025
@jinhojang6
Copy link
Contributor

jinhojang6 commented Dec 22, 2025

I forked the status-web repo and verified the workflow by making a test change and triggering the Vercel preview deployment after approval: #914

Here is a preview example: https://status-website-git-fork-jinhojang6-pr-872-status-im-web.vercel.app/

Screenshot 2025-12-22 at 4 56 02 PM

We need to manually authoize each app by clicking the View details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants