{"id":23291895,"url":"https://github.com/jeeftor/fastlane-plugin-version_from_last_tag","last_synced_at":"2025-04-06T18:23:58.492Z","repository":{"id":73760442,"uuid":"62659565","full_name":"jeeftor/fastlane-plugin-version_from_last_tag","owner":"jeeftor","description":null,"archived":false,"fork":false,"pushed_at":"2016-07-05T19:12:56.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T00:22:38.536Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/jeeftor.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,"publiccode":null,"codemeta":null}},"created_at":"2016-07-05T18:21:55.000Z","updated_at":"2016-07-05T18:22:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"30551a85-12a9-4a85-a6d6-f122de94ba24","html_url":"https://github.com/jeeftor/fastlane-plugin-version_from_last_tag","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeeftor%2Ffastlane-plugin-version_from_last_tag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeeftor%2Ffastlane-plugin-version_from_last_tag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeeftor%2Ffastlane-plugin-version_from_last_tag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeeftor%2Ffastlane-plugin-version_from_last_tag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeeftor","download_url":"https://codeload.github.com/jeeftor/fastlane-plugin-version_from_last_tag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247527823,"owners_count":20953314,"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":[],"created_at":"2024-12-20T05:28:07.008Z","updated_at":"2025-04-06T18:23:58.458Z","avatar_url":"https://github.com/jeeftor.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# version\\_from\\_last\\_tag plugin\n\n[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-version_from_last_tag)\n\n## Getting Started\n\nThis project is a [fastlane](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-version_from_last_tag`, add it to your project by running:\n\n```bash\nfastlane add_plugin version_from_last_tag\n```\n\n## About version\\_from\\_last\\_tag\n\nPerform a regex on last (latest) git tag and perform a regex to extract a version number such as Release 1.2.3\n\nThis action requires that a repo have a remote set - as part of the process is to fetch the latest tag set.  It was initially designed for cases where a repo was shallow cloned, however it works perfectly well with full repos as well.  The command will try to fetch the last branch tag entry and try to parse it using a regex. The default regex format is\n\n\n ```regex\n^\\\\D*([\\\\.0-9]*)\n ```\n\nIt will look for a sequence of non-digets and then at the first digit it will capture \nany of the following characters:    `0 1 2 3 4 5 6 7 8 9 .`\n\nSo for example\n\n```\n  release-1.2   =\u003e 1.2\n  v1.0          =\u003e 1.0\n  version1      =\u003e 1\n  version 1.2.3 =\u003e 1.2.3\n```\n\nThis plugin was designed to be used with a **GitFlow** workflow so that version numbers for the release branch would always match the latest tag on master\n\n\n## Usage\n\nTo force the current version number to match whatever the latest release version is you would use the following code block\n\n```ruby\n    #Extract Version Number and set it\n    version_number = version_from_last_tag\n    increment_version_number(version_number: version_number)\n    increment_build_number\n```\n\n**Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)\n\n## Run tests for this plugin\n\nTo run both the tests, and code style validation, run\n\n```\nrake\n```\n\nTo automatically fix many of the styling issues, use \n\n```\nrubocop -a\n```\n\n## Issues and Feedback\n\nFor any other issues and feedback about this plugin, please submit it to this repository.\n\n## Troubleshooting\n\nIf you have trouble using plugins, check out the [Plugins Troubleshooting](https://github.com/fastlane/fastlane/blob/master/fastlane/docs/PluginsTroubleshooting.md) doc in the main `fastlane` repo.\n\n## Using `fastlane` Plugins\n\nFor more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Plugins.md).\n\n## About `fastlane`\n\n`fastlane` is the easiest way to automate building and releasing your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeeftor%2Ffastlane-plugin-version_from_last_tag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeeftor%2Ffastlane-plugin-version_from_last_tag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeeftor%2Ffastlane-plugin-version_from_last_tag/lists"}