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