mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-13 21:21:37 +02:00
chore: build dist release-please-action (#96)
This commit is contained in:
committed by
GitHub
parent
6461ef3326
commit
074f0f68f9
389
dist/index.js
vendored
389
dist/index.js
vendored
@@ -4790,19 +4790,19 @@ function createPatch(fileName, oldStr, newStr, oldHeader, newHeader, options) {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
var dateFormat = __webpack_require__(701)
|
const dateFormat = __webpack_require__(701)
|
||||||
var join = __webpack_require__(622).join
|
const join = __webpack_require__(622).join
|
||||||
var readFileSync = __webpack_require__(747).readFileSync
|
const readFileSync = __webpack_require__(747).readFileSync
|
||||||
var semverValid = __webpack_require__(927).valid
|
const semverValid = __webpack_require__(927).valid
|
||||||
var through = __webpack_require__(576)
|
const through = __webpack_require__(576)
|
||||||
var util = __webpack_require__(985)
|
const util = __webpack_require__(985)
|
||||||
var _ = __webpack_require__(288)
|
const _ = __webpack_require__(288)
|
||||||
|
|
||||||
function conventionalChangelogWriter (context, options) {
|
function conventionalChangelogWriter (context, options) {
|
||||||
var savedKeyCommit
|
let savedKeyCommit
|
||||||
var commits = []
|
let commits = []
|
||||||
var firstRelease = true
|
let firstRelease = true
|
||||||
var neverGenerated = true
|
let neverGenerated = true
|
||||||
|
|
||||||
context = _.extend({
|
context = _.extend({
|
||||||
commit: 'commits',
|
commit: 'commits',
|
||||||
@@ -4856,7 +4856,7 @@ function conventionalChangelogWriter (context, options) {
|
|||||||
}, options.transform)
|
}, options.transform)
|
||||||
}
|
}
|
||||||
|
|
||||||
var generateOn = options.generateOn
|
let generateOn = options.generateOn
|
||||||
if (_.isString(generateOn)) {
|
if (_.isString(generateOn)) {
|
||||||
generateOn = function (commit) {
|
generateOn = function (commit) {
|
||||||
return !_.isUndefined(commit[options.generateOn])
|
return !_.isUndefined(commit[options.generateOn])
|
||||||
@@ -4874,9 +4874,9 @@ function conventionalChangelogWriter (context, options) {
|
|||||||
|
|
||||||
return through.obj(function (chunk, enc, cb) {
|
return through.obj(function (chunk, enc, cb) {
|
||||||
try {
|
try {
|
||||||
var result
|
let result
|
||||||
var commit = util.processCommit(chunk, options.transform, context)
|
const commit = util.processCommit(chunk, options.transform, context)
|
||||||
var keyCommit = commit || chunk
|
const keyCommit = commit || chunk
|
||||||
|
|
||||||
// previous blocks of logs
|
// previous blocks of logs
|
||||||
if (options.reverse) {
|
if (options.reverse) {
|
||||||
@@ -4935,7 +4935,7 @@ function conventionalChangelogWriter (context, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var result = util.generate(options, commits, context, savedKeyCommit)
|
const result = util.generate(options, commits, context, savedKeyCommit)
|
||||||
|
|
||||||
if (options.includeDetails) {
|
if (options.includeDetails) {
|
||||||
this.push({
|
this.push({
|
||||||
@@ -5792,7 +5792,7 @@ module.exports = require("vm");
|
|||||||
/* 191 */
|
/* 191 */
|
||||||
/***/ (function(module) {
|
/***/ (function(module) {
|
||||||
|
|
||||||
module.exports = {"_args":[["release-please@6.6.0","/home/runner/work/release-please-action/release-please-action"]],"_from":"release-please@6.6.0","_id":"release-please@6.6.0","_inBundle":false,"_integrity":"sha512-Ajki4AnAfZBOXA+JKg0jT8kRPSWcHTeYhfEGi6rOdmwyts80pRmLfUFmYkOp1hjFY6zrm/AZzMfi1C83sbw43Q==","_location":"/release-please","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"release-please@6.6.0","name":"release-please","escapedName":"release-please","rawSpec":"6.6.0","saveSpec":null,"fetchSpec":"6.6.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/release-please/-/release-please-6.6.0.tgz","_spec":"6.6.0","_where":"/home/runner/work/release-please-action/release-please-action","author":{"name":"Google Inc."},"bin":{"release-please":"build/src/bin/release-please.js"},"bugs":{"url":"https://github.com/googleapis/release-please/issues"},"dependencies":{"@octokit/graphql":"^4.3.1","@octokit/request":"^5.3.4","@octokit/rest":"^18.0.4","chalk":"^4.0.0","code-suggester":"^1.4.0","concat-stream":"^2.0.0","conventional-changelog-conventionalcommits":"^4.4.0","conventional-changelog-writer":"^4.0.6","conventional-commits-filter":"^2.0.2","conventional-commits-parser":"^3.0.3","figures":"^3.0.0","parse-github-repo-url":"^1.4.1","semver":"^7.0.0","type-fest":"^0.18.0","yargs":"^16.0.0"},"description":"generate release PRs based on the conventionalcommits.org spec","devDependencies":{"@microsoft/api-documenter":"^7.8.10","@microsoft/api-extractor":"^7.8.10","@octokit/types":"^5.0.0","@types/chai":"^4.1.7","@types/mocha":"^8.0.0","@types/node":"^11.13.6","@types/pino":"^6.3.0","@types/semver":"^7.0.0","@types/sinon":"^9.0.5","@types/yargs":"^15.0.4","c8":"^7.0.0","chai":"^4.2.0","cross-env":"^7.0.0","gts":"^2.0.0","mocha":"^8.0.0","nock":"^13.0.0","sinon":"^9.0.3","snap-shot-it":"^7.0.0","typescript":"^3.8.3"},"engines":{"node":">=10.12.0"},"files":["build/src","templates","!build/src/**/*.map"],"homepage":"https://github.com/googleapis/release-please#readme","keywords":["release","conventional-commits"],"license":"Apache-2.0","main":"./build/src/index.js","name":"release-please","repository":{"type":"git","url":"git+https://github.com/googleapis/release-please.git"},"scripts":{"api-documenter":"api-documenter yaml --input-folder=temp","api-extractor":"api-extractor run --local","clean":"gts clean","compile":"tsc -p .","docs-test":"echo add docs tests","fix":"gts fix","lint":"gts check","prepare":"npm run compile","presystem-test":"npm run compile","pretest":"npm run compile","system-test":"echo 'no system tests'","test":"cross-env ENVIRONMENT=test c8 mocha --recursive --timeout=5000 build/test","test:all":"cross-env ENVIRONMENT=test c8 mocha --recursive --timeout=20000 build/system-test build/test","test:snap":"SNAPSHOT_UPDATE=1 npm test"},"version":"6.6.0"};
|
module.exports = {"_args":[["release-please@6.7.0","/home/runner/work/release-please-action/release-please-action"]],"_from":"release-please@6.7.0","_id":"release-please@6.7.0","_inBundle":false,"_integrity":"sha512-MugP1gM0U8hqxupqxpYoeemy3nTj5ZYcHKfG7DxSl46E2Scr6jmFRSa+ki/goqUqxPJgWhBe0c6PaT3u3IZKcQ==","_location":"/release-please","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"release-please@6.7.0","name":"release-please","escapedName":"release-please","rawSpec":"6.7.0","saveSpec":null,"fetchSpec":"6.7.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/release-please/-/release-please-6.7.0.tgz","_spec":"6.7.0","_where":"/home/runner/work/release-please-action/release-please-action","author":{"name":"Google Inc."},"bin":{"release-please":"build/src/bin/release-please.js"},"bugs":{"url":"https://github.com/googleapis/release-please/issues"},"dependencies":{"@octokit/graphql":"^4.3.1","@octokit/request":"^5.3.4","@octokit/rest":"^18.0.4","chalk":"^4.0.0","code-suggester":"^1.4.0","concat-stream":"^2.0.0","conventional-changelog-conventionalcommits":"^4.4.0","conventional-changelog-writer":"^4.0.6","conventional-commits-filter":"^2.0.2","conventional-commits-parser":"^3.0.3","figures":"^3.0.0","parse-github-repo-url":"^1.4.1","semver":"^7.0.0","type-fest":"^0.18.0","yargs":"^16.0.0"},"description":"generate release PRs based on the conventionalcommits.org spec","devDependencies":{"@microsoft/api-documenter":"^7.8.10","@microsoft/api-extractor":"^7.8.10","@octokit/types":"^5.0.0","@types/chai":"^4.1.7","@types/mocha":"^8.0.0","@types/node":"^11.13.6","@types/pino":"^6.3.0","@types/semver":"^7.0.0","@types/sinon":"^9.0.5","@types/yargs":"^15.0.4","c8":"^7.0.0","chai":"^4.2.0","cross-env":"^7.0.0","gts":"^2.0.0","mocha":"^8.0.0","nock":"^13.0.0","sinon":"^9.0.3","snap-shot-it":"^7.0.0","typescript":"^3.8.3"},"engines":{"node":">=10.12.0"},"files":["build/src","templates","!build/src/**/*.map"],"homepage":"https://github.com/googleapis/release-please#readme","keywords":["release","conventional-commits"],"license":"Apache-2.0","main":"./build/src/index.js","name":"release-please","repository":{"type":"git","url":"git+https://github.com/googleapis/release-please.git"},"scripts":{"api-documenter":"api-documenter yaml --input-folder=temp","api-extractor":"api-extractor run --local","clean":"gts clean","compile":"tsc -p .","docs-test":"echo add docs tests","fix":"gts fix","lint":"gts check","prepare":"npm run compile","presystem-test":"npm run compile","pretest":"npm run compile","system-test":"echo 'no system tests'","test":"cross-env ENVIRONMENT=test c8 mocha --recursive --timeout=5000 build/test","test:all":"cross-env ENVIRONMENT=test c8 mocha --recursive --timeout=20000 build/system-test build/test","test:snap":"SNAPSHOT_UPDATE=1 npm test"},"version":"6.7.0"};
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 192 */,
|
/* 192 */,
|
||||||
@@ -28120,7 +28120,7 @@ module.exports = eq
|
|||||||
|
|
||||||
Object.defineProperty(exports, '__esModule', { value: true });
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||||||
|
|
||||||
const VERSION = "2.4.0";
|
const VERSION = "2.6.0";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Some “list” response that can be paginated have a different response structure
|
* Some “list” response that can be paginated have a different response structure
|
||||||
@@ -28173,26 +28173,23 @@ function iterator(octokit, route, parameters) {
|
|||||||
let url = options.url;
|
let url = options.url;
|
||||||
return {
|
return {
|
||||||
[Symbol.asyncIterator]: () => ({
|
[Symbol.asyncIterator]: () => ({
|
||||||
next() {
|
async next() {
|
||||||
if (!url) {
|
if (!url) return {
|
||||||
return Promise.resolve({
|
done: true
|
||||||
done: true
|
};
|
||||||
});
|
const response = await requestMethod({
|
||||||
}
|
|
||||||
|
|
||||||
return requestMethod({
|
|
||||||
method,
|
method,
|
||||||
url,
|
url,
|
||||||
headers
|
headers
|
||||||
}).then(normalizePaginatedListResponse).then(response => {
|
|
||||||
// `response.headers.link` format:
|
|
||||||
// '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
|
|
||||||
// sets `url` to undefined if "next" URL is not present or `link` header is not set
|
|
||||||
url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
|
|
||||||
return {
|
|
||||||
value: response
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
const normalizedResponse = normalizePaginatedListResponse(response); // `response.headers.link` format:
|
||||||
|
// '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
|
||||||
|
// sets `url` to undefined if "next" URL is not present or `link` header is not set
|
||||||
|
|
||||||
|
url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
|
||||||
|
return {
|
||||||
|
value: normalizedResponse
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -28230,6 +28227,10 @@ function gather(octokit, results, iterator, mapFn) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const composePaginateRest = Object.assign(paginate, {
|
||||||
|
iterator
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param octokit Octokit instance
|
* @param octokit Octokit instance
|
||||||
* @param options Options passed to Octokit constructor
|
* @param options Options passed to Octokit constructor
|
||||||
@@ -28244,6 +28245,7 @@ function paginateRest(octokit) {
|
|||||||
}
|
}
|
||||||
paginateRest.VERSION = VERSION;
|
paginateRest.VERSION = VERSION;
|
||||||
|
|
||||||
|
exports.composePaginateRest = composePaginateRest;
|
||||||
exports.paginateRest = paginateRest;
|
exports.paginateRest = paginateRest;
|
||||||
//# sourceMappingURL=index.js.map
|
//# sourceMappingURL=index.js.map
|
||||||
|
|
||||||
@@ -28259,8 +28261,8 @@ exports.paginateRest = paginateRest;
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
var isMatch = __webpack_require__(561)
|
const isMatch = __webpack_require__(561)
|
||||||
var modifyValues = __webpack_require__(513)
|
const modifyValues = __webpack_require__(513)
|
||||||
|
|
||||||
function modifyValue (val) {
|
function modifyValue (val) {
|
||||||
if (typeof val === 'string') {
|
if (typeof val === 'string') {
|
||||||
@@ -28275,9 +28277,9 @@ function conventionalCommitsFilter (commits) {
|
|||||||
throw new TypeError('Expected an array')
|
throw new TypeError('Expected an array')
|
||||||
}
|
}
|
||||||
|
|
||||||
var ret = []
|
let ret = []
|
||||||
var ignores = []
|
const ignores = []
|
||||||
var remove = []
|
const remove = []
|
||||||
commits.forEach(function (commit) {
|
commits.forEach(function (commit) {
|
||||||
if (commit.revert) {
|
if (commit.revert) {
|
||||||
ignores.push(commit)
|
ignores.push(commit)
|
||||||
@@ -28288,12 +28290,12 @@ function conventionalCommitsFilter (commits) {
|
|||||||
|
|
||||||
// Filter out reverted commits
|
// Filter out reverted commits
|
||||||
ret = ret.filter(function (commit) {
|
ret = ret.filter(function (commit) {
|
||||||
var ignoreThis = false
|
let ignoreThis = false
|
||||||
|
|
||||||
commit = commit.raw ? modifyValues(commit.raw, modifyValue) : modifyValues(commit, modifyValue)
|
commit = commit.raw ? modifyValues(commit.raw, modifyValue) : modifyValues(commit, modifyValue)
|
||||||
|
|
||||||
ignores.some(function (ignoreCommit) {
|
ignores.some(function (ignoreCommit) {
|
||||||
var ignore = modifyValues(ignoreCommit.revert, modifyValue)
|
const ignore = modifyValues(ignoreCommit.revert, modifyValue)
|
||||||
|
|
||||||
ignoreThis = isMatch(commit, ignore)
|
ignoreThis = isMatch(commit, ignore)
|
||||||
|
|
||||||
@@ -29183,11 +29185,11 @@ function packF32(v) { return packIEEE754(v, 8, 23); }
|
|||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var trimOffNewlines = __webpack_require__(582)
|
const trimOffNewlines = __webpack_require__(582)
|
||||||
var _ = __webpack_require__(288)
|
const _ = __webpack_require__(288)
|
||||||
|
|
||||||
var CATCH_ALL = /()(.+)/gi
|
const CATCH_ALL = /()(.+)/gi
|
||||||
var SCISSOR = '# ------------------------ >8 ------------------------'
|
const SCISSOR = '# ------------------------ >8 ------------------------'
|
||||||
|
|
||||||
function append (src, line) {
|
function append (src, line) {
|
||||||
if (src) {
|
if (src) {
|
||||||
@@ -29206,7 +29208,7 @@ function getCommentFilter (char) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function truncateToScissor (lines) {
|
function truncateToScissor (lines) {
|
||||||
var scissorIndex = lines.indexOf(SCISSOR)
|
const scissorIndex = lines.indexOf(SCISSOR)
|
||||||
|
|
||||||
if (scissorIndex === -1) {
|
if (scissorIndex === -1) {
|
||||||
return lines
|
return lines
|
||||||
@@ -29216,29 +29218,29 @@ function truncateToScissor (lines) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getReferences (input, regex) {
|
function getReferences (input, regex) {
|
||||||
var references = []
|
const references = []
|
||||||
var referenceSentences
|
let referenceSentences
|
||||||
var referenceMatch
|
let referenceMatch
|
||||||
|
|
||||||
var reApplicable = input.match(regex.references) !== null
|
const reApplicable = input.match(regex.references) !== null
|
||||||
? regex.references
|
? regex.references
|
||||||
: CATCH_ALL
|
: CATCH_ALL
|
||||||
|
|
||||||
while ((referenceSentences = reApplicable.exec(input))) {
|
while ((referenceSentences = reApplicable.exec(input))) {
|
||||||
var action = referenceSentences[1] || null
|
const action = referenceSentences[1] || null
|
||||||
var sentence = referenceSentences[2]
|
const sentence = referenceSentences[2]
|
||||||
|
|
||||||
while ((referenceMatch = regex.referenceParts.exec(sentence))) {
|
while ((referenceMatch = regex.referenceParts.exec(sentence))) {
|
||||||
var owner = null
|
let owner = null
|
||||||
var repository = referenceMatch[1] || ''
|
let repository = referenceMatch[1] || ''
|
||||||
var ownerRepo = repository.split('/')
|
const ownerRepo = repository.split('/')
|
||||||
|
|
||||||
if (ownerRepo.length > 1) {
|
if (ownerRepo.length > 1) {
|
||||||
owner = ownerRepo.shift()
|
owner = ownerRepo.shift()
|
||||||
repository = ownerRepo.join('/')
|
repository = ownerRepo.join('/')
|
||||||
}
|
}
|
||||||
|
|
||||||
var reference = {
|
const reference = {
|
||||||
action: action,
|
action: action,
|
||||||
owner: owner,
|
owner: owner,
|
||||||
repository: repository || null,
|
repository: repository || null,
|
||||||
@@ -29271,39 +29273,37 @@ function parser (raw, options, regex) {
|
|||||||
throw new TypeError('Expected regex')
|
throw new TypeError('Expected regex')
|
||||||
}
|
}
|
||||||
|
|
||||||
var headerMatch
|
let currentProcessedField
|
||||||
var mergeMatch
|
let mentionsMatch
|
||||||
var currentProcessedField
|
const otherFields = {}
|
||||||
var mentionsMatch
|
const commentFilter = typeof options.commentChar === 'string'
|
||||||
var revertMatch
|
|
||||||
var otherFields = {}
|
|
||||||
var commentFilter = typeof options.commentChar === 'string'
|
|
||||||
? getCommentFilter(options.commentChar)
|
? getCommentFilter(options.commentChar)
|
||||||
: passTrough
|
: passTrough
|
||||||
|
const gpgFilter = line => !line.match(/^\s*gpg:/)
|
||||||
|
|
||||||
var rawLines = trimOffNewlines(raw).split(/\r?\n/)
|
const rawLines = trimOffNewlines(raw).split(/\r?\n/)
|
||||||
var lines = truncateToScissor(rawLines).filter(commentFilter)
|
const lines = truncateToScissor(rawLines).filter(commentFilter).filter(gpgFilter)
|
||||||
|
|
||||||
var continueNote = false
|
let continueNote = false
|
||||||
var isBody = true
|
let isBody = true
|
||||||
var headerCorrespondence = _.map(options.headerCorrespondence, function (part) {
|
const headerCorrespondence = _.map(options.headerCorrespondence, function (part) {
|
||||||
return part.trim()
|
return part.trim()
|
||||||
})
|
})
|
||||||
var revertCorrespondence = _.map(options.revertCorrespondence, function (field) {
|
const revertCorrespondence = _.map(options.revertCorrespondence, function (field) {
|
||||||
return field.trim()
|
return field.trim()
|
||||||
})
|
})
|
||||||
var mergeCorrespondence = _.map(options.mergeCorrespondence, function (field) {
|
const mergeCorrespondence = _.map(options.mergeCorrespondence, function (field) {
|
||||||
return field.trim()
|
return field.trim()
|
||||||
})
|
})
|
||||||
|
|
||||||
var body = null
|
let body = null
|
||||||
var footer = null
|
let footer = null
|
||||||
var header = null
|
let header = null
|
||||||
var mentions = []
|
const mentions = []
|
||||||
var merge = null
|
let merge = null
|
||||||
var notes = []
|
const notes = []
|
||||||
var references = []
|
const references = []
|
||||||
var revert = null
|
let revert = null
|
||||||
|
|
||||||
if (lines.length === 0) {
|
if (lines.length === 0) {
|
||||||
return {
|
return {
|
||||||
@@ -29323,12 +29323,12 @@ function parser (raw, options, regex) {
|
|||||||
|
|
||||||
// msg parts
|
// msg parts
|
||||||
merge = lines.shift()
|
merge = lines.shift()
|
||||||
var mergeParts = {}
|
const mergeParts = {}
|
||||||
var headerParts = {}
|
const headerParts = {}
|
||||||
body = ''
|
body = ''
|
||||||
footer = ''
|
footer = ''
|
||||||
|
|
||||||
mergeMatch = merge.match(options.mergePattern)
|
const mergeMatch = merge.match(options.mergePattern)
|
||||||
if (mergeMatch && options.mergePattern) {
|
if (mergeMatch && options.mergePattern) {
|
||||||
merge = mergeMatch[0]
|
merge = mergeMatch[0]
|
||||||
|
|
||||||
@@ -29338,7 +29338,7 @@ function parser (raw, options, regex) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_.forEach(mergeCorrespondence, function (partName, index) {
|
_.forEach(mergeCorrespondence, function (partName, index) {
|
||||||
var partValue = mergeMatch[index + 1] || null
|
const partValue = mergeMatch[index + 1] || null
|
||||||
mergeParts[partName] = partValue
|
mergeParts[partName] = partValue
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -29350,10 +29350,10 @@ function parser (raw, options, regex) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
headerMatch = header.match(options.headerPattern)
|
const headerMatch = header.match(options.headerPattern)
|
||||||
if (headerMatch) {
|
if (headerMatch) {
|
||||||
_.forEach(headerCorrespondence, function (partName, index) {
|
_.forEach(headerCorrespondence, function (partName, index) {
|
||||||
var partValue = headerMatch[index + 1] || null
|
const partValue = headerMatch[index + 1] || null
|
||||||
headerParts[partName] = partValue
|
headerParts[partName] = partValue
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -29370,7 +29370,7 @@ function parser (raw, options, regex) {
|
|||||||
// body or footer
|
// body or footer
|
||||||
_.forEach(lines, function (line) {
|
_.forEach(lines, function (line) {
|
||||||
if (options.fieldPattern) {
|
if (options.fieldPattern) {
|
||||||
var fieldMatch = options.fieldPattern.exec(line)
|
const fieldMatch = options.fieldPattern.exec(line)
|
||||||
|
|
||||||
if (fieldMatch) {
|
if (fieldMatch) {
|
||||||
currentProcessedField = fieldMatch[1]
|
currentProcessedField = fieldMatch[1]
|
||||||
@@ -29385,16 +29385,16 @@ function parser (raw, options, regex) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var referenceMatched
|
let referenceMatched
|
||||||
|
|
||||||
// this is a new important note
|
// this is a new important note
|
||||||
var notesMatch = line.match(regex.notes)
|
const notesMatch = line.match(regex.notes)
|
||||||
if (notesMatch) {
|
if (notesMatch) {
|
||||||
continueNote = true
|
continueNote = true
|
||||||
isBody = false
|
isBody = false
|
||||||
footer = append(footer, line)
|
footer = append(footer, line)
|
||||||
|
|
||||||
var note = {
|
const note = {
|
||||||
title: notesMatch[1],
|
title: notesMatch[1],
|
||||||
text: notesMatch[2]
|
text: notesMatch[2]
|
||||||
}
|
}
|
||||||
@@ -29404,7 +29404,7 @@ function parser (raw, options, regex) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var lineReferences = getReferences(line, {
|
const lineReferences = getReferences(line, {
|
||||||
references: regex.references,
|
references: regex.references,
|
||||||
referenceParts: regex.referenceParts
|
referenceParts: regex.referenceParts
|
||||||
})
|
})
|
||||||
@@ -29438,7 +29438,7 @@ function parser (raw, options, regex) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (options.breakingHeaderPattern && notes.length === 0) {
|
if (options.breakingHeaderPattern && notes.length === 0) {
|
||||||
var breakingHeader = header.match(options.breakingHeaderPattern)
|
const breakingHeader = header.match(options.breakingHeaderPattern)
|
||||||
if (breakingHeader) {
|
if (breakingHeader) {
|
||||||
const noteText = breakingHeader[3] // the description of the change.
|
const noteText = breakingHeader[3] // the description of the change.
|
||||||
notes.push({
|
notes.push({
|
||||||
@@ -29453,11 +29453,11 @@ function parser (raw, options, regex) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// does this commit revert any other commit?
|
// does this commit revert any other commit?
|
||||||
revertMatch = raw.match(options.revertPattern)
|
const revertMatch = raw.match(options.revertPattern)
|
||||||
if (revertMatch) {
|
if (revertMatch) {
|
||||||
revert = {}
|
revert = {}
|
||||||
_.forEach(revertCorrespondence, function (partName, index) {
|
_.forEach(revertCorrespondence, function (partName, index) {
|
||||||
var partValue = revertMatch[index + 1] || null
|
const partValue = revertMatch[index + 1] || null
|
||||||
revert[partName] = partValue
|
revert[partName] = partValue
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -29470,7 +29470,7 @@ function parser (raw, options, regex) {
|
|||||||
return note
|
return note
|
||||||
})
|
})
|
||||||
|
|
||||||
var msg = _.merge(headerParts, mergeParts, {
|
const msg = _.merge(headerParts, mergeParts, {
|
||||||
merge: merge,
|
merge: merge,
|
||||||
header: header,
|
header: header,
|
||||||
body: body ? trimOffNewlines(body) : null,
|
body: body ? trimOffNewlines(body) : null,
|
||||||
@@ -31601,7 +31601,7 @@ function withDefaults(oldDefaults, newDefaults) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const VERSION = "6.0.8";
|
const VERSION = "6.0.9";
|
||||||
|
|
||||||
const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url.
|
const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url.
|
||||||
// So we use RequestParameters and add method as additional required property.
|
// So we use RequestParameters and add method as additional required property.
|
||||||
@@ -34525,7 +34525,7 @@ function _objectWithoutProperties(source, excluded) {
|
|||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
|
||||||
const VERSION = "3.2.0";
|
const VERSION = "3.2.1";
|
||||||
|
|
||||||
class Octokit {
|
class Octokit {
|
||||||
constructor(options = {}) {
|
constructor(options = {}) {
|
||||||
@@ -38922,10 +38922,10 @@ module.exports = debug
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
var parser = __webpack_require__(320)
|
const parser = __webpack_require__(320)
|
||||||
var regex = __webpack_require__(970)
|
const regex = __webpack_require__(970)
|
||||||
var through = __webpack_require__(576)
|
const through = __webpack_require__(576)
|
||||||
var _ = __webpack_require__(288)
|
const _ = __webpack_require__(288)
|
||||||
|
|
||||||
function assignOpts (options) {
|
function assignOpts (options) {
|
||||||
options = _.extend({
|
options = _.extend({
|
||||||
@@ -38993,10 +38993,10 @@ function assignOpts (options) {
|
|||||||
|
|
||||||
function conventionalCommitsParser (options) {
|
function conventionalCommitsParser (options) {
|
||||||
options = assignOpts(options)
|
options = assignOpts(options)
|
||||||
var reg = regex(options)
|
const reg = regex(options)
|
||||||
|
|
||||||
return through.obj(function (data, enc, cb) {
|
return through.obj(function (data, enc, cb) {
|
||||||
var commit
|
let commit
|
||||||
|
|
||||||
try {
|
try {
|
||||||
commit = parser(data.toString(), options, reg)
|
commit = parser(data.toString(), options, reg)
|
||||||
@@ -39014,7 +39014,7 @@ function conventionalCommitsParser (options) {
|
|||||||
|
|
||||||
function sync (commit, options) {
|
function sync (commit, options) {
|
||||||
options = assignOpts(options)
|
options = assignOpts(options)
|
||||||
var reg = regex(options)
|
const reg = regex(options)
|
||||||
|
|
||||||
return parser(commit, options, reg)
|
return parser(commit, options, reg)
|
||||||
}
|
}
|
||||||
@@ -41286,102 +41286,90 @@ if (process.env.READABLE_STREAM === 'disable' && Stream) {
|
|||||||
/* 576 */
|
/* 576 */
|
||||||
/***/ (function(module, __unusedexports, __webpack_require__) {
|
/***/ (function(module, __unusedexports, __webpack_require__) {
|
||||||
|
|
||||||
var Transform = __webpack_require__(574).Transform
|
const { Transform } = __webpack_require__(574)
|
||||||
, inherits = __webpack_require__(689)
|
|
||||||
|
|
||||||
function DestroyableTransform(opts) {
|
function inherits (fn, sup) {
|
||||||
Transform.call(this, opts)
|
fn.super_ = sup
|
||||||
this._destroyed = false
|
fn.prototype = Object.create(sup.prototype, {
|
||||||
}
|
constructor: { value: fn, enumerable: false, writable: true, configurable: true }
|
||||||
|
|
||||||
inherits(DestroyableTransform, Transform)
|
|
||||||
|
|
||||||
DestroyableTransform.prototype.destroy = function(err) {
|
|
||||||
if (this._destroyed) return
|
|
||||||
this._destroyed = true
|
|
||||||
|
|
||||||
var self = this
|
|
||||||
process.nextTick(function() {
|
|
||||||
if (err)
|
|
||||||
self.emit('error', err)
|
|
||||||
self.emit('close')
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// a noop _transform function
|
|
||||||
function noop (chunk, enc, callback) {
|
|
||||||
callback(null, chunk)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// create a new export function, used by both the main export and
|
// create a new export function, used by both the main export and
|
||||||
// the .ctor export, contains common logic for dealing with arguments
|
// the .ctor export, contains common logic for dealing with arguments
|
||||||
function through2 (construct) {
|
function through2 (construct) {
|
||||||
return function (options, transform, flush) {
|
return (options, transform, flush) => {
|
||||||
if (typeof options == 'function') {
|
if (typeof options === 'function') {
|
||||||
flush = transform
|
flush = transform
|
||||||
transform = options
|
transform = options
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof transform != 'function')
|
if (typeof transform !== 'function') {
|
||||||
transform = noop
|
// noop
|
||||||
|
transform = (chunk, enc, cb) => cb(null, chunk)
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof flush != 'function')
|
if (typeof flush !== 'function') {
|
||||||
flush = null
|
flush = null
|
||||||
|
}
|
||||||
|
|
||||||
return construct(options, transform, flush)
|
return construct(options, transform, flush)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// main export, just make me a transform stream!
|
// main export, just make me a transform stream!
|
||||||
module.exports = through2(function (options, transform, flush) {
|
const make = through2((options, transform, flush) => {
|
||||||
var t2 = new DestroyableTransform(options)
|
const t2 = new Transform(options)
|
||||||
|
|
||||||
t2._transform = transform
|
t2._transform = transform
|
||||||
|
|
||||||
if (flush)
|
if (flush) {
|
||||||
t2._flush = flush
|
t2._flush = flush
|
||||||
|
}
|
||||||
|
|
||||||
return t2
|
return t2
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
// make me a reusable prototype that I can `new`, or implicitly `new`
|
// make me a reusable prototype that I can `new`, or implicitly `new`
|
||||||
// with a constructor call
|
// with a constructor call
|
||||||
module.exports.ctor = through2(function (options, transform, flush) {
|
const ctor = through2((options, transform, flush) => {
|
||||||
function Through2 (override) {
|
function Through2 (override) {
|
||||||
if (!(this instanceof Through2))
|
if (!(this instanceof Through2)) {
|
||||||
return new Through2(override)
|
return new Through2(override)
|
||||||
|
}
|
||||||
|
|
||||||
this.options = Object.assign({}, options, override)
|
this.options = Object.assign({}, options, override)
|
||||||
|
|
||||||
DestroyableTransform.call(this, this.options)
|
Transform.call(this, this.options)
|
||||||
|
|
||||||
|
this._transform = transform
|
||||||
|
if (flush) {
|
||||||
|
this._flush = flush
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inherits(Through2, DestroyableTransform)
|
inherits(Through2, Transform)
|
||||||
|
|
||||||
Through2.prototype._transform = transform
|
|
||||||
|
|
||||||
if (flush)
|
|
||||||
Through2.prototype._flush = flush
|
|
||||||
|
|
||||||
return Through2
|
return Through2
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const obj = through2(function (options, transform, flush) {
|
||||||
module.exports.obj = through2(function (options, transform, flush) {
|
const t2 = new Transform(Object.assign({ objectMode: true, highWaterMark: 16 }, options))
|
||||||
var t2 = new DestroyableTransform(Object.assign({ objectMode: true, highWaterMark: 16 }, options))
|
|
||||||
|
|
||||||
t2._transform = transform
|
t2._transform = transform
|
||||||
|
|
||||||
if (flush)
|
if (flush) {
|
||||||
t2._flush = flush
|
t2._flush = flush
|
||||||
|
}
|
||||||
|
|
||||||
return t2
|
return t2
|
||||||
})
|
})
|
||||||
|
|
||||||
|
module.exports = make
|
||||||
|
module.exports.ctor = ctor
|
||||||
|
module.exports.obj = obj
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 577 */,
|
/* 577 */,
|
||||||
@@ -41499,18 +41487,27 @@ module.exports = function (config) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function findTypeEntry (types, commit) {
|
||||||
|
const typeKey = (commit.revert ? 'revert' : (commit.type || '')).toLowerCase()
|
||||||
|
return types.find((entry) => {
|
||||||
|
if (entry.type !== typeKey) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if (entry.scope && entry.scope !== commit.scope) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
function getWriterOpts (config) {
|
function getWriterOpts (config) {
|
||||||
config = defaultConfig(config)
|
config = defaultConfig(config)
|
||||||
const typesLookup = {}
|
|
||||||
config.types.forEach(type => {
|
|
||||||
typesLookup[type.type] = type
|
|
||||||
})
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
transform: (commit, context) => {
|
transform: (commit, context) => {
|
||||||
let discard = true
|
let discard = true
|
||||||
const issues = []
|
const issues = []
|
||||||
const typeKey = (commit.revert ? 'revert' : (commit.type || '')).toLowerCase()
|
const entry = findTypeEntry(config.types, commit)
|
||||||
|
|
||||||
// adds additional breaking change notes
|
// adds additional breaking change notes
|
||||||
// for the special case, test(system)!: hello world, where there is
|
// for the special case, test(system)!: hello world, where there is
|
||||||
@@ -41523,10 +41520,10 @@ function getWriterOpts (config) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// breaking changes attached to any type are still displayed.
|
// breaking changes attached to any type are still displayed.
|
||||||
if (discard && (typesLookup[typeKey] === undefined ||
|
if (discard && (entry === undefined ||
|
||||||
typesLookup[typeKey].hidden)) return
|
entry.hidden)) return
|
||||||
|
|
||||||
if (typesLookup[typeKey]) commit.type = typesLookup[typeKey].section
|
if (entry) commit.type = entry.section
|
||||||
|
|
||||||
if (commit.scope === '*') {
|
if (commit.scope === '*') {
|
||||||
commit.scope = ''
|
commit.scope = ''
|
||||||
@@ -48165,7 +48162,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|||||||
var request = __webpack_require__(753);
|
var request = __webpack_require__(753);
|
||||||
var universalUserAgent = __webpack_require__(526);
|
var universalUserAgent = __webpack_require__(526);
|
||||||
|
|
||||||
const VERSION = "4.5.6";
|
const VERSION = "4.5.7";
|
||||||
|
|
||||||
class GraphqlError extends Error {
|
class GraphqlError extends Error {
|
||||||
constructor(request, response) {
|
constructor(request, response) {
|
||||||
@@ -48395,7 +48392,7 @@ var isPlainObject = __webpack_require__(356);
|
|||||||
var nodeFetch = _interopDefault(__webpack_require__(454));
|
var nodeFetch = _interopDefault(__webpack_require__(454));
|
||||||
var requestError = __webpack_require__(463);
|
var requestError = __webpack_require__(463);
|
||||||
|
|
||||||
const VERSION = "5.4.9";
|
const VERSION = "5.4.10";
|
||||||
|
|
||||||
function getBufferResponse(response) {
|
function getBufferResponse(response) {
|
||||||
return response.arrayBuffer();
|
return response.arrayBuffer();
|
||||||
@@ -51436,7 +51433,7 @@ const Endpoints = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const VERSION = "4.2.0";
|
const VERSION = "4.2.1";
|
||||||
|
|
||||||
function endpointsToMethods(octokit, endpointsMap) {
|
function endpointsToMethods(octokit, endpointsMap) {
|
||||||
const newMethods = {};
|
const newMethods = {};
|
||||||
@@ -52503,7 +52500,7 @@ var pluginRequestLog = __webpack_require__(916);
|
|||||||
var pluginPaginateRest = __webpack_require__(299);
|
var pluginPaginateRest = __webpack_require__(299);
|
||||||
var pluginRestEndpointMethods = __webpack_require__(842);
|
var pluginRestEndpointMethods = __webpack_require__(842);
|
||||||
|
|
||||||
const VERSION = "18.0.6";
|
const VERSION = "18.0.9";
|
||||||
|
|
||||||
const Octokit = core.Octokit.plugin(pluginRequestLog.requestLog, pluginRestEndpointMethods.restEndpointMethods, pluginPaginateRest.paginateRest).defaults({
|
const Octokit = core.Octokit.plugin(pluginRequestLog.requestLog, pluginRestEndpointMethods.restEndpointMethods, pluginPaginateRest.paginateRest).defaults({
|
||||||
userAgent: `octokit-rest.js/${VERSION}`
|
userAgent: `octokit-rest.js/${VERSION}`
|
||||||
@@ -55562,7 +55559,7 @@ exports.ArraySet = ArraySet;
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
var reNomatch = /(?!.*)/
|
const reNomatch = /(?!.*)/
|
||||||
|
|
||||||
function join (array, joiner) {
|
function join (array, joiner) {
|
||||||
return array
|
return array
|
||||||
@@ -55575,12 +55572,18 @@ function join (array, joiner) {
|
|||||||
.join(joiner)
|
.join(joiner)
|
||||||
}
|
}
|
||||||
|
|
||||||
function getNotesRegex (noteKeywords) {
|
function getNotesRegex (noteKeywords, notesPattern) {
|
||||||
if (!noteKeywords) {
|
if (!noteKeywords) {
|
||||||
return reNomatch
|
return reNomatch
|
||||||
}
|
}
|
||||||
|
|
||||||
return new RegExp('^[\\s|*]*(' + join(noteKeywords, '|') + ')[:\\s]+(.*)', 'i')
|
const noteKeywordsSelection = join(noteKeywords, '|')
|
||||||
|
|
||||||
|
if (!notesPattern) {
|
||||||
|
return new RegExp('^[\\s|*]*(' + noteKeywordsSelection + ')[:\\s]+(.*)', 'i')
|
||||||
|
}
|
||||||
|
|
||||||
|
return notesPattern(noteKeywordsSelection)
|
||||||
}
|
}
|
||||||
|
|
||||||
function getReferencePartsRegex (issuePrefixes, issuePrefixesCaseSensitive) {
|
function getReferencePartsRegex (issuePrefixes, issuePrefixesCaseSensitive) {
|
||||||
@@ -55588,7 +55591,7 @@ function getReferencePartsRegex (issuePrefixes, issuePrefixesCaseSensitive) {
|
|||||||
return reNomatch
|
return reNomatch
|
||||||
}
|
}
|
||||||
|
|
||||||
var flags = issuePrefixesCaseSensitive ? 'g' : 'gi'
|
const flags = issuePrefixesCaseSensitive ? 'g' : 'gi'
|
||||||
return new RegExp('(?:.*?)??\\s*([\\w-\\.\\/]*?)??(' + join(issuePrefixes, '|') + ')([\\w-]*\\d+)', flags)
|
return new RegExp('(?:.*?)??\\s*([\\w-\\.\\/]*?)??(' + join(issuePrefixes, '|') + ')([\\w-]*\\d+)', flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -55598,15 +55601,15 @@ function getReferencesRegex (referenceActions) {
|
|||||||
return /()(.+)/gi
|
return /()(.+)/gi
|
||||||
}
|
}
|
||||||
|
|
||||||
var joinedKeywords = join(referenceActions, '|')
|
const joinedKeywords = join(referenceActions, '|')
|
||||||
return new RegExp('(' + joinedKeywords + ')(?:\\s+(.*?))(?=(?:' + joinedKeywords + ')|$)', 'gi')
|
return new RegExp('(' + joinedKeywords + ')(?:\\s+(.*?))(?=(?:' + joinedKeywords + ')|$)', 'gi')
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = function (options) {
|
module.exports = function (options) {
|
||||||
options = options || {}
|
options = options || {}
|
||||||
var reNotes = getNotesRegex(options.noteKeywords)
|
const reNotes = getNotesRegex(options.noteKeywords, options.notesPattern)
|
||||||
var reReferenceParts = getReferencePartsRegex(options.issuePrefixes, options.issuePrefixesCaseSensitive)
|
const reReferenceParts = getReferencePartsRegex(options.issuePrefixes, options.issuePrefixesCaseSensitive)
|
||||||
var reReferences = getReferencesRegex(options.referenceActions)
|
const reReferences = getReferencesRegex(options.referenceActions)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
notes: reNotes,
|
notes: reNotes,
|
||||||
@@ -56371,19 +56374,19 @@ function passLookupPropertyOption(helper, container) {
|
|||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var compareFunc = __webpack_require__(739)
|
const compareFunc = __webpack_require__(739)
|
||||||
var conventionalCommitsFilter = __webpack_require__(304)
|
const conventionalCommitsFilter = __webpack_require__(304)
|
||||||
var Handlebars = __webpack_require__(635)
|
const Handlebars = __webpack_require__(635)
|
||||||
var semver = __webpack_require__(927)
|
const semver = __webpack_require__(927)
|
||||||
var _ = __webpack_require__(288)
|
const _ = __webpack_require__(288)
|
||||||
var stringify = __webpack_require__(704)
|
const stringify = __webpack_require__(704)
|
||||||
|
|
||||||
function compileTemplates (templates) {
|
function compileTemplates (templates) {
|
||||||
var main = templates.mainTemplate
|
const main = templates.mainTemplate
|
||||||
var headerPartial = templates.headerPartial
|
const headerPartial = templates.headerPartial
|
||||||
var commitPartial = templates.commitPartial
|
const commitPartial = templates.commitPartial
|
||||||
var footerPartial = templates.footerPartial
|
const footerPartial = templates.footerPartial
|
||||||
var partials = templates.partials
|
const partials = templates.partials
|
||||||
|
|
||||||
if (_.isString(headerPartial)) {
|
if (_.isString(headerPartial)) {
|
||||||
Handlebars.registerPartial('header', headerPartial)
|
Handlebars.registerPartial('header', headerPartial)
|
||||||
@@ -56416,8 +56419,8 @@ function functionify (strOrArr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getCommitGroups (groupBy, commits, groupsSort, commitsSort) {
|
function getCommitGroups (groupBy, commits, groupsSort, commitsSort) {
|
||||||
var commitGroups = []
|
const commitGroups = []
|
||||||
var commitGroupsObj = _.groupBy(commits, function (commit) {
|
const commitGroupsObj = _.groupBy(commits, function (commit) {
|
||||||
return commit[groupBy] || ''
|
return commit[groupBy] || ''
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -56444,11 +56447,11 @@ function getCommitGroups (groupBy, commits, groupsSort, commitsSort) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getNoteGroups (notes, noteGroupsSort, notesSort) {
|
function getNoteGroups (notes, noteGroupsSort, notesSort) {
|
||||||
var retGroups = []
|
const retGroups = []
|
||||||
|
|
||||||
_.forEach(notes, function (note) {
|
_.forEach(notes, function (note) {
|
||||||
var title = note.title
|
const title = note.title
|
||||||
var titleExists = false
|
let titleExists = false
|
||||||
|
|
||||||
_.forEach(retGroups, function (group) {
|
_.forEach(retGroups, function (group) {
|
||||||
if (group.title === title) {
|
if (group.title === title) {
|
||||||
@@ -56480,7 +56483,7 @@ function getNoteGroups (notes, noteGroupsSort, notesSort) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function processCommit (chunk, transform, context) {
|
function processCommit (chunk, transform, context) {
|
||||||
var commit
|
let commit
|
||||||
|
|
||||||
try {
|
try {
|
||||||
chunk = JSON.parse(chunk)
|
chunk = JSON.parse(chunk)
|
||||||
@@ -56499,7 +56502,7 @@ function processCommit (chunk, transform, context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_.forEach(transform, function (el, path) {
|
_.forEach(transform, function (el, path) {
|
||||||
var value = _.get(commit, path)
|
let value = _.get(commit, path)
|
||||||
|
|
||||||
if (_.isFunction(el)) {
|
if (_.isFunction(el)) {
|
||||||
value = el(value, path)
|
value = el(value, path)
|
||||||
@@ -56516,7 +56519,7 @@ function processCommit (chunk, transform, context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getExtraContext (commits, notes, options) {
|
function getExtraContext (commits, notes, options) {
|
||||||
var context = {}
|
const context = {}
|
||||||
|
|
||||||
// group `commits` by `options.groupBy`
|
// group `commits` by `options.groupBy`
|
||||||
context.commitGroups = getCommitGroups(options.groupBy, commits, options.commitGroupsSort, options.commitsSort)
|
context.commitGroups = getCommitGroups(options.groupBy, commits, options.commitGroupsSort, options.commitsSort)
|
||||||
@@ -56528,9 +56531,9 @@ function getExtraContext (commits, notes, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function generate (options, commits, context, keyCommit) {
|
function generate (options, commits, context, keyCommit) {
|
||||||
var notes = []
|
let notes = []
|
||||||
var filteredCommits
|
let filteredCommits
|
||||||
var compiled = compileTemplates(options)
|
const compiled = compileTemplates(options)
|
||||||
|
|
||||||
if (options.ignoreReverted) {
|
if (options.ignoreReverted) {
|
||||||
filteredCommits = conventionalCommitsFilter(commits)
|
filteredCommits = conventionalCommitsFilter(commits)
|
||||||
|
|||||||
Reference in New Issue
Block a user