{"_id":"@bobvanderlinden/semantic-release-pull-request-analyzer","_rev":"8-abb75e7d9ceea745b60c7870eb302cb8","name":"@bobvanderlinden/semantic-release-pull-request-analyzer","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.1":{"name":"@bobvanderlinden/semantic-release-pull-request-analyzer","version":"1.0.1","author":{"name":"Bob van der Linden","email":"bobvanderlinden@gmail.com"},"license":"MIT","_id":"@bobvanderlinden/semantic-release-pull-request-analyzer@1.0.1","maintainers":[{"name":"bobvanderlinden","email":"bobvanderlinden@gmail.com"}],"homepage":"https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer","bugs":{"url":"https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer/issues"},"dist":{"shasum":"12e748c079c3b7a8c2ab3c6b9276ce955957e425","tarball":"https://registry.npmjs.org/@bobvanderlinden/semantic-release-pull-request-analyzer/-/semantic-release-pull-request-analyzer-1.0.1.tgz","fileCount":4,"integrity":"sha512-Mxw8r+9q+Tmo6jEVwct2/ptnNwfDEwkoeyTIiP1tuJjWEKTJrR81rWtUCuvhdo/XKFj6lRqxN/iWuJR1xGWlWg==","signatures":[{"sig":"MEQCIBDyRrX4F03vL5BQkAcDGey7aKJWP0nh1PZAIIQf9rpmAiAN4/KLjBz/aUOQhdIa3vlCNZTg9MsQ+Qqr3N5CpsJbzg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bobvanderlinden%2fsemantic-release-pull-request-analyzer@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10402},"main":"./index.js","type":"module","engines":{"node":">=20"},"exports":"./index.js","gitHead":"61f0672653630679c435bac9bd75f76b444793cc","release":{"branches":["main"]},"_npmUser":{"name":"bobvanderlinden","email":"bobvanderlinden@gmail.com"},"repository":{"url":"git+https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer.git","type":"git"},"_npmVersion":"10.5.0","description":"semantic-release plugin to analyze commits using merged pull request labels","directories":{},"_nodeVersion":"20.11.1","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"peerDependencies":{"semantic-release":"^23.0.6"},"_npmOperationalInternal":{"tmp":"tmp/semantic-release-pull-request-analyzer_1.0.1_1711702712461_0.132050343554718","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@bobvanderlinden/semantic-release-pull-request-analyzer","version":"1.0.2","author":{"name":"Bob van der Linden","email":"bobvanderlinden@gmail.com"},"license":"MIT","_id":"@bobvanderlinden/semantic-release-pull-request-analyzer@1.0.2","maintainers":[{"name":"bobvanderlinden","email":"bobvanderlinden@gmail.com"}],"homepage":"https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer","bugs":{"url":"https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer/issues"},"dist":{"shasum":"9c69724ed3e157570b8f2887989a594be3351ee9","tarball":"https://registry.npmjs.org/@bobvanderlinden/semantic-release-pull-request-analyzer/-/semantic-release-pull-request-analyzer-1.0.2.tgz","fileCount":4,"integrity":"sha512-3ZlNE2Bbr/zDZq2u6JvaqrRzMkUbzo3+66Uq+r4LwntFw8SibdMM2BRIrYiacvW+dMzgtf4QHk3Hwj2u2FTZDA==","signatures":[{"sig":"MEYCIQC0uN7YVa7btVS4nP1FEB+6mYwsO4YLOC3mBnbjrvsBHwIhAP/l4we0BVvkXMOHiBG0SXam+9o/d53CCKtfvXQSrdjI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bobvanderlinden%2fsemantic-release-pull-request-analyzer@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10573},"main":"./index.js","type":"module","engines":{"node":">=20"},"exports":"./index.js","gitHead":"0ccd7a13e57131e38df8f34fb1ae07d4bfd6a26c","release":{"branches":["main"]},"_npmUser":{"name":"bobvanderlinden","email":"bobvanderlinden@gmail.com"},"repository":{"url":"git+https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer.git","type":"git"},"_npmVersion":"10.8.2","description":"semantic-release plugin to analyze commits using merged pull request labels","directories":{},"_nodeVersion":"20.15.1","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"npm@10.8.2+sha512.c7f0088c520a46596b85c6f8f1da943400199748a0f7ea8cb8df75469668dc26f6fb3ba26df87e2884a5ebe91557292d0f3db7d0929cdb4f14910c3032ac81fb","peerDependencies":{"semantic-release":">=23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/semantic-release-pull-request-analyzer_1.0.2_1721832225170_0.6272603539621309","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@bobvanderlinden/semantic-release-pull-request-analyzer","version":"1.0.3","author":{"name":"Bob van der Linden","email":"bobvanderlinden@gmail.com"},"license":"MIT","_id":"@bobvanderlinden/semantic-release-pull-request-analyzer@1.0.3","maintainers":[{"name":"bobvanderlinden","email":"bobvanderlinden@gmail.com"}],"homepage":"https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer","bugs":{"url":"https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer/issues"},"dist":{"shasum":"a822aeb8c2a4c9be5aade1eae0162bf7643f38de","tarball":"https://registry.npmjs.org/@bobvanderlinden/semantic-release-pull-request-analyzer/-/semantic-release-pull-request-analyzer-1.0.3.tgz","fileCount":4,"integrity":"sha512-Kk6tAkmKtmXD/n1WbtdOqfYHf7SVltrRCclCAtAZFxaz4y3BVWhSqgiIFWAr2JjFI3HX/rLzynTk1HMrHMJ+TA==","signatures":[{"sig":"MEUCIQCJGR7Gs91JgCKsEb5Dd/Y2JDw+nidaBNqNbrkRERid8QIgOvexxNqfuJO06cpFpVM8aeNipiXScLy3oPtjDL6tpeU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bobvanderlinden%2fsemantic-release-pull-request-analyzer@1.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10573},"main":"./index.js","type":"module","engines":{"node":">=18"},"exports":"./index.js","gitHead":"de514e414ac5219c5f57f62c63005078a0877c24","release":{"branches":["main"]},"_npmUser":{"name":"bobvanderlinden","email":"bobvanderlinden@gmail.com"},"repository":{"url":"git+https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer.git","type":"git"},"_npmVersion":"10.8.2","description":"semantic-release plugin to analyze commits using merged pull request labels","directories":{},"_nodeVersion":"20.15.1","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"npm@10.8.2+sha512.c7f0088c520a46596b85c6f8f1da943400199748a0f7ea8cb8df75469668dc26f6fb3ba26df87e2884a5ebe91557292d0f3db7d0929cdb4f14910c3032ac81fb","peerDependencies":{"semantic-release":">=23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/semantic-release-pull-request-analyzer_1.0.3_1721832523275_0.4608287120756802","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@bobvanderlinden/semantic-release-pull-request-analyzer","version":"1.0.4","author":{"name":"Bob van der Linden","email":"bobvanderlinden@gmail.com"},"license":"MIT","_id":"@bobvanderlinden/semantic-release-pull-request-analyzer@1.0.4","maintainers":[{"name":"bobvanderlinden","email":"bobvanderlinden@gmail.com"}],"homepage":"https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer","bugs":{"url":"https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer/issues"},"dist":{"shasum":"4ce6a884495dc4447a76e0f65b532786b6ba0f4c","tarball":"https://registry.npmjs.org/@bobvanderlinden/semantic-release-pull-request-analyzer/-/semantic-release-pull-request-analyzer-1.0.4.tgz","fileCount":4,"integrity":"sha512-+4X/13kODIlqORnm0qe9KdVKrsllvLo6e+pBHR3/CFsXzwhgD8lT48hVHhbf6T50HDU2vdPlIuqnYFHM+C2zRQ==","signatures":[{"sig":"MEUCIERH7lJPkEj5kY9OMQaLh8zpWIRsj+dXVl7LmoXzgHMwAiEA52YnefNSHwDIP62t+tXm0uI0dLjvJwcjqArLcM5BQVg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bobvanderlinden%2fsemantic-release-pull-request-analyzer@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10573},"main":"./index.js","type":"module","engines":{"node":">=18"},"exports":"./index.js","gitHead":"b3837fcbddf4af2e8cf5421bd63c02e43728f596","release":{"branches":["main"]},"_npmUser":{"name":"bobvanderlinden","email":"bobvanderlinden@gmail.com"},"repository":{"url":"git+https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer.git","type":"git"},"_npmVersion":"10.8.2","description":"semantic-release plugin to analyze commits using merged pull request labels","directories":{},"_nodeVersion":"20.15.1","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"npm@10.8.2+sha512.c7f0088c520a46596b85c6f8f1da943400199748a0f7ea8cb8df75469668dc26f6fb3ba26df87e2884a5ebe91557292d0f3db7d0929cdb4f14910c3032ac81fb","peerDependencies":{"semantic-release":">=21.0.0"},"_npmOperationalInternal":{"tmp":"tmp/semantic-release-pull-request-analyzer_1.0.4_1721833188099_0.6159404640958981","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@bobvanderlinden/semantic-release-pull-request-analyzer","description":"semantic-release plugin to analyze commits using merged pull request labels","version":"1.1.1","type":"module","author":{"name":"Bob van der Linden","email":"bobvanderlinden@gmail.com"},"engines":{"node":">=18"},"publishConfig":{"access":"public","provenance":true},"repository":{"type":"git","url":"git+https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer.git"},"scripts":{"test":"node --test"},"license":"MIT","homepage":"https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer","exports":"./index.js","main":"./index.js","release":{"branches":["main"]},"devDependencies":{"semantic-release":"^25.0.3"},"peerDependencies":{"semantic-release":">=21.0.0"},"gitHead":"f70b59734354f2b29c731e89c5430896592e6d0c","_id":"@bobvanderlinden/semantic-release-pull-request-analyzer@1.1.1","bugs":{"url":"https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer/issues"},"_nodeVersion":"24.14.1","_npmVersion":"11.13.0","dist":{"integrity":"sha512-nsNwS2pRX+007/9fmY+syDpHmETFQv7mvB3L6mqzmgYFcE6iGO8HGm43rIlrVCx8TA5qRX95sM6StdbiHlrJPg==","shasum":"4e8b744d4f096716a9376663fb6558d3f794c922","tarball":"https://registry.npmjs.org/@bobvanderlinden/semantic-release-pull-request-analyzer/-/semantic-release-pull-request-analyzer-1.1.1.tgz","fileCount":4,"unpackedSize":11345,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bobvanderlinden%2fsemantic-release-pull-request-analyzer@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDeGwtD/XNJlcsM3bUHDcpN2UBH78VvN2z7ECPViR0S2QIhAO35SiWMbhAnm8sCdt8Jr1VUMEfjrhcyxjQMgMhYiRmS"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e3c00e23-18e1-44d7-98bf-e77fc97f2657"}},"directories":{},"maintainers":[{"name":"bobvanderlinden","email":"bobvanderlinden@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/semantic-release-pull-request-analyzer_1.1.1_1777798664389_0.65881806758579"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-29T08:58:32.340Z","modified":"2026-05-03T08:57:44.775Z","1.0.0":"2024-03-28T17:11:51.319Z","1.0.1":"2024-03-29T08:58:32.620Z","1.0.2":"2024-07-24T14:43:45.365Z","1.0.3":"2024-07-24T14:48:43.437Z","1.0.4":"2024-07-24T14:59:48.224Z","1.1.1":"2026-05-03T08:57:44.517Z"},"bugs":{"url":"https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer/issues"},"author":{"name":"Bob van der Linden","email":"bobvanderlinden@gmail.com"},"license":"MIT","homepage":"https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer","repository":{"type":"git","url":"git+https://github.com/bobvanderlinden/semantic-release-pull-request-analyzer.git"},"description":"semantic-release plugin to analyze commits using merged pull request labels","maintainers":[{"name":"bobvanderlinden","email":"bobvanderlinden@gmail.com"}],"readme":"# semantic-release-pull-request-analyzer\n\nA plugin for semantic-release that analyzes GitHub pull request labels instead of semantic commit messages. It allows using `semantic-release` without requiring semantic-commits.\n\nIt goes through commits and looks up the labels of the associated merged pull requests. From the labels it determines the release type.\n\nIn addition, it uses [GitHub automatically generates release notes](https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes) to generate release notes. This may be configured using [`release.yml`](https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#example-configurations).\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    [\n      \"@bobvanderlinden/semantic-release-pull-request-analyzer\",\n      {\n        \"labels\": {\n          \"enhancement\": \"minor\",\n          \"documentation\": \"patch\",\n          \"bug\": \"patch\"\n        }\n      }\n    ]\n  ]\n}\n```\n\nWith this example:\n\n- merged pull requests with label `enhancement` will result in a `minor` release.\n- merged pull requests with label `documentation` will result in a `patch` release.\n- merged pull requests with label `bug` will result in a `patch` release.\n\n### Supported merge strategies\n\nThis plugin supports the following GitHub merge strategies:\n\n- **Merge commit**: Commits with title `Merge pull request #123 from ...`\n- **Squash and merge**: Commits with title ending in `(#123)` (GitHub's default squash merge format)\n\n**Note**: Custom merge commit titles are not supported. The plugin relies on GitHub's default merge commit formats to extract PR numbers. If you modify the merge commit title when merging, the plugin will not be able to associate the commit with a pull request.\n\n## Configuration\n\nMake sure there is a valid `GITHUB_TOKEN` that has at least `contents: read` rights.\n\nMake sure `@semantic-release/commit-analyzer` nor `@semantic-release/release-notes-generator` are included plugins. These plugins conflict with the commit analyzer and release note generator of `semantic-release-pull-request-analyzer`.\n\n### Options\n\n| Option | Description |\n| ------ | ----------- |\n| `labels` | Required. An object that maps GitHub pull request labels to release types. The keys are the label names and the values are the corresponding release types. |\n| `repository` | Optional. The owner/repo of the GitHub repository. Example `myusername/myproject`. Defaults to using `GITHUB_REPOSITORY`. |\n| `apiUrl` | Optional. The GitHub API URL. Defaults to `GITHUB_API_URL`. |\n| `token` | Optional. The GitHub token. Defaults to `GITHUB_TOKEN`. |\n\nPossible release types are:\n\n- `prerelease`\n- `prepatch`\n- `patch`\n- `preminor`\n- `minor`\n- `premajor`\n- `major`\n\n### Environment variables\n\n| Variable              | Description                           |\n| --------------------- | ------------------------------------- |\n| `GITHUB_TOKEN`        | Required. Token for GitHub API access. |\n| `GITHUB_API_URL`      | Optional. URL for the GitHub API. Defaults to `https://api.github.com`              |\n| `GITHUB_REPOSITORY`   | Optional. Owner/repo of the GitHub repository. Example `myusername/myproject`. Defaults to [`repositoryUrl`](https://semantic-release.gitbook.io/semantic-release/usage/configuration#repositoryurl)       |\n","readmeFilename":"README.md"}