@@ -522,6 +522,7 @@ it('Test custom changelog builder', async () => {
|
|||||||
false, // failOnError
|
false, // failOnError
|
||||||
false, // ignorePrePrelease
|
false, // ignorePrePrelease
|
||||||
true, // enable to fetch reviewers
|
true, // enable to fetch reviewers
|
||||||
|
false, // enable to fetch release information
|
||||||
false, // commitMode
|
false, // commitMode
|
||||||
configuration // configuration
|
configuration // configuration
|
||||||
)
|
)
|
||||||
|
|||||||
+186
-127
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
+1413
-1302
File diff suppressed because it is too large
Load Diff
+15
-15
@@ -32,30 +32,30 @@
|
|||||||
"author": "Mike Penz",
|
"author": "Mike Penz",
|
||||||
"license": "Apache 2.0",
|
"license": "Apache 2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.9.1",
|
"@actions/core": "^1.10.0",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^5.0.3",
|
"@actions/github": "^5.1.1",
|
||||||
"@octokit/rest": "^19.0.4",
|
"@octokit/rest": "^19.0.5",
|
||||||
"@types/semver": "^7.3.12",
|
|
||||||
"https-proxy-agent": "^5.0.1",
|
"https-proxy-agent": "^5.0.1",
|
||||||
"moment": "^2.29.4",
|
"moment": "^2.29.4",
|
||||||
"semver": "^7.3.7",
|
"semver": "^7.3.8",
|
||||||
"tunnel": "^0.0.6",
|
"tunnel": "^0.0.6",
|
||||||
"webpack": "^5.74.0"
|
"webpack": "^5.74.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^28.1.7",
|
"@types/jest": "^29.1.2",
|
||||||
"@types/node": "^18.7.6",
|
"@types/node": "^18.11.0",
|
||||||
"@typescript-eslint/parser": "^5.33.1",
|
"@types/semver": "^7.3.12",
|
||||||
|
"@typescript-eslint/parser": "^5.40.0",
|
||||||
"@vercel/ncc": "^0.34.0",
|
"@vercel/ncc": "^0.34.0",
|
||||||
"eslint": "^8.22.0",
|
"eslint": "^8.25.0",
|
||||||
"eslint-plugin-github": "^4.3.7",
|
"eslint-plugin-github": "^4.4.0",
|
||||||
"eslint-plugin-jest": "^26.8.3",
|
"eslint-plugin-jest": "^27.1.2",
|
||||||
"jest": "^28.1.3",
|
"jest": "^29.2.0",
|
||||||
"jest-circus": "^28.1.3",
|
"jest-circus": "^29.2.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"prettier": "2.7.1",
|
"prettier": "2.7.1",
|
||||||
"ts-jest": "^28.0.8",
|
"ts-jest": "^29.0.3",
|
||||||
"typescript": "^4.7.4"
|
"typescript": "^4.8.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,21 +43,29 @@ export class ReleaseNotesBuilder {
|
|||||||
core.endGroup()
|
core.endGroup()
|
||||||
|
|
||||||
// check proxy setup for GHES environments
|
// check proxy setup for GHES environments
|
||||||
let agent = undefined
|
|
||||||
const proxy = process.env.https_proxy || process.env.HTTPS_PROXY
|
const proxy = process.env.https_proxy || process.env.HTTPS_PROXY
|
||||||
if (proxy) {
|
const noProxy = process.env.no_proxy || process.env.NO_PROXY
|
||||||
agent = new HttpsProxyAgent(proxy)
|
let noProxyArray: string[] = []
|
||||||
|
if (noProxy) {
|
||||||
|
noProxyArray = noProxy.split(',')
|
||||||
}
|
}
|
||||||
|
|
||||||
// load octokit instance
|
// load octokit instance
|
||||||
const octokit = new Octokit({
|
const octokit = new Octokit({
|
||||||
auth: `token ${this.token || process.env.GITHUB_TOKEN}`,
|
auth: `token ${this.token || process.env.GITHUB_TOKEN}`,
|
||||||
baseUrl: `${this.baseUrl || 'https://api.github.com'}`,
|
baseUrl: `${this.baseUrl || 'https://api.github.com'}`
|
||||||
request: {
|
|
||||||
agent
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (proxy) {
|
||||||
|
const agent = new HttpsProxyAgent(proxy)
|
||||||
|
octokit.hook.before('request', options => {
|
||||||
|
if (noProxyArray.includes(options.request.hostname)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
options.request.agent = agent
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// ensure proper from <-> to tag range
|
// ensure proper from <-> to tag range
|
||||||
core.startGroup(`🔖 Resolve tags`)
|
core.startGroup(`🔖 Resolve tags`)
|
||||||
const tagsApi = new Tags(octokit)
|
const tagsApi = new Tags(octokit)
|
||||||
|
|||||||
Reference in New Issue
Block a user