File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2121 with :
2222 github-token : ${{ secrets.GITHUB_TOKEN }}
2323 script : |
24- const script = require(' .github/workflows/scripts/pr-filter.js');
25- await script ({ github, context, core });
24+ const { default: filter } = await import('${{ github.workspace }}/ .github/workflows/scripts/pr-filter.js');
25+ await filter ({ github, context, core });
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function hasDescription(markdown) {
99 ) ;
1010}
1111
12- module . exports = async ( { github, context, core } ) => {
12+ export default async ( { github, context, core } ) => {
1313 const pr = context . payload . pull_request ;
1414 const body = pr . body === null ? '' : pr . body ;
1515 const markdown = body . replace ( / < ! - - [ \s \S ] * ?- - > / g, '' ) ;
You can’t perform that action at this time.
0 commit comments