Skip to content

Commit 4d42794

Browse files
chore: use type import
1 parent 167e79d commit 4d42794

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/utils/commit.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import type { Commit, ParentCommitMessage } from '../types';
2+
import type { Context } from '@actions/github/lib/context';
3+
import type { components } from '@octokit/openapi-types';
14
import type { Types } from '@technote-space/github-action-helper';
2-
import { Context } from '@actions/github/lib/context';
3-
import { components } from '@octokit/openapi-types';
45
import { Utils } from '@technote-space/github-action-helper';
56
import { MERGE_MESSAGE_PATTERN } from '../constant';
6-
import { Commit, ParentCommitMessage } from '../types';
77
import { parseCommitMessage } from './misc';
88

99
type PullsListCommitsResponseData = components['schemas']['commit'];

src/utils/misc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Logger } from '@technote-space/github-action-log-helper';
1+
import type { ParentCommitMessage, ChildCommitMessage } from '../types';
2+
import type { Logger } from '@technote-space/github-action-log-helper';
23
import { SEMANTIC_MESSAGE_PATTERN } from '../constant';
3-
import { ParentCommitMessage, ChildCommitMessage } from '../types';
44

55
export const parseLine = (message: string): ChildCommitMessage | undefined => {
66
const trim = message.trim();

src/utils/version.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { Context } from '@actions/github/lib/context';
2-
import { Utils, ApiHelper, Types } from '@technote-space/github-action-helper';
3-
import { Logger } from '@technote-space/github-action-log-helper';
1+
import type { Commit } from '../types';
2+
import type { Context } from '@actions/github/lib/context';
3+
import type { ApiHelper, Types } from '@technote-space/github-action-helper';
4+
import type { Logger } from '@technote-space/github-action-log-helper';
5+
import { Utils } from '@technote-space/github-action-helper';
46
import { VERSION_BUMP } from '../constant';
5-
import { Commit } from '../types';
67
import { getCommits } from './commit';
78
import { log } from './misc';
89

0 commit comments

Comments
 (0)