mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 13:57:09 +01:00
Import the GitHub type from @actions/github with file extension syntax
This improves the code compatibility with the ESM syntax. Issue #603
This commit is contained in:
parent
a6b3e93884
commit
67059baf3b
4 changed files with 4 additions and 3 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
"rules": {
|
"rules": {
|
||||||
"i18n-text/no-en": "off",
|
"i18n-text/no-en": "off",
|
||||||
"eslint-comments/no-use": "off",
|
"eslint-comments/no-use": "off",
|
||||||
|
"import/extensions": [ "error", "ignorePackages", { "ts": "never" } ],
|
||||||
"import/no-namespace": "off",
|
"import/no-namespace": "off",
|
||||||
"import/no-named-as-default": "off",
|
"import/no-named-as-default": "off",
|
||||||
"no-shadow": "off",
|
"no-shadow": "off",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import * as core from '@actions/core'
|
import * as core from '@actions/core'
|
||||||
import * as github from '@actions/github'
|
import * as github from '@actions/github'
|
||||||
import {GitHub} from '@actions/github/lib/utils'
|
import type {GitHub} from '@actions/github/lib/utils.js'
|
||||||
|
|
||||||
import Zip from 'adm-zip'
|
import Zip from 'adm-zip'
|
||||||
import picomatch from 'picomatch'
|
import picomatch from 'picomatch'
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import * as core from '@actions/core'
|
import * as core from '@actions/core'
|
||||||
import * as github from '@actions/github'
|
import * as github from '@actions/github'
|
||||||
import {GitHub} from '@actions/github/lib/utils'
|
import type {GitHub} from '@actions/github/lib/utils.js'
|
||||||
|
|
||||||
import {ArtifactProvider} from './input-providers/artifact-provider'
|
import {ArtifactProvider} from './input-providers/artifact-provider'
|
||||||
import {LocalFileProvider} from './input-providers/local-file-provider'
|
import {LocalFileProvider} from './input-providers/local-file-provider'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import {createWriteStream} from 'fs'
|
import {createWriteStream} from 'fs'
|
||||||
import * as core from '@actions/core'
|
import * as core from '@actions/core'
|
||||||
import * as github from '@actions/github'
|
import * as github from '@actions/github'
|
||||||
import {GitHub} from '@actions/github/lib/utils'
|
import type {GitHub} from '@actions/github/lib/utils.js'
|
||||||
import type {PullRequest} from '@octokit/webhooks-types'
|
import type {PullRequest} from '@octokit/webhooks-types'
|
||||||
import * as stream from 'stream'
|
import * as stream from 'stream'
|
||||||
import {promisify} from 'util'
|
import {promisify} from 'util'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue