Skip to content

Commit

Permalink
chore(release): 1.3.0 [skip ci]
Browse files Browse the repository at this point in the history
# [1.3.0](v1.2.0...v1.3.0) (2023-07-14)

### Features

* add support for additional placeholders ([#3](#3)) ([663636b](663636b))
  • Loading branch information
semantic-release-bot committed Jul 14, 2023
1 parent 663636b commit d3e8cf0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24708,6 +24708,20 @@ const notifySlackWebhook = async (webhookUrl, message) => {
});
};

;// CONCATENATED MODULE: ./src/reducers.ts
const reduceAdditionalPlaceholders = (multilineInput) => multilineInput.reduce((acc, input) => {
const indexOfFirstEquals = input.indexOf("=");
if (indexOfFirstEquals < 0) {
return acc;
}
const key = input.substring(0, indexOfFirstEquals);
const value = input.substring(indexOfFirstEquals + 1);
if (!key) {
return acc;
}
return { ...acc, [key]: value };
}, {});

;// CONCATENATED MODULE: ./src/sqrl/filters.ts
const registerFilters = () => { };
const filters_unregisterFilters = () => { };
Expand Down Expand Up @@ -24760,6 +24774,7 @@ const templateMessage = (params) => {
github: params.github,
links,
repository,
...params.additionalPlaceholders,
}, {
tags: ["[[", "]]"],
});
Expand All @@ -24772,13 +24787,17 @@ const templateMessage = (params) => {




(async () => {
register();
const dryRun = core.getBooleanInput("dryRun");
const webhook = core.getInput("slackWebhook", { required: true });
const configMessage = core.getInput("message");
const linkRoot = core.getInput("linkRoot") || "https://github.com";
const additionalPlaceholdersAsArray = core.getMultilineInput("additionalPlaceholders");
const additionalPlaceholders = reduceAdditionalPlaceholders(additionalPlaceholdersAsArray);
const templatedMessage = templateMessage({
additionalPlaceholders,
configMessage,
github: github.context,
linkRoot,
Expand All @@ -24789,7 +24808,7 @@ const templateMessage = (params) => {
}
else {
console.log("Dry run enabled, printing message instead!");
console.log(message);
console.log(message.buildToJSON());
}
})().catch((e) => {
console.error(e);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit d3e8cf0

Please sign in to comment.