{"id":16305967,"url":"https://github.com/songmu/tagpr","last_synced_at":"2026-04-26T18:01:21.076Z","repository":{"id":56775797,"uuid":"524603982","full_name":"Songmu/tagpr","owner":"Songmu","description":"automatically creates and updates a pull request for unreleased items, tag them when they are merged, and create releases.","archived":false,"fork":false,"pushed_at":"2026-04-12T11:55:42.000Z","size":667,"stargazers_count":294,"open_issues_count":14,"forks_count":36,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-12T13:09:26.798Z","etag":null,"topics":["github-actions","go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Songmu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["Songmu"]}},"created_at":"2022-08-14T07:35:48.000Z","updated_at":"2026-04-12T11:53:41.000Z","dependencies_parsed_at":"2026-04-05T10:01:52.013Z","dependency_job_id":null,"html_url":"https://github.com/Songmu/tagpr","commit_stats":{"total_commits":312,"total_committers":20,"mean_commits":15.6,"dds":0.4455128205128205,"last_synced_commit":"3dca11e7c0d68637ee212ddd35acc3d30a7403a4"},"previous_names":["songmu/rcpr"],"tags_count":82,"template":false,"template_full_name":null,"purl":"pkg:github/Songmu/tagpr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Songmu%2Ftagpr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Songmu%2Ftagpr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Songmu%2Ftagpr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Songmu%2Ftagpr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Songmu","download_url":"https://codeload.github.com/Songmu/tagpr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Songmu%2Ftagpr/sbom","scorecard":{"id":132325,"data":{"date":"2025-08-04","repo":{"name":"github.com/Songmu/tagpr","commit":"ebb5da0cccdb47c533d4b520ebc0acd475b16614"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":4.3,"checks":[{"name":"Code-Review","score":7,"reason":"Found 7/9 approved changesets -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"28 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yaml:1","Warn: no topLevel permission defined: .github/workflows/reviewdog.yml:1","Warn: no topLevel permission defined: .github/workflows/tagpr.yaml:1","Warn: no topLevel permission defined: .github/workflows/test.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/Songmu/tagpr/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/Songmu/tagpr/release.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/Songmu/tagpr/release.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/Songmu/tagpr/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reviewdog.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/Songmu/tagpr/reviewdog.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/reviewdog.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/Songmu/tagpr/reviewdog.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tagpr.yaml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/Songmu/tagpr/tagpr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tagpr.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/Songmu/tagpr/tagpr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tagpr.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/Songmu/tagpr/tagpr.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/Songmu/tagpr/test.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/Songmu/tagpr/test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yaml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/Songmu/tagpr/test.yaml/main?enable=pin","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.7.0 not signed: https://api.github.com/repos/Songmu/tagpr/releases/225309175","Warn: release artifact v1.6.1 not signed: https://api.github.com/repos/Songmu/tagpr/releases/218744125","Warn: release artifact v1.6.0 not signed: https://api.github.com/repos/Songmu/tagpr/releases/218731283","Warn: release artifact v1.5.2 not signed: https://api.github.com/repos/Songmu/tagpr/releases/213270341","Warn: release artifact v1.5.1 not signed: https://api.github.com/repos/Songmu/tagpr/releases/193458206","Warn: release artifact v1.7.0 does not have provenance: https://api.github.com/repos/Songmu/tagpr/releases/225309175","Warn: release artifact v1.6.1 does not have provenance: https://api.github.com/repos/Songmu/tagpr/releases/218744125","Warn: release artifact v1.6.0 does not have provenance: https://api.github.com/repos/Songmu/tagpr/releases/218731283","Warn: release artifact v1.5.2 does not have provenance: https://api.github.com/repos/Songmu/tagpr/releases/213270341","Warn: release artifact v1.5.1 does not have provenance: https://api.github.com/repos/Songmu/tagpr/releases/193458206"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-3295 / GHSA-55v3-xh23-96gh","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2025-3488 / GHSA-6v2p-p543-phr9"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T05:29:25.502Z","repository_id":56775797,"created_at":"2025-08-16T05:29:25.502Z","updated_at":"2025-08-16T05:29:25.502Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32307015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T17:23:19.671Z","status":"ssl_error","status_checked_at":"2026-04-26T17:23:19.195Z","response_time":129,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","go"],"created_at":"2024-10-10T21:09:19.553Z","updated_at":"2026-04-26T18:01:21.068Z","avatar_url":"https://github.com/Songmu.png","language":"Go","funding_links":["https://github.com/sponsors/Songmu"],"categories":[],"sub_categories":[],"readme":"tagpr\n=======\n\n[![Test Status](https://github.com/Songmu/tagpr/actions/workflows/test.yaml/badge.svg?branch=main)][actions]\n[![MIT License](https://img.shields.io/github/license/Songmu/tagpr)][license]\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/Songmu/tagpr)][PkgGoDev]\n\n[actions]: https://github.com/Songmu/tagpr/actions?workflow=test\n[license]: https://github.com/Songmu/tagpr/blob/main/LICENSE\n[PkgGoDev]: https://pkg.go.dev/github.com/Songmu/tagpr\n\nThe `tagpr` clarify the release flow. It automatically creates and updates a pull request for unreleased items, tag them when they are merged, and create releases.\n\n## Synopsis\n\nThe `tagpr` is designed to run on github actions.\n\n```yaml\n# .github/workflows/tagpr.yml\nname: tagpr\non:\n  push:\n    branches: [\"main\"]\njobs:\n  tagpr:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: write\n      pull-requests: write\n      issues: read\n    steps:\n    - uses: actions/checkout@v5\n      with:\n        persist-credentials: false\n    - uses: Songmu/tagpr@v1\n      env:\n        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\nTo enable pull requests to be created through GitHub Actions, check the \"Allow GitHub Actions to create and approve pull requests\" box in the \"Workflow permissions\" section under \"Settings \u003e Actions \u003e General\" in the repository where you are installing `tagpr`.\n\nIf you do not want to use the token provided by GitHub Actions, do the following This is useful if you want to trigger another action with a tag.\n\nref. \u003chttps://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow\u003e\n\nFor simplicity, we include an example of specifying a personal access token here. However, issuing the temporary token in conjunction with the GitHub App would be safer than a personal access token.\n\n```yaml\nname: tagpr\non:\n  push:\n    branches:\n    - main\njobs:\n  tagpr:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: write\n      pull-requests: write\n      issues: read\n    steps:\n    - uses: actions/checkout@v5\n      with:\n        token: ${{ secrets.GH_PAT }}\n        persist-credentials: false\n    - uses: Songmu/tagpr@v1\n      env:\n        GITHUB_TOKEN: ${{ secrets.GH_PAT }}\n```\n\n## Description\nBy using `tagpr`, the release flow can be made easier and more apparent because it can be put into a flow where the release is completed by pressing the merge button on a pull request that is automatically created.\n\nIf there are differences between the last release and the main branch, tagpr generates a pull request for the next release. The tagpr considers a semver tagged commit as a release. It would be standard practice.\n\nYou can leave this pull request until you want to make the next release; each time the main branch is updated, this pull request will automatically follow it.\n\nWhen this pull request is merged, the merge commit is automatically tagged, and GitHub Releases are created simultaneously.\n\nAs mentioned at the beginning of this section, the release process becomes simply a matter of pressing the merge button.\n\nIn addition, release items will be made into pull requests, allowing for visualization and review of necessary changes at the time of release. This is also important to prevent accidents.\n\n## Versioning Rules\nHow tagpr proposes the next version number and how to adjust it.\n\n### Semantic Versioning (Default)\n\n####  How to determine the next version number of candidate\nWhen creating or updating the release PR, tagpr computes the next version in the following steps.\n\n1. Find the latest semver tag (respecting `tagpr.tagPrefix`). If no tag exists yet, tagpr assumes the current version is `v0.0.0` and compares from the first commit.\n2. Inspect merged PRs since the last release. If any of those PRs have labels listed in `tagpr.majorLabels` or `tagpr.minorLabels` (defaults: `major`, `minor`), tagpr adds `tagpr:major` or `tagpr:minor` to the release PR automatically.\n3. Decide the next version from labels on the release PR: `tagpr:major` or `tagpr/major` =\u003e major bump, `tagpr:minor` or `tagpr/minor` =\u003e minor bump, otherwise patch bump. If both major and minor labels are present, major wins.\n4. When calendar versioning is enabled, labels are ignored and the version is date-based.\n\n#### Label behavior and conventions\ntagpr uses labels in two layers: merged PRs since the last release, and the release PR itself.\n\n- tagpr always adds the label `tagpr` to its own release PR so it can recognize it later.\n- You can change which labels on merged PRs map to major/minor by configuring `tagpr.majorLabels` and `tagpr.minorLabels` (or their environment variable equivalents).\n- You can force a major or minor bump by adding `tagpr:major` or `tagpr:minor` to the release PR.\n- **Dependabot PRs are excluded**: Labels on pull requests created by Dependabot (`dependabot[bot]`) are always ignored when determining the next version. Dependabot automatically adds `major`/`minor` labels based on the dependency's own SemVer change, which is unrelated to the project's versioning. This prevents unintended version bumps caused by dependency updates.\n\n### Calendar Versioning (Optional)\nWhen `tagpr.calendarVersioning` is set to `true` or a format string, tagpr uses date-based versioning.\nLabels are ignored, and versions are determined by the release date.\nSee [tagpr.calendarVersioning](#tagprcalendarversioning-optional) for details.\n\n### How to adjust the next version by yourself\nYou can adjust the next version number suggested by tagpr directly on the pull request created by tagpr.\n\nThere are two ways to do it.\n\n####  Version file\nEdit and commit the version file specified in the .tagpr configuration file to describe the next version\n\n####  Conventional labels\nAdd labels to the pull request like \"tagpr:minor\" or \"tagpr:major.\" It is helpful to use a flow that does not use version files.\n\nIf there is a discrepancy between the version file and the conventional labels at the time of merging, the specification in the version file takes precedence.\n\n## Configuration\nDescribe the settings in the .tagpr file directly under the repository in gitconfig format. This is automatically created the first time tagpr is run, but feel free to adjust it. The following configuration items are available\n\n### tagpr.releaseBranch\nGenerally, it is \"main.\" It is the branch for releases. The tagpr tracks this branch,\ncreates or updates a pull request as a release candidate, or tags when they are merged.\n\n### tagpr.versionFile\nVersioning file containing the semantic version needed to be updated at release.\nIt will be synchronized with the \"git tag\".\nOften this is a meta-information file such as gemspec, setup.cfg, package.json, etc.\nSometimes the source code file, such as version.go or Bar.pm, is used.\nIf you do not want to use versioning files but only git tags, specify the \"-\" string here.\nYou can specify multiple version files by comma separated strings.\n\n### tagpr.vPrefix\nFlag whether or not v-prefix is added to semver when git tagging. (e.g. v1.2.3 if true)  \nThis is only a tagging convention, not how it is described in the version file.\n\n### tagpr.changelog (Optional)\nFlag whether or not changelog is added or changed during the release.\n\n### tagpr.command (Optional)\nCommand to change files just before release and versioning.\n\n### tagpr.postVersionCommand (Optional)\nCommand to change files just after versioning.\n\n### tagpr.template (Optional)\nPull request template file in go template format\n\n### tagpr.templateText (Optional)\nPull request template text in go template format\n\n### tagpr.release (Optional)\nGitHub Release creation behavior after tagging `[true, draft, false]`  \nIf this value is not set, the release is to be created.\n\n### tagpr.majorLabels (Optional)\nLabel(s) of major update targets. Comma-separated. Default is `major`.\n\n### tagpr.minorLabels (Optional)\nLabel(s) of minor update targets. Comma-separated. Default is `minor`.\n\n### tagpr.commitPrefix (Optional)\nPrefix of commit message. Default is \"[tagpr]\"\n\n### tagpr.tagPrefix (Optional)\nTag prefix for monorepo support (e.g., `tools` produces tags like `tools/v1.2.3`).\nThis allows managing multiple modules with independent versioning in a single repository.\n\n### tagpr.changelogFile (Optional)\nPath to the changelog file. Default is `CHANGELOG.md`.\n\n### tagpr.releaseYAMLPath (Optional)\nPath to the GitHub release notes config file used by `gh2changelog`.\nIf not set, tagpr creates `.github/release.yml` on first run if neither `.github/release.yml` nor `.github/release.yaml` exists.\n\n### tagpr.calendarVersioning (Optional)\nUse Calendar Versioning (CalVer) instead of Semantic Versioning.\nSet to `true` to use the default format (`YYYY.MM0D.MICRO`), or specify a custom format string directly.\nLabels for major/minor are ignored when this option is enabled.\n\nAvailable format tokens (see https://calver.org):\n- Year: `YYYY` (4-digit), `YY` (2-digit), `0Y` (zero-padded 2-digit)\n- Month: `MM` (no padding), `0M` (zero-padded)\n- Week: `WW` (no padding), `0W` (zero-padded)\n- Day: `DD` (no padding), `0D` (zero-padded)\n- Micro: `MICRO` (auto-incrementing patch number for same date)\n\nExamples:\n- `true` or `\"YYYY.MM0D.MICRO\"` → `v2026.1203.0` (Dec 3rd, 2026)\n- `\"YYYY.0M.MICRO\"` → `v2026.01.0`\n- `\"YY.0M0D.MICRO\"` → `v26.0123.0`\n\n## GitHub Enterprise\nIf you are using GitHub Enterprise, use `GH_ENTERPRISE_TOKEN` instead of `GITHUB_TOKEN`.\n\n```yaml\n- uses: Songmu/tagpr@v1\n  env:\n    GH_ENTERPRISE_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Inputs for GitHub Actions\n\n### config (Optional)\nA path to the tagpr configuration file.\nIf not specified, it will be \".tagpr\" in the repository root.\n\n## Environment variables\nWhen running `tagpr.command` or `tagpr.postVersionCommand`, tagpr exports the following environment variables:\n\n- `TAGPR_CURRENT_VERSION`: the current version tag (e.g., `v1.2.3`)\n- `TAGPR_NEXT_VERSION`: the next version tag (e.g., `v1.3.0`)\n\n## Outputs for GitHub Actions\n\nThe tagpr produces output to be used in conjunction with subsequent GitHub Actions jobs.\n\n- `pull_request`: Information of the pull request created by tagpr in JSON format\n- `tag`: Tag strings are output only if the tagpr has tagged\n- `base_tag`: The base semver tag for comparison, empty if no previous tag exists\n\nIt is useful to see if tag is available and to run tasks after release. The following is an example of running action-update-semver after release.\n\n```yaml\n- uses: actions/checkout@v5\n  with:\n    persist-credentials: false\n- id: tagpr\n  uses: Songmu/tagpr@v1\n  env:\n    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n- uses: haya14busa/action-update-semver@v1\n  if: \"steps.tagpr.outputs.tag != ''\"\n  with:\n    tag: ${{ steps.tagpr.outputs.tag }}\n```\n\n## Author\n\n[Songmu](https://github.com/Songmu)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongmu%2Ftagpr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsongmu%2Ftagpr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongmu%2Ftagpr/lists"}