| 109 | } |
| 110 | |
| 111 | export function EANALYZECOMMITSOUTPUT({ result, pluginName }) { |
| 112 | return { |
| 113 | message: "The `analyzeCommits` plugin returned an invalid value. It must return a valid semver release type.", |
| 114 | details: `The \`analyzeCommits\` plugin must return a valid [semver](https://semver.org) release type. The valid values are: ${RELEASE_TYPE.map( |
| 115 | (type) => `\`${type}\`` |
| 116 | ).join(", ")}. |
| 117 | |
| 118 | The \`analyzeCommits\` function of the \`${pluginName}\` returned \`${stringify(result)}\` instead. |
| 119 | |
| 120 | We recommend to report the issue to the \`${pluginName}\` authors, providing the following informations: |
| 121 | - The **semantic-release** version: \`${pkg.version}\` |
| 122 | - The **semantic-release** logs from your CI job |
| 123 | - The value returned by the plugin: \`${stringify(result)}\` |
| 124 | - A link to the **semantic-release** plugin developer guide: [${linkify("docs/developer-guide/plugin.md")}](${linkify( |
| 125 | "docs/developer-guide/plugin.md" |
| 126 | )})`, |
| 127 | }; |
| 128 | } |
| 129 | |
| 130 | export function EGENERATENOTESOUTPUT({ result, pluginName }) { |
| 131 | return { |