Skip to content

Commit d074d5e

Browse files
authored
feat: Move to ESM (#98)
BREAKING CHANGE: Use ESM BREAKING CHANGE: Use Probot v13 BREAKING CHANGE: Move to Node 20
1 parent ee3899f commit d074d5e

File tree

10 files changed

+99456
-90621
lines changed

10 files changed

+99456
-90621
lines changed

Diff for: .github/workflows/inception.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
issuesOpened:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- uses: actions/setup-node@v4
1212
with:
1313
cache: npm
14-
node-version: 16
14+
node-version: 20
1515
- run: npm ci
1616
- run: npm run build
1717
- uses: ./

Diff for: .github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
name: release
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
- uses: actions/setup-node@v4
1313
with:
14-
node-version: lts/*
14+
node-version: 20
1515
cache: npm
1616
- run: npm ci
1717
- run: npm run build

Diff for: .github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
test:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
- uses: actions/setup-node@v4
1414
with:
1515
cache: npm
16-
node-version: 16
16+
node-version: 20
1717
- run: npm ci
1818
- run: npm test

Diff for: action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ branding:
44
icon: "gift"
55
color: orange
66
runs:
7-
using: "node12"
7+
using: "node20"
88
main: "dist/index.js"

Diff for: app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* @param {import('probot').Probot} app
33
*/
4-
module.exports = (app) => {
5-
app.log("Yay! The app was loaded!");
4+
export default (app) => {
5+
app.log.info("Yay! The app was loaded!");
66

77
app.on("issues.opened", async (context) => {
88
return context.octokit.issues.createComment(

0 commit comments

Comments
 (0)