diff --git a/src/configuration.ts b/src/configuration.ts index 46dc7f6..f80050e 100644 --- a/src/configuration.ts +++ b/src/configuration.ts @@ -1,5 +1,4 @@ -import {Extractor, Regex, Rule, Sort, Transformer} from 'github-pr-collector/lib/configuration' -import {PullConfiguration} from 'github-pr-collector/lib/types' +import {Rule, Extractor, Regex, Transformer, Sort, PullConfiguration} from 'github-pr-collector/lib/types' export interface Configuration extends PullConfiguration { max_tags_to_fetch: number diff --git a/src/regexUtils.ts b/src/regexUtils.ts index fded1d9..2d0c932 100644 --- a/src/regexUtils.ts +++ b/src/regexUtils.ts @@ -1,8 +1,7 @@ import * as core from '@actions/core' -import {Rule} from 'github-pr-collector/lib/configuration' +import {Rule, RegexTransformer} from 'github-pr-collector/lib/types' import {PullRequestInfo, retrieveProperty} from 'github-pr-collector/lib/pullRequests' import {validateTransformer} from 'github-pr-collector/lib/regexUtils' -import {RegexTransformer} from 'github-pr-collector/lib/types' /** * Checks if any of the rules match the given PR diff --git a/src/transform.ts b/src/transform.ts index 9b73874..7000a61 100644 --- a/src/transform.ts +++ b/src/transform.ts @@ -4,10 +4,9 @@ import {createOrSet, haveCommonElementsArr, haveEveryElementsArr} from './utils' import {CommentInfo, EMPTY_COMMENT_INFO, PullRequestInfo, retrieveProperty, sortPullRequests} from 'github-pr-collector/lib/pullRequests' import {DiffInfo} from 'github-pr-collector/lib/commits' import {validateTransformer} from 'github-pr-collector/lib/regexUtils' -import {Transformer} from 'github-pr-collector/lib/configuration' +import {Transformer, RegexTransformer} from 'github-pr-collector/lib/types' import {ReleaseNotesOptions} from './releaseNotesBuilder' import {matchesRules} from './regexUtils' -import {RegexTransformer} from 'github-pr-collector/lib/types' const EMPTY_MAP = new Map()