Skip to content
This repository was archived by the owner on May 15, 2021. It is now read-only.

Commit f53fa3a

Browse files
chore: use type import
1 parent 0fda440 commit f53fa3a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/process.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import {Context} from '@actions/github/lib/context';
2-
import {Octokit} from '@technote-space/github-action-helper/dist/types';
3-
import {Logger} from '@technote-space/github-action-log-helper';
1+
import type {Context} from '@actions/github/lib/context';
2+
import type {Octokit} from '@technote-space/github-action-helper/dist/types';
3+
import type {Logger} from '@technote-space/github-action-log-helper';
44
import {setOutput} from '@actions/core';
55
import {Utils} from '@technote-space/github-action-helper';
66
import {getTargetRunId, isExcludeContext, isConsiderReRun, getIntervalMs, getFilteredRun} from './utils/misc';

src/utils/misc.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import type {components} from '@octokit/openapi-types';
2+
import type {Context} from '@actions/github/lib/context';
13
import {getInput} from '@actions/core';
2-
import {Context} from '@actions/github/lib/context';
34
import {ContextHelper, Utils} from '@technote-space/github-action-helper';
4-
import {components} from '@octokit/openapi-types';
55
import {SHOW_PROPERTIES} from '../constant';
66

77
type ActionsListWorkflowRunsResponseData = components['schemas']['workflow-run'];

src/utils/workflow.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import {Context} from '@actions/github/lib/context';
2-
import {Octokit} from '@technote-space/github-action-helper/dist/types';
3-
import {Logger} from '@technote-space/github-action-log-helper';
1+
import type {PaginateInterface} from '@octokit/plugin-paginate-rest';
2+
import type {Octokit} from '@technote-space/github-action-helper/dist/types';
3+
import type {Context} from '@actions/github/lib/context';
4+
import type {Logger} from '@technote-space/github-action-log-helper';
5+
import type {components} from '@octokit/openapi-types';
46
import {Utils} from '@technote-space/github-action-helper';
5-
import {PaginateInterface} from '@octokit/plugin-paginate-rest';
67
import {RestEndpointMethods} from '@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types';
7-
import {components} from '@octokit/openapi-types';
88
import {getTargetBranch, isNotExcludeRun} from './misc';
99

1010
type ActionsGetWorkflowRunResponseData = components['schemas']['workflow-run'];

0 commit comments

Comments
 (0)