1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-13 16:31:33 +02:00

chore: build dist release-please-action (#339)

This commit is contained in:
google-github-actions-bot
2021-08-05 15:00:40 -05:00
committed by GitHub
parent 68f6fc67aa
commit c35840a721
9 changed files with 119 additions and 126 deletions

50
dist/commit1.hbs vendored
View File

@@ -1,23 +1,16 @@
* {{header}} *{{#if scope}} **{{scope}}:**
{{~/if}} {{#if subject}}
{{~!-- commit link --}} {{#if @root.linkReferences~}} {{~subject}}
([{{hash}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}/
{{~@root.commit}}/{{hash}}))
{{~else}} {{~else}}
{{~hash}} {{~header}}
{{~/if}} {{~/if}}
{{~!-- commit link --}}{{~#if hash}} {{#if @root.linkReferences~}}
([{{shortHash}}]({{commitUrlFormat}}))
{{~else}}
{{~shortHash}}
{{~/if}}{{~/if}}
{{~!-- commit references --}} {{~!-- commit references --}}
{{~#if references~}} {{~#if references~}}
, closes , closes
@@ -26,31 +19,12 @@
{{~#if this.owner}} {{~#if this.owner}}
{{~this.owner}}/ {{~this.owner}}/
{{~/if}} {{~/if}}
{{~this.repository}}#{{this.issue}}]( {{~this.repository}}{{this.prefix}}{{this.issue}}]({{issueUrlFormat}})
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if this.repository}}
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}
{{~else}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~/if}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}/
{{~@root.issue}}/{{this.issue}})
{{~else}} {{~else}}
{{~#if this.owner}} {{~#if this.owner}}
{{~this.owner}}/ {{~this.owner}}/
{{~/if}} {{~/if}}
{{~this.repository}}#{{this.issue}} {{~this.repository}}{{this.prefix}}{{this.issue}}
{{~/if}}{{/each}} {{~/if}}{{/each}}
{{~/if}} {{~/if}}

50
dist/commit2.hbs vendored
View File

@@ -1,15 +1,22 @@
*{{#if scope}} **{{scope}}:** * {{header}}
{{~/if}} {{#if subject}}
{{~subject}}
{{~else}}
{{~header}}
{{~/if}}
{{~!-- commit link --}}{{~#if hash}} {{#if @root.linkReferences~}} {{~!-- commit link --}} {{#if @root.linkReferences~}}
([{{shortHash}}]({{commitUrlFormat}})) ([{{hash}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}/
{{~@root.commit}}/{{hash}}))
{{~else}} {{~else}}
{{~shortHash}} {{~hash}}
{{~/if}}{{~/if}} {{~/if}}
{{~!-- commit references --}} {{~!-- commit references --}}
{{~#if references~}} {{~#if references~}}
@@ -19,12 +26,31 @@
{{~#if this.owner}} {{~#if this.owner}}
{{~this.owner}}/ {{~this.owner}}/
{{~/if}} {{~/if}}
{{~this.repository}}{{this.prefix}}{{this.issue}}]({{issueUrlFormat}}) {{~this.repository}}#{{this.issue}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if this.repository}}
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}
{{~else}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~/if}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}/
{{~@root.issue}}/{{this.issue}})
{{~else}} {{~else}}
{{~#if this.owner}} {{~#if this.owner}}
{{~this.owner}}/ {{~this.owner}}/
{{~/if}} {{~/if}}
{{~this.repository}}{{this.prefix}}{{this.issue}} {{~this.repository}}#{{this.issue}}
{{~/if}}{{/each}} {{~/if}}{{/each}}
{{~/if}} {{~/if}}

10
dist/footer.hbs vendored
View File

@@ -1,10 +0,0 @@
{{#if noteGroups}}
{{#each noteGroups}}
### {{title}}
{{#each notes}}
* {{text}}
{{/each}}
{{/each}}
{{/if}}

10
dist/footer1.hbs vendored
View File

@@ -0,0 +1,10 @@
{{#if noteGroups}}
{{#each noteGroups}}
### {{title}}
{{#each notes}}
* {{text}}
{{/each}}
{{/each}}
{{/if}}

22
dist/header1.hbs vendored
View File

@@ -1,9 +1,13 @@
## {{#if isPatch~}} <small> {{#if isPatch~}}
{{~/if~}} {{version}} ###
{{~#if title}} "{{title}}" {{~else~}}
{{~/if~}} ##
{{~#if date}} ({{date}}) {{~/if}} {{#if @root.linkCompare~}}
{{~/if~}} [{{version}}]({{compareUrlFormat}})
{{~#if isPatch~}} </small> {{~else}}
{{~/if}} {{~version}}
{{~/if}}
{{~#if title}} "{{title}}"
{{~/if}}
{{~#if date}} ({{date}})
{{/if}}

22
dist/header2.hbs vendored
View File

@@ -1,13 +1,9 @@
{{#if isPatch~}} ## {{#if isPatch~}} <small>
### {{~/if~}} {{version}}
{{~else~}} {{~#if title}} "{{title}}"
## {{~/if~}}
{{~/if}} {{#if @root.linkCompare~}} {{~#if date}} ({{date}})
[{{version}}]({{compareUrlFormat}}) {{~/if~}}
{{~else}} {{~#if isPatch~}} </small>
{{~version}} {{~/if}}
{{~/if}}
{{~#if title}} "{{title}}"
{{~/if}}
{{~#if date}} ({{date}})
{{/if}}

37
dist/index.js vendored
View File

@@ -14708,10 +14708,10 @@ module.exports = function (config) {
}) })
return Q.all([ return Q.all([
readFile(__nccwpck_require__.ab + "template2.hbs", 'utf-8'), readFile(__nccwpck_require__.ab + "template1.hbs", 'utf-8'),
readFile(__nccwpck_require__.ab + "header2.hbs", 'utf-8'), readFile(__nccwpck_require__.ab + "header1.hbs", 'utf-8'),
readFile(__nccwpck_require__.ab + "commit2.hbs", 'utf-8'), readFile(__nccwpck_require__.ab + "commit1.hbs", 'utf-8'),
readFile(__nccwpck_require__.ab + "footer1.hbs", 'utf-8') readFile(__nccwpck_require__.ab + "footer.hbs", 'utf-8')
]) ])
.spread((template, header, commit, footer) => { .spread((template, header, commit, footer) => {
const writerOpts = getWriterOpts(config) const writerOpts = getWriterOpts(config)
@@ -14930,10 +14930,10 @@ function conventionalChangelogWriterInit (context, options) {
includeDetails: false, includeDetails: false,
ignoreReverted: true, ignoreReverted: true,
doFlush: true, doFlush: true,
mainTemplate: readFileSync(__nccwpck_require__.ab + "template1.hbs", 'utf-8'), mainTemplate: readFileSync(__nccwpck_require__.ab + "template2.hbs", 'utf-8'),
headerPartial: readFileSync(__nccwpck_require__.ab + "header1.hbs", 'utf-8'), headerPartial: readFileSync(__nccwpck_require__.ab + "header2.hbs", 'utf-8'),
commitPartial: readFileSync(__nccwpck_require__.ab + "commit1.hbs", 'utf-8'), commitPartial: readFileSync(__nccwpck_require__.ab + "commit2.hbs", 'utf-8'),
footerPartial: readFileSync(__nccwpck_require__.ab + "footer.hbs", 'utf-8') footerPartial: readFileSync(__nccwpck_require__.ab + "footer1.hbs", 'utf-8')
}, options) }, options)
if ((!_.isFunction(options.transform) && _.isObject(options.transform)) || _.isUndefined(options.transform)) { if ((!_.isFunction(options.transform) && _.isObject(options.transform)) || _.isUndefined(options.transform)) {
@@ -59967,7 +59967,7 @@ exports.ConventionalCommits = ConventionalCommits;
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.MissingReleaseNotesError = exports.DuplicateReleaseError = exports.AuthError = exports.GitHubAPIError = exports.PathNotFoundError = exports.MissingRequiredFileError = exports.ConfigurationError = void 0; exports.MissingReleaseNotesError = exports.DuplicateReleaseError = exports.AuthError = exports.GitHubAPIError = exports.MissingRequiredFileError = exports.ConfigurationError = void 0;
class ConfigurationError extends Error { class ConfigurationError extends Error {
constructor(message, releaserName, repository) { constructor(message, releaserName, repository) {
super(`${releaserName} (${repository}): ${message}`); super(`${releaserName} (${repository}): ${message}`);
@@ -59985,14 +59985,6 @@ class MissingRequiredFileError extends ConfigurationError {
} }
} }
exports.MissingRequiredFileError = MissingRequiredFileError; exports.MissingRequiredFileError = MissingRequiredFileError;
class PathNotFoundError extends Error {
constructor(path) {
super(`Could not find requested path: ${path}`);
this.path = path;
this.name = PathNotFoundError.name;
}
}
exports.PathNotFoundError = PathNotFoundError;
class GitHubAPIError extends Error { class GitHubAPIError extends Error {
constructor(requestError, message) { constructor(requestError, message) {
super(message !== null && message !== void 0 ? message : requestError.message); super(message !== null && message !== void 0 ? message : requestError.message);
@@ -60710,7 +60702,7 @@ class GitHub {
return await this.getFileContentsWithSimpleAPI(path, branch); return await this.getFileContentsWithSimpleAPI(path, branch);
} }
catch (err) { catch (err) {
if (err.status === 403 || err.status === 404) { if (err.status === 403) {
return await this.getFileContentsWithDataAPI(path, branch); return await this.getFileContentsWithDataAPI(path, branch);
} }
throw err; throw err;
@@ -61645,7 +61637,7 @@ class GitHub {
const repoTree = await this.request('GET /repos/:owner/:repo/git/trees/:branch', options); const repoTree = await this.request('GET /repos/:owner/:repo/git/trees/:branch', options);
const blobDescriptor = repoTree.data.tree.find(tree => tree.path === path); const blobDescriptor = repoTree.data.tree.find(tree => tree.path === path);
if (!blobDescriptor) { if (!blobDescriptor) {
throw new errors_1.PathNotFoundError(path); throw new Error(`Could not find requested path: ${path}`);
} }
const resp = await this.request('GET /repos/:owner/:repo/git/blobs/:sha', { const resp = await this.request('GET /repos/:owner/:repo/git/blobs/:sha', {
owner: this.owner, owner: this.owner,
@@ -64247,11 +64239,12 @@ class JavaYoshi extends release_pr_1.ReleasePR {
this.versionsManifestContent = await this.gh.getFileContents('versions.txt'); this.versionsManifestContent = await this.gh.getFileContents('versions.txt');
} }
catch (e) { catch (e) {
if ((e instanceof errors_1.GitHubAPIError && e.status === 404) || if (e instanceof errors_1.GitHubAPIError) {
e instanceof errors_1.PathNotFoundError) { if (e.status === 404) {
// on missing file, throw a configuration error // on missing file, throw a configuration error
throw new errors_1.MissingRequiredFileError('versions.txt', JavaYoshi.name, this.gh.repo); throw new errors_1.MissingRequiredFileError('versions.txt', JavaYoshi.name, this.gh.repo);
} }
}
throw e; throw e;
} }
} }
@@ -85764,7 +85757,7 @@ module.exports = JSON.parse("[\"assert\",\"buffer\",\"child_process\",\"cluster\
/***/ ((module) => { /***/ ((module) => {
"use strict"; "use strict";
module.exports = {"i8":"11.20.1"}; module.exports = {"i8":"11.20.2"};
/***/ }), /***/ }),

20
dist/template1.hbs vendored
View File

@@ -1,11 +1,23 @@
{{> header}} {{> header}}
{{#if noteGroups}}
{{#each noteGroups}}
### ⚠ {{title}}
{{#each notes}}
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
{{/each}}
{{/each}}
{{/if}}
{{#each commitGroups}} {{#each commitGroups}}
{{#if title}}
### {{title}}
{{/if}}
{{#each commits}} {{#each commits}}
{{> commit root=@root}} {{> commit root=@root}}
{{/each}} {{/each}}
{{/each}} {{/each}}
{{> footer}}

20
dist/template2.hbs vendored
View File

@@ -1,23 +1,11 @@
{{> header}} {{> header}}
{{#if noteGroups}}
{{#each noteGroups}}
### ⚠ {{title}}
{{#each notes}}
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
{{/each}}
{{/each}}
{{/if}}
{{#each commitGroups}} {{#each commitGroups}}
{{#if title}}
### {{title}}
{{/if}}
{{#each commits}} {{#each commits}}
{{> commit root=@root}} {{> commit root=@root}}
{{/each}} {{/each}}
{{/each}} {{/each}}
{{> footer}}