Skip to content

Migrate app entry points and tests to ES modules - #252

Merged
robandpdx merged 2 commits into
mainfrom
copilot/251-migrate-app-to-es-modules
Nov 30, 2026
Merged

robandpdx merged 2 commits into
mainfrom
copilot/251-migrate-app-to-es-modules

Conversation

@robandpdx

@robandpdx robandpdx commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

This change migrates the app, Lambda handler, local startup, and tests to ES modules.

  • Module configuration: Mark the package as "type": "module" and export the app as its default export.
  • Entrypoints and tests: Replace CommonJS loading with ESM imports; export the Lambda handler as webhooks and use an explicit .js extension for the app import.
import appFn from "./app.js";

export const webhooks = createLambdaFunction(appFn, {
  probot: createProbot(),
});

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@robandpdx robandpdx changed the title [WIP] Migrate app, Lambda handler, and tests to ES modules Migrate app entry points and tests to ES modules Nov 30, 2026
@robandpdx
robandpdx marked this pull request as ready for review November 30, 2026 15:42
@robandpdx
robandpdx merged commit 6e31369 into main Nov 30, 2026
4 of 5 checks passed
@robandpdx
robandpdx deleted the copilot/251-migrate-app-to-es-modules branch November 30, 2026 18:03
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.

Migrated the app, Lambda handler, local startup, and tests to ES modules.

2 participants