#119

feat: add Dub plugin

Openbensabicwants to merge intofrom

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

5
vercel[bot]11mo ago

@bensabic is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

copilot-pull-request-reviewer[bot]reviewed11mo ago
copilot-pull-request-reviewer[bot]11mo 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
FileDescription
plugins/index.tsRegisters the new Dub plugin in the plugins index
plugins/dub/index.tsMain plugin configuration defining actions, form fields, and test config
plugins/dub/credentials.tsType definition for Dub API credentials
plugins/dub/icon.tsxSVG icon component for Dub branding
plugins/dub/test.tsConnection test function to validate API credentials
plugins/dub/steps/create-link.tsStep handler for creating new short links via POST
plugins/dub/steps/upsert-link.tsStep handler for creating or updating links via PUT

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