{"id":15767936,"url":"https://github.com/technote-space/get-next-version-action","last_synced_at":"2025-04-21T03:32:31.691Z","repository":{"id":37002049,"uuid":"242908838","full_name":"technote-space/get-next-version-action","owner":"technote-space","description":"GitHub Actions to get next version from commit histories.","archived":false,"fork":false,"pushed_at":"2024-03-08T08:09:51.000Z","size":7587,"stargazers_count":5,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T21:53:18.424Z","etag":null,"topics":["conventional-commits","github-actions","semantic-versioning"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/technote-space.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://paypal.me/technote0space"}},"created_at":"2020-02-25T04:23:36.000Z","updated_at":"2024-11-08T10:45:07.000Z","dependencies_parsed_at":"2024-10-04T13:42:03.535Z","dependency_job_id":"20c8f167-6f82-40d5-b76c-02e8aa994aea","html_url":"https://github.com/technote-space/get-next-version-action","commit_stats":{"total_commits":283,"total_committers":2,"mean_commits":141.5,"dds":"0.36749116607773846","last_synced_commit":"30c250c562f5f876ce393f64586d85c2163a7435"},"previous_names":[],"tags_count":133,"template":false,"template_full_name":"technote-space/gh-actions-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Fget-next-version-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Fget-next-version-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Fget-next-version-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Fget-next-version-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technote-space","download_url":"https://codeload.github.com/technote-space/get-next-version-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249991162,"owners_count":21357214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["conventional-commits","github-actions","semantic-versioning"],"created_at":"2024-10-04T13:41:50.696Z","updated_at":"2025-04-21T03:32:31.300Z","avatar_url":"https://github.com/technote-space.png","language":"TypeScript","funding_links":["https://paypal.me/technote0space"],"categories":[],"sub_categories":[],"readme":"# Get Next Version Action\n\n[![CI Status](https://github.com/technote-space/get-next-version-action/workflows/CI/badge.svg)](https://github.com/technote-space/get-next-version-action/actions)\n[![codecov](https://codecov.io/gh/technote-space/get-next-version-action/branch/main/graph/badge.svg)](https://codecov.io/gh/technote-space/get-next-version-action)\n[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/get-next-version-action/badge)](https://www.codefactor.io/repository/github/technote-space/get-next-version-action)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/get-next-version-action/blob/main/LICENSE)\n\n*Read this in other languages: [English](README.md), [日本語](README.ja.md).*\n\nコミット履歴から次のバージョンを取得するための GitHub Actions です。\n\n## Table of Contents\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n- [使用方法](#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95)\n- [Options](#options)\n- [Outputs](#outputs)\n- [Action イベント詳細](#action-%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E8%A9%B3%E7%B4%B0)\n  - [対象イベント](#%E5%AF%BE%E8%B1%A1%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88)\n- [Author](#author)\n\n\u003c/details\u003e\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## 使用方法\n例：リリースタグを付与\n```yaml\non:\n  pull_request:\n    branches:\n      - main\n    types: [closed]\n\nname: Add release tag\n\njobs:\n  tag:\n    name: Add release tag\n    runs-on: ubuntu-latest\n    if: github.event.pull_request.merged == true \u0026\u0026 github.event.pull_request.head.ref == 'release/next'\n    steps:\n      - name: Get next version\n        uses: technote-space/get-next-version-action@v1\n      - uses: actions/github-script@0.4.0\n        with:\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          script: |\n            github.git.createRef({\n              owner: context.repo.owner,\n              repo: context.repo.repo,\n              ref: `refs/tags/${process.env.NEXT_VERSION}`,\n              sha: context.sha\n            })\n```\n\n## Options\n| name | description | default | required | e.g. |\n|:---:|:---|:---:|:---:|:---:|\n|MINOR_UPDATE_TYPES|マイナーアップデートのコミットタイプ|`feat`| |`feat, refactor`|\n|EXCLUDE_MESSAGES|除外するコミットメッセージ| | |`tweaks`|\n|BREAKING_CHANGE_NOTES|破壊的変更を示すキーワード|`BREAKING CHANGE`| |`BREAKING`|\n|SET_ENV_NAME|環境変数名|`NEXT_VERSION`| |`NEW_TAG`|\n|GITHUB_TOKEN|アクセストークン|`${{github.token}}`|true|`${{secrets.ACCESS_TOKEN}}`|\n\n## Outputs\n| name | description | e.g. |\n|:---:|:---|:---:|\n|current|現在のバージョン|`v1.2.3`|\n|next|次のバージョン|`v1.3.0`|\n\n## Action イベント詳細\n### 対象イベント\n| eventName | action |\n|:---:|:---:|\n|pull_request, pull_request_target|opened, reopened, synchronize, closed|\n\n## Author\n[GitHub (Technote)](https://github.com/technote-space)  \n[Blog](https://technote.space)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnote-space%2Fget-next-version-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnote-space%2Fget-next-version-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnote-space%2Fget-next-version-action/lists"}