Skip to content

Dynamic require of @mikro-orm/postgresql is not supported at runtime in ESM contexts. #72

Dynamic require of @mikro-orm/postgresql is not supported at runtime in ESM contexts.

Dynamic require of @mikro-orm/postgresql is not supported at runtime in ESM contexts. #72

name: auto-assignment
on:
issues:
types: [opened]
pull_request:
types: [opened]
permissions:
contents: read
issues: write
pull-requests: write
jobs:
auto-assign:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run auto-assignment script
uses: actions/github-script@v7
with:
script: |
const path = require('path');
const { pathToFileURL } = require('url');
const filePath = path.resolve('./scripts/auto-assignment.mjs');
const fileUrl = pathToFileURL(filePath).href;
const importedModule = await import(fileUrl);
await importedModule.default({ github, context });