We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29bf95e commit eaf5e57Copy full SHA for eaf5e57
2 files changed
.github/workflows/pr-filter.yml
@@ -21,5 +21,5 @@ jobs:
21
with:
22
github-token: ${{ secrets.GITHUB_TOKEN }}
23
script: |
24
- const script = require('.github/workflows/scripts/pr-filter.js');
25
- await script({ github, context, core });
+ const { default: filter } = await import('${{ github.workspace }}/.github/workflows/scripts/pr-filter.js');
+ await filter({ github, context, core });
.github/workflows/scripts/pr-filter.js
@@ -9,7 +9,7 @@ function hasDescription(markdown) {
9
);
10
}
11
12
-module.exports = async ({ github, context, core }) => {
+export default async ({ github, context, core }) => {
13
const pr = context.payload.pull_request;
14
const body = pr.body === null ? '' : pr.body;
15
const markdown = body.replace(/<!--[\s\S]*?-->/g, '');
0 commit comments