-
Notifications
You must be signed in to change notification settings - Fork 142
Extract inline GitHub Action scripts to separate files #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract inline GitHub Action scripts to separate files #494
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: pranaygp <1797812+pranaygp@users.noreply.github.com>
Co-authored-by: pranaygp <1797812+pranaygp@users.noreply.github.com>
8e0fe49
into
pranaygp/external-collaborator-ci
Addresses review feedback to move inline JavaScript from
trigger-ci.ymlinto separate script files for better maintainability and testability.Changes
Created
.github/scripts/directory with four modular scripts:check-permissions.js- Permission validationpost-unauthorized-comment.js- Error handling for unauthorized usersget-pr-details.js- PR metadata extractioncreate-ci-pr.js- CI branch and draft PR creationUpdated workflow to use
require()instead of inline code:Follows the pattern established in vercel/vercel workflows.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.