We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31dfb75 commit 6dec037Copy full SHA for 6dec037
2 files changed
.github/actions/pr-titles.js .github/actions/pr-titles.mjs.github/actions/pr-titles.js renamed to .github/actions/pr-titles.mjs
@@ -1,5 +1,5 @@
1
-const core = require('@actions/core');
2
-const github = require('@actions/github');
+import * as core from '@actions/core';
+import * as github from '@actions/github';
3
4
(async function run() {
5
const title = github.context.payload.pull_request?.title;
.github/workflows/pr-titles.yml
@@ -19,4 +19,4 @@ jobs:
19
with:
20
node-version: '20'
21
- run: npm i @actions/core @actions/github
22
- - run: node .github/actions/pr-titles.js
+ - run: node .github/actions/pr-titles.mjs
0 commit comments