{"id":17493334,"url":"https://github.com/snsinahub-org/semver","last_synced_at":"2026-04-30T17:31:13.757Z","repository":{"id":64802492,"uuid":"572223253","full_name":"snsinahub-org/semver","owner":"snsinahub-org","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-13T04:13:18.000Z","size":3447,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-12T04:04:19.205Z","etag":null,"topics":["actions","github-actions","semver","semver-release","semver-release-tag"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snsinahub-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2022-11-29T20:13:32.000Z","updated_at":"2025-05-21T20:19:15.000Z","dependencies_parsed_at":"2024-03-14T13:48:12.343Z","dependency_job_id":"103a9612-6d65-4204-a3c9-017de9802e0a","html_url":"https://github.com/snsinahub-org/semver","commit_stats":{"total_commits":219,"total_committers":3,"mean_commits":73.0,"dds":0.07762557077625576,"last_synced_commit":"fd2fbb8343c179844c8d43a8c3335f19caf98725"},"previous_names":[],"tags_count":8,"template":true,"template_full_name":null,"purl":"pkg:github/snsinahub-org/semver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snsinahub-org%2Fsemver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snsinahub-org%2Fsemver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snsinahub-org%2Fsemver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snsinahub-org%2Fsemver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snsinahub-org","download_url":"https://codeload.github.com/snsinahub-org/semver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snsinahub-org%2Fsemver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32472396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: 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":["actions","github-actions","semver","semver-release","semver-release-tag"],"created_at":"2024-10-19T12:06:35.513Z","updated_at":"2026-04-30T17:31:13.741Z","avatar_url":"https://github.com/snsinahub-org.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# An action to generate semver and create release based on generated version\n\nThis action finds the latest Github release semantic version number and generates a new version. This action optionally can create a new release and upload release assets based on new the version number.\n\n\n## Action Parameters\n```YAML\n- name: 'Get semver'\n  id: semver\n  uses: \"snsinahub-org/semver@v4.0.1\"\n  with:\n  \n    # List of variables\n    \n    # Required: false\n    # Default: ${{ github.repository }}\n    repo: ${{ github.repository }}\n    \n    # Required: false\n    # Default: ${{ github.token }}\n    token: ${{ github.token }}\n    \n    # Description: semver is incrementing based on type value\n    # Required: true\n    # Default: 'PATCH'\n    # Accepted values: major, minor, patch\n    type: 'PATCH'\n\n    # Description: semver action exits if type is not provided.\n    # Required: true\n    # Default: 'no'\n    # Accepted values: yes, no\n    exit-on-missing-type: 'no'\n    \n    # Description:  You can add a prefix to semver e.g. v1.0.0 \n    # Required: false\n    # Default: ''\n    prefix: ''\n    \n    # Description: if create-release enabled, you can add one or multiple files\n    # Required: false\n    # Default: ''\n    files: \n    \n    # Description: make a release pre-release if the value is yes\n    # Required: false\n    # Default: 'no'\n    # Accepted values: no, yes\n    prerelease:\n    \n    # Description: This will be release body, you can add changelog or additional description to your release\n    # Required: false\n    # The changelog is automatically added as a release note\n    # The body value will be appended to changelog\n    # Default: ''\n    body: \n    \n    \n    # Description: Actions will create a new release if the value sets to yes\n    # Required: false\n    # Default: 'yes'\n    # Accepted values: no, yes\n    create-release: \n    \n    # Description: Specify which branch must be used to create a new release. Default value is repository's branch e.g. main or master\n    # Required: false\n    # Default: 'default-branch'\n    branch: \n\n    # Description:  You can choose a tag prefix to filter the latest release\n    # For example, If latest release is v2.0.0 and you'd like have a release based on v1, you can set the value to 'v1.' to generate new release starts with v1.\n    # Required: false\n    # Default: ''\n    starts-with: ''\n```\n\n## Output\n```YAML\n  # Genereated version based on type \n  version: \n```\n\n## Examples\n\n## How to generate new version\nLet's say current version is `v1.0.0` and you can set `type` equal to one of these values \n\n- **MAJOR**: It is a major change to your software which may not be compatible with older releases. The new version will be `v3.0.0` \n- **MINOR**: The change is smaller and adds new features to an existing project but still compatible with the current version. The new version is `v1.1.0`\n- **PATCH**: There is a bug fix without introducing new features. The new version is `v1.0.1`\n\n\n### Action sample \n\n```YAML\n    - name: checkout\n        uses: actions/checkout@4\n    - name: 'Get semver based on pr label'\n        id: semver\n        uses: \"snsinahub-org/semver@v4.0.1\"\n        with:\n          type: 'MAJOR'\n          prefix: 'v'\n          body: 'Release body text... '\n          create-release: 'yes'\n          files: |\n            Dockerfile\n            action.yml\n            code-coverage-report.zip\n      - name: 'print version'        \n        run: |\n         echo ${{ steps.semver.outputs.version }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnsinahub-org%2Fsemver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnsinahub-org%2Fsemver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnsinahub-org%2Fsemver/lists"}