diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 057e61f..99cc747 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - node-version: [8.x, 10.x, 12.x] + node-version: [10.x, 12.x] steps: - uses: actions/checkout@v1 diff --git a/package.json b/package.json index b0ad7d0..98c741e 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,7 @@ "eslint": ">= 5.x" }, "dependencies": { - "@octokit/rest": "^16.28.7", - "create-check": "^0.5.0", + "create-check": "^0.6.0", "eslint-formatter-pretty": "^3.0.0" }, "devDependencies": { diff --git a/src/create-check.ts b/src/create-check.ts index 76642c2..0630aff 100644 --- a/src/create-check.ts +++ b/src/create-check.ts @@ -1,6 +1,5 @@ -import createCheck from 'create-check'; +import createCheck, { Annotation } from 'create-check'; import path from 'path'; -import Octokit from '@octokit/rest'; import eslint from 'eslint'; const APP_ID = 38817; @@ -47,8 +46,8 @@ gd8URXIGc6Nk7ueWMKEZaropIg6q1J7e9qJdlzA6j1fu6vVY3qX3tA== -----END RSA PRIVATE KEY-----`; export function createAnnotations(results: eslint.CLIEngine.LintResult[]) { - const annotations: Octokit.ChecksCreateParamsOutputAnnotations[] = []; - const levels: Octokit.ChecksCreateParamsOutputAnnotations['annotation_level'][] = [ + const annotations: Annotation[] = []; + const levels: Annotation['annotation_level'][] = [ 'notice', 'warning', 'failure'