mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-05 02:27:48 +02:00
committed by
GitHub
parent
aed695c7cb
commit
48f987371f
50
dist/commit.hbs
vendored
50
dist/commit.hbs
vendored
@@ -1,20 +1,15 @@
|
||||
* {{header}}
|
||||
*{{#if scope}} **{{scope}}:**
|
||||
{{~/if}} {{#if subject}}
|
||||
{{~subject}}
|
||||
{{~else}}
|
||||
{{~header}}
|
||||
{{~/if}}
|
||||
|
||||
{{~!-- commit link --}}
|
||||
{{~#if @root.linkReferences}} ([{{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 if hash}} {{hash}}{{~/if}}
|
||||
{{~!-- commit link --}}{{~#if hash}} {{#if @root.linkReferences~}}
|
||||
([{{shortHash}}]({{commitUrlFormat}}))
|
||||
{{~else}}
|
||||
{{~shortHash}}
|
||||
{{~/if}}{{~/if}}
|
||||
|
||||
{{~!-- commit references --}}
|
||||
{{~#if references~}}
|
||||
@@ -24,31 +19,12 @@
|
||||
{{~#if this.owner}}
|
||||
{{~this.owner}}/
|
||||
{{~/if}}
|
||||
{{~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}})
|
||||
{{~this.repository}}{{this.prefix}}{{this.issue}}]({{issueUrlFormat}})
|
||||
{{~else}}
|
||||
{{~#if this.owner}}
|
||||
{{~this.owner}}/
|
||||
{{~/if}}
|
||||
{{~this.repository}}#{{this.issue}}
|
||||
{{~this.repository}}{{this.prefix}}{{this.issue}}
|
||||
{{~/if}}{{/each}}
|
||||
{{~/if}}
|
||||
|
||||
|
||||
50
dist/commit1.hbs
vendored
50
dist/commit1.hbs
vendored
@@ -1,15 +1,20 @@
|
||||
*{{#if scope}} **{{scope}}:**
|
||||
{{~/if}} {{#if subject}}
|
||||
{{~subject}}
|
||||
{{~else}}
|
||||
{{~header}}
|
||||
{{~/if}}
|
||||
* {{header}}
|
||||
|
||||
{{~!-- commit link --}}{{~#if hash}} {{#if @root.linkReferences~}}
|
||||
([{{shortHash}}]({{commitUrlFormat}}))
|
||||
{{~else}}
|
||||
{{~shortHash}}
|
||||
{{~/if}}{{~/if}}
|
||||
{{~!-- commit link --}}
|
||||
{{~#if @root.linkReferences}} ([{{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 if hash}} {{hash}}{{~/if}}
|
||||
|
||||
{{~!-- commit references --}}
|
||||
{{~#if references~}}
|
||||
@@ -19,12 +24,31 @@
|
||||
{{~#if this.owner}}
|
||||
{{~this.owner}}/
|
||||
{{~/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}}
|
||||
{{~#if this.owner}}
|
||||
{{~this.owner}}/
|
||||
{{~/if}}
|
||||
{{~this.repository}}{{this.prefix}}{{this.issue}}
|
||||
{{~this.repository}}#{{this.issue}}
|
||||
{{~/if}}{{/each}}
|
||||
{{~/if}}
|
||||
|
||||
|
||||
10
dist/footer.hbs
vendored
10
dist/footer.hbs
vendored
@@ -1,10 +0,0 @@
|
||||
{{#if noteGroups}}
|
||||
{{#each noteGroups}}
|
||||
|
||||
### {{title}}
|
||||
|
||||
{{#each notes}}
|
||||
* {{text}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
||||
10
dist/footer1.hbs
vendored
10
dist/footer1.hbs
vendored
@@ -0,0 +1,10 @@
|
||||
{{#if noteGroups}}
|
||||
{{#each noteGroups}}
|
||||
|
||||
### {{title}}
|
||||
|
||||
{{#each notes}}
|
||||
* {{text}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
||||
18
dist/header.hbs
vendored
18
dist/header.hbs
vendored
@@ -1,9 +1,9 @@
|
||||
## {{#if isPatch~}} <small>
|
||||
{{~/if~}} {{version}}
|
||||
{{~#if title}} "{{title}}"
|
||||
{{~/if~}}
|
||||
{{~#if date}} ({{date}})
|
||||
{{~/if~}}
|
||||
{{~#if isPatch~}} </small>
|
||||
{{~/if}}
|
||||
|
||||
## {{#if @root.linkCompare~}}
|
||||
[{{version}}]({{compareUrlFormat}})
|
||||
{{~else}}
|
||||
{{~version}}
|
||||
{{~/if}}
|
||||
{{~#if title}} "{{title}}"
|
||||
{{~/if}}
|
||||
{{~#if date}} ({{date}})
|
||||
{{/if}}
|
||||
|
||||
18
dist/header1.hbs
vendored
18
dist/header1.hbs
vendored
@@ -1,9 +1,9 @@
|
||||
## {{#if @root.linkCompare~}}
|
||||
[{{version}}]({{compareUrlFormat}})
|
||||
{{~else}}
|
||||
{{~version}}
|
||||
{{~/if}}
|
||||
{{~#if title}} "{{title}}"
|
||||
{{~/if}}
|
||||
{{~#if date}} ({{date}})
|
||||
{{/if}}
|
||||
## {{#if isPatch~}} <small>
|
||||
{{~/if~}} {{version}}
|
||||
{{~#if title}} "{{title}}"
|
||||
{{~/if~}}
|
||||
{{~#if date}} ({{date}})
|
||||
{{~/if~}}
|
||||
{{~#if isPatch~}} </small>
|
||||
{{~/if}}
|
||||
|
||||
|
||||
74
dist/index.js
vendored
74
dist/index.js
vendored
@@ -25192,10 +25192,10 @@ module.exports = async (config) => {
|
||||
commit,
|
||||
footer
|
||||
] = await Promise.all([
|
||||
readFile(__nccwpck_require__.ab + "template1.hbs", 'utf-8'),
|
||||
readFile(__nccwpck_require__.ab + "header1.hbs", 'utf-8'),
|
||||
readFile(__nccwpck_require__.ab + "commit1.hbs", 'utf-8'),
|
||||
readFile(__nccwpck_require__.ab + "footer1.hbs", 'utf-8')
|
||||
readFile(__nccwpck_require__.ab + "template.hbs", 'utf-8'),
|
||||
readFile(__nccwpck_require__.ab + "header.hbs", 'utf-8'),
|
||||
readFile(__nccwpck_require__.ab + "commit.hbs", 'utf-8'),
|
||||
readFile(__nccwpck_require__.ab + "footer.hbs", 'utf-8')
|
||||
])
|
||||
const writerOpts = getWriterOpts(config)
|
||||
|
||||
@@ -25409,10 +25409,10 @@ function conventionalChangelogWriterInit (context, options) {
|
||||
includeDetails: false,
|
||||
ignoreReverted: true,
|
||||
doFlush: true,
|
||||
mainTemplate: readFileSync(__nccwpck_require__.ab + "template.hbs", 'utf-8'),
|
||||
headerPartial: readFileSync(__nccwpck_require__.ab + "header.hbs", 'utf-8'),
|
||||
commitPartial: readFileSync(__nccwpck_require__.ab + "commit.hbs", 'utf-8'),
|
||||
footerPartial: readFileSync(__nccwpck_require__.ab + "footer.hbs", 'utf-8'),
|
||||
mainTemplate: readFileSync(__nccwpck_require__.ab + "template1.hbs", 'utf-8'),
|
||||
headerPartial: readFileSync(__nccwpck_require__.ab + "header1.hbs", 'utf-8'),
|
||||
commitPartial: readFileSync(__nccwpck_require__.ab + "commit1.hbs", 'utf-8'),
|
||||
footerPartial: readFileSync(__nccwpck_require__.ab + "footer1.hbs", 'utf-8'),
|
||||
...options
|
||||
}
|
||||
|
||||
@@ -76972,6 +76972,7 @@ const changelog_1 = __nccwpck_require__(3325);
|
||||
// Terraform specific.
|
||||
const readme_1 = __nccwpck_require__(4996);
|
||||
const module_version_1 = __nccwpck_require__(19696);
|
||||
const metadata_version_1 = __nccwpck_require__(54957);
|
||||
const base_1 = __nccwpck_require__(95081);
|
||||
const version_1 = __nccwpck_require__(17348);
|
||||
class TerraformModule extends base_1.BaseStrategy {
|
||||
@@ -77020,6 +77021,17 @@ class TerraformModule extends base_1.BaseStrategy {
|
||||
}),
|
||||
});
|
||||
});
|
||||
// Update metadata.yaml to current candidate version.
|
||||
const metadataFiles = await this.github.findFilesByFilenameAndRef('metadata.yaml', this.targetBranch, this.path);
|
||||
metadataFiles.forEach(path => {
|
||||
updates.push({
|
||||
path: this.addPath(path),
|
||||
createIfMissing: false,
|
||||
updater: new metadata_version_1.MetadataVersion({
|
||||
version,
|
||||
}),
|
||||
});
|
||||
});
|
||||
return updates;
|
||||
}
|
||||
initialReleaseVersion() {
|
||||
@@ -79523,6 +79535,50 @@ exports.SfdxProjectJson = SfdxProjectJson;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 54957:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
// Copyright 2023 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.MetadataVersion = void 0;
|
||||
const logger_1 = __nccwpck_require__(68809);
|
||||
const default_1 = __nccwpck_require__(69995);
|
||||
/**
|
||||
* Updates a Terraform metadata.yaml or metadata.display.yaml file(s).
|
||||
*/
|
||||
class MetadataVersion extends default_1.DefaultUpdater {
|
||||
/**
|
||||
* Given initial file contents, return updated contents.
|
||||
* @param {string} content The initial content
|
||||
* @returns {string} The updated content
|
||||
*/
|
||||
updateContent(content, logger = logger_1.logger) {
|
||||
const oldVersion = content.match(/version: [0-9]+\.[0-9]+\.[0-9]+(-\w+)?/);
|
||||
if (oldVersion) {
|
||||
logger.info(`updating from ${oldVersion} to v${this.version}`);
|
||||
}
|
||||
return content.replace(/version: [0-9]+\.[0-9]+\.[0-9]+(-\w+)?/g, `version: ${this.version}`);
|
||||
}
|
||||
}
|
||||
exports.MetadataVersion = MetadataVersion;
|
||||
//# sourceMappingURL=metadata-version.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 19696:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
@@ -109795,7 +109851,7 @@ module.exports = {};
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = {"i8":"15.12.0"};
|
||||
module.exports = {"i8":"15.13.0"};
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
||||
20
dist/template.hbs
vendored
20
dist/template.hbs
vendored
@@ -1,11 +1,23 @@
|
||||
{{> header}}
|
||||
|
||||
{{#if noteGroups}}
|
||||
{{#each noteGroups}}
|
||||
|
||||
### ⚠ {{title}}
|
||||
|
||||
{{#each notes}}
|
||||
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#each commitGroups}}
|
||||
|
||||
{{#if title}}
|
||||
### {{title}}
|
||||
|
||||
{{/if}}
|
||||
{{#each commits}}
|
||||
{{> commit root=@root}}
|
||||
{{/each}}
|
||||
|
||||
{{/each}}
|
||||
|
||||
{{> footer}}
|
||||
|
||||
|
||||
|
||||
20
dist/template1.hbs
vendored
20
dist/template1.hbs
vendored
@@ -1,23 +1,11 @@
|
||||
{{> header}}
|
||||
|
||||
{{#if noteGroups}}
|
||||
{{#each noteGroups}}
|
||||
|
||||
### ⚠ {{title}}
|
||||
|
||||
{{#each notes}}
|
||||
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#each commitGroups}}
|
||||
|
||||
{{#if title}}
|
||||
### {{title}}
|
||||
|
||||
{{/if}}
|
||||
{{#each commits}}
|
||||
{{> commit root=@root}}
|
||||
{{/each}}
|
||||
|
||||
{{/each}}
|
||||
|
||||
{{> footer}}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user