File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- module . exports = async ( { github, context} ) => {
1+ export default async function ( { github, context} ) {
22 const { data : labels } = await github . rest . issues . listLabelsOnIssue ( {
33 issue_number : context . issue . number ,
44 owner : context . repo . owner ,
Original file line number Diff line number Diff line change 2222 with :
2323 github-token : ${{ secrets.GITHUB_TOKEN }}
2424 script : |
25- const script = require ('./.github/scripts/LabelInternal .js');
26- console.log( script({github, context}) );
25+ const { default: script } = await import ('./.github/scripts/RemoveStateLabels .js');
26+ await script({github, context});
2727
2828 # Remove "run-visual-tests" labels and similar when the pull request is closed
2929 - name : Remove state control labels
3232 with :
3333 github-token : ${{ secrets.GITHUB_TOKEN }}
3434 script : |
35- const script = require ('./.github/scripts/RemoveStateLabels.js');
36- await script({github, context});
35+ const { default: script } = await import ('./.github/scripts/RemoveStateLabels.js');
36+ await script({github, context});
You can’t perform that action at this time.
0 commit comments