UNPKG

semantic-release-gh

Version:

The official GitHub plugin, modified to accept repositoryUrl as a parameter

47 lines (35 loc) 2.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetFailComment = void 0; const HOMEPAGE_URL = 'https://github.com/semantic-release/semantic-release'; const FAQ_URL = `${HOMEPAGE_URL}/blob/caribou/docs/support/FAQ.md`; const GET_HELP_URL = `${HOMEPAGE_URL}#get-help`; const USAGE_DOC_URL = `${HOMEPAGE_URL}/blob/caribou/docs/usage/README.md`; const NEW_ISSUE_URL = `${HOMEPAGE_URL}/issues/new`; const formatError = (error) => `### ${error.message} ${error.details || `Unfortunately this error doesn't have any additional information.${error.pluginName ? ` Feel free to kindly ask the author of the \`${error.pluginName}\` plugin to add more helpful information.` : ''}`}`; const GetFailComment = (branch, errors) => `## :rotating_light: The automated release from the \`${branch.name}\` branch failed. :rotating_light: I recommend you give this issue a high priority, so other packages depending on you can benefit from your \ bug fixes and new features again. You can find below the list of errors reported by **semantic-release**. Each one of them has to be resolved \ in order to automatically publish your package. I’m sure you can fix this 💪. Errors are usually caused by a misconfiguration or an authentication problem. With each error reported \ below you will find explanation and guidance to help you to resolve it. Once all the errors are resolved, **semantic-release** will release your package the next time you \ push a commit to the \`${branch.name}\` branch. You can also manually restart the failed CI job that runs **semantic-release**. If you are not sure how to resolve this, here are some links that can help you: - [Usage documentation](${USAGE_DOC_URL}) - [Frequently Asked Questions](${FAQ_URL}) - [Support channels](${GET_HELP_URL}) If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the \ humans behind **[semantic-release](${NEW_ISSUE_URL})**. --- ${errors.map((error) => formatError(error)).join('\n\n---\n\n')} --- Good luck with your project ✨ Your **[semantic-release](${HOMEPAGE_URL})** bot :package::rocket:`; exports.GetFailComment = GetFailComment; //# sourceMappingURL=get-fail-comment.js.map