- drop github prefix of pr-collector
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {mergeConfiguration, resolveConfiguration} from '../src/utils'
|
||||
import {Octokit} from '@octokit/rest'
|
||||
import {buildChangelog} from '../src/transform'
|
||||
import {pullData} from 'github-pr-collector'
|
||||
import {pullData} from 'pr-collector'
|
||||
import fetch from 'node-fetch'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {TagInfo, filterTags, prepareAndSortTags} from 'github-pr-collector/lib/tags'
|
||||
import {TagInfo, filterTags, prepareAndSortTags} from 'pr-collector/lib/tags'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {buildChangelog} from '../src/transform'
|
||||
import moment from 'moment'
|
||||
import {Configuration, DefaultConfiguration} from '../src/configuration'
|
||||
import {PullRequestInfo} from 'github-pr-collector/lib/pullRequests'
|
||||
import {DefaultDiffInfo} from 'github-pr-collector/lib/commits'
|
||||
import {PullRequestInfo} from 'pr-collector/lib/pullRequests'
|
||||
import {DefaultDiffInfo} from 'pr-collector/lib/commits'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
|
||||
|
||||
+9760
-25074
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Generated
+5
-5
@@ -13,7 +13,7 @@
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^5.1.1",
|
||||
"@octokit/rest": "^20.0.1",
|
||||
"github-pr-collector": "file:pr-collector"
|
||||
"pr-collector": "file:pr-collector"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^29.5.3",
|
||||
@@ -3940,10 +3940,6 @@
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/github-pr-collector": {
|
||||
"resolved": "pr-collector",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/glob": {
|
||||
"version": "7.2.3",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
|
||||
@@ -5948,6 +5944,10 @@
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/pr-collector": {
|
||||
"resolved": "pr-collector",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/prelude-ls": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^5.1.1",
|
||||
"@octokit/rest": "^20.0.1",
|
||||
"github-pr-collector": "file:pr-collector"
|
||||
"pr-collector": "file:pr-collector"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^29.5.3",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Rule, Extractor, Regex, Transformer, Sort, PullConfiguration} from 'github-pr-collector/lib/types'
|
||||
import {Rule, Extractor, Regex, Transformer, Sort, PullConfiguration} from 'pr-collector/lib/types'
|
||||
|
||||
export interface Configuration extends PullConfiguration {
|
||||
max_tags_to_fetch: number
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
import * as core from '@actions/core'
|
||||
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 {Rule, RegexTransformer} from 'pr-collector/lib/types'
|
||||
import {PullRequestInfo, retrieveProperty} from 'pr-collector/lib/pullRequests'
|
||||
import {validateTransformer} from 'pr-collector/lib/regexUtils'
|
||||
|
||||
/**
|
||||
* Checks if any of the rules match the given PR
|
||||
|
||||
@@ -2,11 +2,11 @@ import * as core from '@actions/core'
|
||||
import {Configuration} from './configuration'
|
||||
import {checkExportedData} from './utils'
|
||||
import {PullRequestData, buildChangelog} from './transform'
|
||||
import {PullRequestCollector} from 'github-pr-collector'
|
||||
import {failOrError} from 'github-pr-collector/lib/utils'
|
||||
import {TagInfo} from 'github-pr-collector/lib/tags'
|
||||
import {DiffInfo} from 'github-pr-collector/lib/commits'
|
||||
import {PullRequestInfo} from 'github-pr-collector/lib/pullRequests'
|
||||
import {PullRequestCollector} from 'pr-collector'
|
||||
import {failOrError} from 'pr-collector/lib/utils'
|
||||
import {TagInfo} from 'pr-collector/lib/tags'
|
||||
import {DiffInfo} from 'pr-collector/lib/commits'
|
||||
import {PullRequestInfo} from 'pr-collector/lib/pullRequests'
|
||||
|
||||
export interface ReleaseNotesOptions {
|
||||
owner: string // the owner of the repository
|
||||
|
||||
+4
-4
@@ -8,10 +8,10 @@ import {
|
||||
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, RegexTransformer} from 'github-pr-collector/lib/types'
|
||||
} from 'pr-collector/lib/pullRequests'
|
||||
import {DiffInfo} from 'pr-collector/lib/commits'
|
||||
import {validateTransformer} from 'pr-collector/lib/regexUtils'
|
||||
import {Transformer, RegexTransformer} from 'pr-collector/lib/types'
|
||||
import {ReleaseNotesOptions} from './releaseNotesBuilder'
|
||||
import {matchesRules} from './regexUtils'
|
||||
|
||||
|
||||
+2
-2
@@ -3,8 +3,8 @@ import * as fs from 'fs'
|
||||
import * as path from 'path'
|
||||
import {Configuration, DefaultConfiguration} from './configuration'
|
||||
import moment from 'moment'
|
||||
import {DiffInfo} from 'github-pr-collector/lib/commits'
|
||||
import {PullRequestInfo} from 'github-pr-collector/lib/pullRequests'
|
||||
import {DiffInfo} from 'pr-collector/lib/commits'
|
||||
import {PullRequestInfo} from 'pr-collector/lib/pullRequests'
|
||||
import {Data, ReleaseNotesOptions} from './releaseNotesBuilder'
|
||||
/**
|
||||
* Resolves the repository path, relatively to the GITHUB_WORKSPACE
|
||||
|
||||
Reference in New Issue
Block a user