{"name":"@semantic-release/github","version":"12.0.0-beta.4","keywords":["git","github","issue","notifications","publish","pull-request","release","semantic-release","version"],"author":{"url":"https://twitter.com/@pvdlg_","name":"Pierre Vanduynslager"},"license":"MIT","_id":"@semantic-release/github@12.0.0-beta.4","maintainers":[{"name":"pvdlg","email":"pierre.denis.vanduynslager@gmail.com"},{"name":"semantic-release-bot","email":"semantic-release@martynus.net"},{"name":"gr2m","email":"gregor@martynus.net"},{"name":"travi","email":"npm@travi.org"}],"contributors":[{"url":"http://boennemann.me","name":"Stephan Bönnemann","email":"stephan@boennemann.me"},{"url":"https://twitter.com/gr2m","name":"Gregor Martynus"},{"url":"https://matt.travi.org/","name":"Matt Travi","email":"npm@travi.org"}],"homepage":"https://github.com/semantic-release/github","bugs":{"url":"https://github.com/semantic-release/github/issues"},"c8":{"all":true,"include":["lib/**/*.js","index.js"],"reporter":["json","text","html"]},"ava":{"files":["test/**/*.test.js","!test/integration.test.js"],"nodeArguments":["--no-warnings"]},"dist":{"shasum":"70bc58c978456c9f7c92544595bce76d08457ef7","tarball":"http://registry-npm.ywwl.com/@semantic-release/github/download/@semantic-release/github-12.0.0-beta.4.tgz","fileCount":23,"integrity":"sha512-5/JdzSQ0vnk2jKRD582c6VwBlSswE/TbY867czFPirAISRyQ084wHh+saJ4QrTpquqCnEB7zNXgEwqEQP1nYMA==","signatures":[{"sig":"MEYCIQCFItMGWdhKopDpAo1nmfTY0zVGu/+Zm/J5U6YxLQ64JgIhAL9nONSGtjITYhS/eL8W5XFpHZCC+qLYODmHBnCIARA8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@semantic-release%2fgithub@12.0.0-beta.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":97048,"size":22132,"noattachment":false,"key":"/@semantic-release/github/-/@semantic-release/github-12.0.0-beta.4.tgz"},"type":"module","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":"^22.14.0 || >= 24.10.0"},"exports":"./index.js","gitHead":"4d6924db6096c15089bb98b5689d729f355f8730","scripts":{"test":"npm-run-all --print-label --parallel lint:* --parallel test:*","codecov":"codecov -f coverage/coverage-final.json","test:unit":"c8 ava --verbose","lint:engines":"ls-engines","lint:publish":"publint --strict","lint:lockfile":"lockfile-lint","lint:prettier":"prettier --check \"{lib,test}/**/*.{js,json,ts}\" \"*.{js,md,json}\" \".github/**/*.yml\"","test:integration":"ava --verbose test/integration.test.js","lint:prettier:fix":"prettier --write \"{lib,test}/**/*.{js,json,ts}\" \"*.{js,md,json}\" \".github/**/*.yml\""},"_npmUser":{"name":"semantic-release-bot","email":"semantic-release@martynus.net"},"renovate":{"extends":["github>semantic-release/.github:renovate-config"]},"repository":{"url":"git+https://github.com/semantic-release/github.git","type":"git"},"_npmVersion":"10.9.4","description":"semantic-release plugin to publish a GitHub release and comment on released Pull Requests/Issues","directories":{},"_nodeVersion":"22.20.0","dependencies":{"mime":"^4.0.0","debug":"^4.3.4","dir-glob":"^3.0.1","p-filter":"^4.0.0","url-join":"^5.0.0","lodash-es":"^4.17.21","tinyglobby":"^0.2.14","issue-parser":"^7.0.0","@octokit/core":"^7.0.0","aggregate-error":"^5.0.0","http-proxy-agent":"^7.0.0","https-proxy-agent":"^7.0.0","@octokit/plugin-retry":"^8.0.0","@semantic-release/error":"^4.0.0","@octokit/plugin-throttling":"^11.0.0","@octokit/plugin-paginate-rest":"^13.0.0"},"lockfile-lint":{"path":"package-lock.json","type":"npm","allowed-hosts":["npm"],"validate-https":true},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"npm@11.4.1","readmeFilename":"README.md","devDependencies":{"c8":"10.1.3","ava":"6.4.1","cpy":"12.0.1","sinon":"21.0.0","tempy":"3.1.0","publint":"0.3.14","prettier":"3.6.2","fetch-mock":"npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1","ls-engines":"0.9.3","npm-run-all2":"8.0.4","lockfile-lint":"4.14.1","semantic-release":"24.2.9","cz-conventional-changelog":"3.3.0"},"peerDependencies":{"semantic-release":">=24.1.0"},"_npmOperationalInternal":{"tmp":"tmp/github_12.0.0-beta.4_1760393036824_0.008533124575685003","host":"s3://npm-registry-packages-npm-production"},"readme":"# @semantic-release/github\n\n[**semantic-release**](https://github.com/semantic-release/semantic-release) plugin to publish a\n[GitHub release](https://help.github.com/articles/about-releases) and comment on released Pull Requests/Issues.\n\n[![Build Status](https://github.com/semantic-release/github/actions/workflows/test.yml/badge.svg)](https://github.com/semantic-release/github/actions/workflows/test.yml?query=branch%3Amaster)\n\n[![npm latest version](https://img.shields.io/npm/v/@semantic-release/github/latest.svg)](https://www.npmjs.com/package/@semantic-release/github)\n[![npm next version](https://img.shields.io/npm/v/@semantic-release/github/next.svg)](https://www.npmjs.com/package/@semantic-release/github)\n[![npm beta version](https://img.shields.io/npm/v/@semantic-release/github/beta.svg)](https://www.npmjs.com/package/@semantic-release/github)\n\n| Step               | Description                                                                                                                                                                                                                              |\n| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `verifyConditions` | Verify the presence and the validity of the authentication (set via [environment variables](#environment-variables)) and the [assets](#assets) option configuration.                                                                     |\n| `publish`          | Publish a [GitHub release](https://help.github.com/articles/about-releases), optionally uploading file assets.                                                                                                                           |\n| `addChannel`       | Update a [GitHub release](https://help.github.com/articles/about-releases)'s `pre-release` field.                                                                                                                                        |\n| `success`          | Add a comment to each [GitHub Issue](https://help.github.com/articles/about-issues) or [Pull Request](https://help.github.com/articles/about-pull-requests) resolved by the release and close issues previously open by the `fail` step. |\n| `fail`             | Open or update a [GitHub Issue](https://help.github.com/articles/about-issues) with information about the errors that caused the release to fail.                                                                                        |\n\n## Install\n\n> [!TIP]\n> You do not need to directly depend on this package if you are using `semantic-release`.\n> `semantic-release` already depends on this package, and defining your own direct dependency can result in conflicts when you update `semantic-release`.\n\n```bash\n$ npm install @semantic-release/github -D\n```\n\n## Usage\n\nThe plugin can be configured in the [**semantic-release** configuration file](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration):\n\n```json\n{\n  \"plugins\": [\n    \"@semantic-release/commit-analyzer\",\n    \"@semantic-release/release-notes-generator\",\n    [\n      \"@semantic-release/github\",\n      {\n        \"assets\": [\n          { \"path\": \"dist/asset.min.css\", \"label\": \"CSS distribution\" },\n          { \"path\": \"dist/asset.min.js\", \"label\": \"JS distribution\" }\n        ]\n      }\n    ]\n  ]\n}\n```\n\nWith this example [GitHub releases](https://help.github.com/articles/about-releases) will be published with the file `dist/asset.min.css` and `dist/asset.min.js`.\n\n## Configuration\n\n### GitHub authentication\n\nThe GitHub authentication configuration is **required** and can be set via [environment variables](#environment-variables).\n\nFollow the [Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line) documentation to obtain an authentication token. The token has to be made available in your CI environment via the `GH_TOKEN` environment variable. The user associated with the token must have push permission to the repository.\n\nWhen creating the token, the **minimum required scopes** are:\n\n- [`repo`](https://github.com/settings/tokens/new?scopes=repo) for a private repository\n- [`public_repo`](https://github.com/settings/tokens/new?scopes=public_repo) for a public repository\n\n_Note on GitHub Actions:_ You can use the default token which is provided in the secret _GITHUB_TOKEN_. However releases done with this token will NOT trigger release events to start other workflows.\nIf you have actions that trigger on newly created releases, please use a generated token for that and store it in your repository's secrets (any other name than GITHUB_TOKEN is fine).\n\nWhen using the _GITHUB_TOKEN_, the **minimum required permissions** are:\n\n- `contents: write` to be able to publish a GitHub release\n- `issues: write` to be able to comment on released issues\n- `pull-requests: write` to be able to comment on released pull requests\n\n### Environment variables\n\n| Variable                       | Description                                                         |\n| ------------------------------ | ------------------------------------------------------------------- |\n| `GITHUB_TOKEN` or `GH_TOKEN`   | **Required.** The token used to authenticate with GitHub.           |\n| `GITHUB_URL` or `GH_URL`       | The GitHub server endpoint.                                         |\n| `GITHUB_PREFIX` or `GH_PREFIX` | The GitHub API prefix, relative to `GITHUB_URL`.                    |\n| `GITHUB_API_URL`               | The GitHub API endpoint. Note that this overwrites `GITHUB_PREFIX`. |\n\n### Options\n\n| Option                    | Description                                                                                                                                                                                            | Default                                                                                                                                              |\n| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `githubUrl`               | The GitHub server endpoint.                                                                                                                                                                            | `GH_URL` or `GITHUB_URL` environment variable.                                                                                                       |\n| `githubApiPathPrefix`     | The GitHub API prefix, relative to `githubUrl`.                                                                                                                                                        | `GH_PREFIX` or `GITHUB_PREFIX` environment variable.                                                                                                 |\n| `githubApiUrl`            | The GitHub API endpoint. Note that this overwrites `githubApiPathPrefix`.                                                                                                                              | `GITHUB_API_URL` environment variable.                                                                                                               |\n| `proxy`                   | The proxy to use to access the GitHub API. Set to `false` to disable usage of proxy. See [proxy](#proxy).                                                                                              | `HTTP_PROXY` environment variable.                                                                                                                   |\n| `assets`                  | An array of files to upload to the release. See [assets](#assets).                                                                                                                                     | -                                                                                                                                                    |\n| `successComment`          | The comment to add to each issue and pull request resolved by the release. Set to `false` to disable commenting on issues and pull requests. See [successComment](#successcomment).                    | `:tada: This issue has been resolved in version ${nextRelease.version} :tada:\\n\\nThe release is available on [GitHub release](<github_release_url>)` |\n| `successCommentCondition` | Use this as condition, when to comment on issues or pull requests. See [successCommentCondition](#successCommentCondition)                                                                             | -                                                                                                                                                    |\n| `failComment`             | The content of the issue created when a release fails. Set to `false` to disable opening an issue when a release fails. See [failComment](#failcomment).                                               | Friendly message with links to **semantic-release** documentation and support, with the list of errors that caused the release to fail.              |\n| `failTitle`               | The title of the issue created when a release fails. Set to `false` to disable opening an issue when a release fails.                                                                                  | `The automated release is failing 🚨`                                                                                                                |\n| `failCommentCondition`    | Use this as condition, when to comment on or create an issues in case of failures. See [failCommentCondition](#failCommentCondition).                                                                  | -                                                                                                                                                    |\n| `labels`                  | The [labels](https://help.github.com/articles/about-labels) to add to the issue created when a release fails. Set to `false` to not add any label.                                                     | `['semantic-release']`                                                                                                                               |\n| `assignees`               | The [assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users) to add to the issue created when a release fails.                                           | -                                                                                                                                                    |\n| `releasedLabels`          | The [labels](https://help.github.com/articles/about-labels) to add to each issue and pull request resolved by the release. Set to `false` to not add any label. See [releasedLabels](#releasedlabels). | `['released<%= nextRelease.channel ? \\` on @\\${nextRelease.channel}\\` : \"\" %>']-                                                                     |\n| `addReleases`             | Will add release links to the GitHub Release. Can be `false`, `\"bottom\"` or `\"top\"`. See [addReleases](#addReleases).                                                                                  | `false`                                                                                                                                              |\n| `draftRelease`            | A boolean indicating if a GitHub Draft Release should be created instead of publishing an actual GitHub Release.                                                                                       | `false`                                                                                                                                              |\n| `releaseNameTemplate`     | A [Lodash template](https://lodash.com/docs#template) to customize the github release's name                                                                                                           | `<%= nextRelease.name %>`                                                                                                                            |\n| `releaseBodyTemplate`     | A [Lodash template](https://lodash.com/docs#template) to customize the github release's body                                                                                                           | `<%= nextRelease.notes %>`                                                                                                                           |\n| `discussionCategoryName`  | The category name in which to create a linked discussion to the release. Set to `false` to disable creating discussion for a release.                                                                  | `false`                                                                                                                                              |\n\n#### proxy\n\nCan be `false`, a proxy URL or an `Object` with the following properties:\n\n| Property      | Description                                                    | Default                              |\n| ------------- | -------------------------------------------------------------- | ------------------------------------ |\n| `host`        | **Required.** Proxy host to connect to.                        | -                                    |\n| `port`        | **Required.** Proxy port to connect to.                        | File name extracted from the `path`. |\n| `secureProxy` | If `true`, then use TLS to connect to the proxy.               | `false`                              |\n| `headers`     | Additional HTTP headers to be sent on the HTTP CONNECT method. | -                                    |\n\nThis plugin uses [undici's ProxyAgent](https://github.com/nodejs/undici#proxyagent) for modern proxy support, with backwards compatibility maintained through [node-https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent#new-httpsproxyagentobject-options) and [node-http-proxy-agent](https://github.com/TooTallNate/node-http-proxy-agent). This ensures proxy functionality works with GitHub Enterprise Server environments behind corporate proxies.\n\n##### proxy examples\n\n`'http://168.63.76.32:3128'`: use the proxy running on host `168.63.76.32` and port `3128` for each GitHub API request.\n`{host: '168.63.76.32', port: 3128, headers: {Foo: 'bar'}}`: use the proxy running on host `168.63.76.32` and port `3128` for each GitHub API request, setting the `Foo` header value to `bar`.\n\n**Note**: This plugin now uses undici's ProxyAgent internally for enhanced proxy support, particularly beneficial for GitHub Enterprise Server environments behind corporate proxies. All existing proxy configurations remain fully compatible.\n\n#### assets\n\nCan be a [glob](https://github.com/isaacs/node-glob#glob-primer) or and `Array` of\n[globs](https://github.com/isaacs/node-glob#glob-primer) and `Object`s with the following properties:\n\n| Property | Description                                                                                              | Default                              |\n| -------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------ |\n| `path`   | **Required.** A [glob](https://github.com/isaacs/node-glob#glob-primer) to identify the files to upload. | -                                    |\n| `name`   | The name of the downloadable file on the GitHub release.                                                 | File name extracted from the `path`. |\n| `label`  | Short description of the file displayed on the GitHub release.                                           | -                                    |\n\nEach entry in the `assets` `Array` is globbed individually. A [glob](https://github.com/isaacs/node-glob#glob-primer)\ncan be a `String` (`\"dist/**/*.js\"` or `\"dist/mylib.js\"`) or an `Array` of `String`s that will be globbed together\n(`[\"dist/**\", \"!**/*.css\"]`).\n\nIf a directory is configured, all the files under this directory and its children will be included.\n\nThe `name` and `label` for each assets are generated with [Lodash template](https://lodash.com/docs#template). The following variables are available:\n\n| Parameter     | Description                                                                         |\n| ------------- | ----------------------------------------------------------------------------------- |\n| `branch`      | The branch from which the release is done.                                          |\n| `lastRelease` | `Object` with `version`, `gitTag` and `gitHead` of the last release.                |\n| `nextRelease` | `Object` with `version`, `gitTag`, `gitHead` and `notes` of the release being done. |\n| `commits`     | `Array` of commit `Object`s with `hash`, `subject`, `body` `message` and `author`.  |\n\n**Note**: If a file has a match in `assets` it will be included even if it also has a match in `.gitignore`.\n\n##### assets examples\n\n`'dist/*.js'`: include all the `js` files in the `dist` directory, but not in its sub-directories.\n\n`[['dist', '!**/*.css']]`: include all the files in the `dist` directory and its sub-directories excluding the `css`\nfiles.\n\n`[{path: 'dist/MyLibrary.js', label: 'MyLibrary JS distribution'}, {path: 'dist/MyLibrary.css', label: 'MyLibrary CSS distribution'}]`: include the `dist/MyLibrary.js` and `dist/MyLibrary.css` files, and label them `MyLibrary JS distribution` and `MyLibrary CSS distribution` in the GitHub release.\n\n`[['dist/**/*.{js,css}', '!**/*.min.*'], {path: 'build/MyLibrary.zip', label: 'MyLibrary'}]`: include all the `js` and\n`css` files in the `dist` directory and its sub-directories excluding the minified version, plus the\n`build/MyLibrary.zip` file and label it `MyLibrary` in the GitHub release.\n\n`[{path: 'dist/MyLibrary.js', name: 'MyLibrary-${nextRelease.gitTag}.js', label: 'MyLibrary JS (${nextRelease.gitTag}) distribution'}]`: include the file `dist/MyLibrary.js` and upload it to the GitHub release with name `MyLibrary-v1.0.0.js` and label `MyLibrary JS (v1.0.0) distribution` which will generate the link:\n\n> `[MyLibrary JS (v1.0.0) distribution](MyLibrary-v1.0.0.js)`\n\n#### successComment\n\nThe message for the issue comments is generated with [Lodash template](https://lodash.com/docs#template). The following variables are available:\n\n| Parameter     | Description                                                                                                                                                                                                                                                                                                                                        |\n| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `branch`      | `Object` with `name`, `type`, `channel`, `range` and `prerelease` properties of the branch from which the release is done.                                                                                                                                                                                                                         |\n| `lastRelease` | `Object` with `version`, `channel`, `gitTag` and `gitHead` of the last release.                                                                                                                                                                                                                                                                    |\n| `nextRelease` | `Object` with `version`, `channel`, `gitTag`, `gitHead` and `notes` of the release being done.                                                                                                                                                                                                                                                     |\n| `commits`     | `Array` of commit `Object`s with `hash`, `subject`, `body` `message` and `author`.                                                                                                                                                                                                                                                                 |\n| `releases`    | `Array` with a release `Object`s for each release published, with optional release data such as `name` and `url`.                                                                                                                                                                                                                                  |\n| `issue`       | A [GitHub API pull request object](https://developer.github.com/v3/search/#search-issues) for pull requests related to a commit, or [GitHub API issue object](https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#get-an-issue) for issues resolved via [keywords](https://help.github.com/articles/closing-issues-using-keywords) |\n\n##### successComment example\n\nThe `successComment` `This ${issue.pull_request ? 'pull request' : 'issue'} is included in version ${nextRelease.version}` will generate the comment:\n\n> This pull request is included in version 1.0.0\n\n#### successCommentCondition\n\nA [Lodash template](https://lodash.com/docs#template) string that should evaluate to a truthy or falsy variable. The following variables are available:\n\n| Parameter     | Description                                                                                                                                                    |\n| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `branch`      | `Object` with `name`, `type`, `channel`, `range` and `prerelease` properties of the branch from which the release is done.                                     |\n| `lastRelease` | `Object` with `version`, `channel`, `gitTag` and `gitHead` of the last release.                                                                                |\n| `nextRelease` | `Object` with `version`, `channel`, `gitTag`, `gitHead` and `notes` of the release being done.                                                                 |\n| `commits`     | `Array` of commit `Object`s with `hash`, `subject`, `body` `message` and `author`.                                                                             |\n| `releases`    | `Array` with a release `Object`s for each release published, with optional release data such as `name` and `url`.                                              |\n| `issue`       | A [GitHub API Pull Request object](https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#get-a-pull-request) for pull requests related to a commit |\n\n##### successCommentCondition example\n\n- do not create any comments at all: set to `false` or templating: `\"<% return false; %>\"`\n- to only comment on issues: `\"<% return !issue.pull_request; %>\"`\n- to only comment on pull requests: `\"<% return issue.pull_request; %>\"`\n- to avoid comment on PRs or issues created by Bots: `\"<% return issue.user.type !== 'Bot'; %>\"`\n- you can use labels to filter issues: `\"<% return issue.labels?.some((label) => { return label.name === ('semantic-release-relevant'); }); %>\"`\n\n> check the [GitHub API issue object](https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#get-an-issue) for properties which can be used for the filter\n\n#### failComment\n\nThe message for the issue content is generated with [Lodash template](https://lodash.com/docs#template). The following variables are available:\n\n| Parameter | Description                                                                                                                                                                                                                                                                                                            |\n| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `branch`  | The branch from which the release had failed.                                                                                                                                                                                                                                                                          |\n| `errors`  | An `Array` of [SemanticReleaseError](https://github.com/semantic-release/error). Each error has the `message`, `code`, `pluginName` and `details` properties.<br>`pluginName` contains the package name of the plugin that threw the error.<br>`details` contains a information about the error formatted in markdown. |\n\n##### failComment example\n\nThe `failComment` `This release from branch ${branch.name} had failed due to the following errors:\\n- ${errors.map(err => err.message).join('\\\\n- ')}` will generate the comment:\n\n> This release from branch master had failed due to the following errors:\n>\n> - Error message 1\n> - Error message 2\n\n#### failCommentCondition\n\nA [Lodash template](https://lodash.com/docs#template) string that should evaluate to a truthy or falsy variable. The following variables are available:\n\n| Parameter     | Description                                                                                                                                                                                                                                                                                                                                                                       |\n| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `branch`      | `Object` with `name`, `type`, `channel`, `range` and `prerelease` properties of the branch from which the release is done.                                                                                                                                                                                                                                                        |\n| `lastRelease` | `Object` with `version`, `channel`, `gitTag` and `gitHead` of the last release.                                                                                                                                                                                                                                                                                                   |\n| `nextRelease` | `Object` with `version`, `channel`, `gitTag`, `gitHead` and `notes` of the release being done.                                                                                                                                                                                                                                                                                    |\n| `commits`     | `Array` of commit `Object`s with `hash`, `subject`, `body` `message` and `author`.                                                                                                                                                                                                                                                                                                |\n| `releases`    | `Array` with a release `Object`s for each release published, with optional release data such as `name` and `url`.                                                                                                                                                                                                                                                                 |\n| `issue`       | A [GitHub API pull request object](https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#get-a-pull-request) for pull requests related to a commit, or [GitHub API issue object](https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#get-an-issue) for issues resolved via [keywords](https://help.github.com/articles/closing-issues-using-keywords) |\n\n##### failCommentCondition example\n\n- do not create any comments at all: set to `false` or templating: `\"<% return false; %>\"`\n- to only comment on main branch: `\"<% return branch.name === 'main' %>\"`\n- you can use labels to filter issues, i.e. to not comment if the issue is labeled with `wip`: `\"<% return !issue.labels?.includes('wip') %>\"`\n\n> check the [GitHub API Pull Request Object](https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#get-a-pull-request) for properties which can be used for the filter\n\n#### releasedLabels\n\nEach label name is generated with [Lodash template](https://lodash.com/docs#template). The following variables are available:\n\n| Parameter     | Description                                                                                                                                                                                                                                                                                                                                        |\n| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `branch`      | `Object` with `name`, `type`, `channel`, `range` and `prerelease` properties of the branch from which the release is done.                                                                                                                                                                                                                         |\n| `lastRelease` | `Object` with `version`, `channel`, `gitTag` and `gitHead` of the last release.                                                                                                                                                                                                                                                                    |\n| `nextRelease` | `Object` with `version`, `channel`, `gitTag`, `gitHead` and `notes` of the release being done.                                                                                                                                                                                                                                                     |\n| `commits`     | `Array` of commit `Object`s with `hash`, `subject`, `body` `message` and `author`.                                                                                                                                                                                                                                                                 |\n| `releases`    | `Array` with a release `Object`s for each release published, with optional release data such as `name` and `url`.                                                                                                                                                                                                                                  |\n| `issue`       | A [GitHub API pull request object](https://developer.github.com/v3/search/#search-issues) for pull requests related to a commit, or [GitHub API issue object](https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#get-an-issue) for issues resolved via [keywords](https://help.github.com/articles/closing-issues-using-keywords) |\n\n##### releasedLabels example\n\nThe `releasedLabels` ``['released<%= nextRelease.channel ? ` on @\\${nextRelease.channel}` : \"\" %> from <%= branch.name %>']`` will generate the label:\n\n> released on @next from branch next\n\n#### addReleases\n\nAdd links to other releases to the GitHub release body.\n\nValid values for this option are `false`, `\"top\"` or `\"bottom\"`.\n\n##### addReleases example\n\nSee [The introducing PR](https://github.com/semantic-release/github/pull/282) for an example on how it will look.\n","publish_time":1760393037004,"_cnpm_publish_time":1760393037004,"dist-tags":{"beta":"12.0.0-beta.4","latest":"12.0.10","next":"5.5.8"}}