Skip to content

Conversation

@pranaygp
Copy link
Collaborator

@pranaygp pranaygp commented Nov 13, 2025

Add new /run-ci command to allow repo admins to trigger a CI run for external collaborator PRs

Leaving in draft just so we remove the claude generated md files before actually merging :)

@pranaygp pranaygp requested a review from TooTallNate November 13, 2025 02:32
@changeset-bot
Copy link

changeset-bot bot commented Nov 13, 2025

⚠️ No Changeset found

Latest commit: ad93a6f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

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

Click here to learn what changesets are, and how to add one.

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

@vercel
Copy link
Contributor

vercel bot commented Nov 13, 2025

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

Project Deployment Preview Comments Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview Comment Nov 13, 2025 4:04am
example-nextjs-workflow-webpack Ready Ready Preview Comment Nov 13, 2025 4:04am
example-workflow Ready Ready Preview Comment Nov 13, 2025 4:04am
workbench-hono-workflow Ready Ready Preview Comment Nov 13, 2025 4:04am
workbench-nitro-workflow Ready Ready Preview Comment Nov 13, 2025 4:04am
workbench-nuxt-workflow Ready Ready Preview Comment Nov 13, 2025 4:04am
workbench-sveltekit-workflow Ready Ready Preview Comment Nov 13, 2025 4:04am
workbench-vite-workflow Ready Ready Preview Comment Nov 13, 2025 4:04am
workflow-docs Ready Ready Preview Comment Nov 13, 2025 4:04am

github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
try {
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer we pull these out into script files, like here.

with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.issues.createComment({
Copy link
Member

Choose a reason for hiding this comment

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

Not sure we need to post a comment on the PR. Maybe just no-op.

const timestamp = new Date().getTime();
const ciBranchName = `ci-test/${prDetails.number}-${timestamp}`;

// Add remote for the external fork if it's from a fork
Copy link
Member

Choose a reason for hiding this comment

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

It would always be from a fork, no?

script: |
const prDetails = ${{ steps.pr-details.outputs.result }};
const timestamp = new Date().getTime();
const ciBranchName = `ci-test/${prDetails.number}-${timestamp}`;
Copy link
Member

Choose a reason for hiding this comment

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

timestamp seems unnecessary. PR numbers are unique.

Unless we are planning on creating a new branch each time this workflow is run, but my thinking was that we'd have a 1:1 relationship, and the test PR would update if the branch already exists and /run-ci is invoked for future updates on a given PR. Maybe this is fine for now as :itg: though

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.

3 participants