#119
feat: add Dub plugin
Summary
Adds Dub plugin with the following actions:
- Create Link: Create a new short link
- Upsert Link: Create or update a link by URL or external ID
Features:
- Grouped config fields for Link IDs, Link Preview, and UTM Parameters
- Returns link ID, short URL, QR code URL, domain, key, and destination URL
Test plan
- Connection test validates credentials
- Actions execute successfully in a workflow
- Error handling works for invalid inputs
Activity
5copilot-pull-request-reviewer[bot]reviewed11mo ago
Pull request overview
This PR adds a Dub plugin for creating and managing short links with two main actions: Create Link and Upsert Link. The implementation includes proper credential management, error handling, and grouped configuration for Link IDs, Link Preview metadata, and UTM parameters.
- Adds complete Dub integration with API key authentication
- Implements two actions: Create Link (POST) and Upsert Link (PUT) with comprehensive input fields
- Returns structured link data including short URL, QR code, and metadata
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| plugins/index.ts | Registers the new Dub plugin in the plugins index |
| plugins/dub/index.ts | Main plugin configuration defining actions, form fields, and test config |
| plugins/dub/credentials.ts | Type definition for Dub API credentials |
| plugins/dub/icon.tsx | SVG icon component for Dub branding |
| plugins/dub/test.ts | Connection test function to validate API credentials |
| plugins/dub/steps/create-link.ts | Step handler for creating new short links via POST |
| plugins/dub/steps/upsert-link.ts | Step handler for creating or updating links via PUT |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
@bensabic is attempting to deploy a commit to the Vercel Labs Team on Vercel.
A member of the Team first needs to authorize it.