{"id":24302899,"url":"https://github.com/digipolitan/fastlane-common","last_synced_at":"2026-04-18T22:01:45.858Z","repository":{"id":98675271,"uuid":"75535981","full_name":"Digipolitan/fastlane-common","owner":"Digipolitan","description":null,"archived":false,"fork":false,"pushed_at":"2018-12-09T19:17:17.000Z","size":47,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T14:31:38.228Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Digipolitan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-12-04T12:28:14.000Z","updated_at":"2024-02-16T09:16:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"96e55297-3d7d-450f-8bd4-571c3672e9ea","html_url":"https://github.com/Digipolitan/fastlane-common","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Digipolitan/fastlane-common","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Ffastlane-common","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Ffastlane-common/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Ffastlane-common/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Ffastlane-common/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Digipolitan","download_url":"https://codeload.github.com/Digipolitan/fastlane-common/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Ffastlane-common/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31986325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"ssl_error","status_checked_at":"2026-04-18T20:23:29.375Z","response_time":103,"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":[],"created_at":"2025-01-17T00:20:01.035Z","updated_at":"2026-04-18T22:01:45.825Z","avatar_url":"https://github.com/Digipolitan.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Digipolitan fastlane-common\n================\n\nCreate common actions used by sub Digipolitan fastlane-repositories\n\n## Installation\nTo install fastlane, simply use gem:\n\n```\n[sudo] gem install fastlane\n```\n\n# Available Fastlane Lanes\nAll lanes available are described [here](fastlane/README.md)\n\n# Available Fastlane actions\n\n## [ensure_git_flow_init](fastlane/actions/ensure_git_flow_init.rb)\n\nThis action check if git flow is initialized\n\n```Ruby\nensure_git_flow_init()\n```\n\n## [files_matching](fastlane/actions/files_matching.rb)\n\nThis action return an array of files matching with the given pattern\n\n```Ruby\nfiles = files_matching(\n  pattern: \"*.txt\",\n  directory: \"./assets\"\n)\nprint files.length + \" txt files\"\n```\nThis command search all files with txt extension on the assets directory\n\n## [get_changelog](fastlane/actions/get_changelog.rb)\n\nRetrieves the last changelog content\n\n```Ruby\nchangelog = get_changelog()\n```\n\n## [get_next_build_number](fastlane/actions/get_next_build_number.rb)\n\nRetrieves the next build number\n\n```Ruby\nnext_build = get_next_build_number(\n  build_number: \"789\"\n)\nprint next_build # Display 790\n```\n\n## [get_next_version_number](fastlane/actions/get_next_version_number.rb)\n\nRetrieves the next version number\n\n```Ruby\nnext_version = get_next_version_number(\n  version_number: \"1.0.6\",\n  bump_type: \"minor\"\n)\nprint next_version # Display 1.1.0\n```\n\n## [git_branch_exists](fastlane/actions/git_branch_exists.rb)\n\nCheck if the given branch exists\n\n```Ruby\nif git_branch_exists(branch: \"release/1.0.1\")\n  print \"Release 1.0.1 branch exists\"\nend\n```\n\n## [git_flow_release](fastlane/actions/git_flow_release.rb)\n\nThis action execute a git flow release command\n\n```Ruby\ngit_flow_release(\n  action: \"start\",\n  name: \"1.0.5\"\n)\n```\nStart a new release version 1.0.5 on your git repository\n\n```Ruby\ngit_flow_release(\n  action: \"finish\",\n  name: \"1.0.5\"\n)\n```\nComplete the release version 1.0.5 on your git repository\n\n## [git_get_develop_branch](fastlane/actions/git_get_develop_branch.rb)\n\nRetrieves the develop branch of your git repository, the default value is **develop**, but can be changed using git-flow\n\n```Ruby\nbranch = git_get_develop_branch()\nprint branch\n```\n\n## [git_get_master_branch](fastlane/actions/git_get_master_branch.rb)\n\nRetrieves the master branch of your git repository, the default value is **master**, but can be changed using git-flow\n\n```Ruby\nbranch = git_get_master_branch()\nprint branch\n```\n\n## [git_get_remote_info](fastlane/actions/git_get_remote_info.rb)\n\nThis action retrieves information about the git remote\n\n```Ruby\ninfo = git_get_remote_info()\nprint info[:path]\n```\n\n## [git_version_availability](fastlane/actions/git_version_availability.rb)\n\nValidate the version using git tag, ask the user to change the version and the build number if the tag exists\n\n```Ruby\ngit_version_availability(version_number: \"1.1.8\")\nprint Actions.lane_context[SharedValues::GIT_BUILD_TAG]\n```\nThis action update 4 lane_context\n\n## [new_changelog_version](fastlane/actions/new_changelog_version.rb)\n\nAdds to the changelog file the content of the new version\n\n```Ruby\nnew_changelog_version(\n  product_name: \"MyApp\",\n  version: \"1.0.5\"\n  content: \"new feature available !\"\n)\n```\n\n## [prepare_lane_options](fastlane/actions/prepare_lane_options.rb)\n\nHelper action, use by your lane to map environment variable, lane_context to options and after that check if all required options are set\n\n```Ruby\nlane :sample_lane do |options|\n  prepare_lane_options(\n    options: options,\n    bind_params: [\n      Actions::BindParamBuilder.new(:product_name).env_var(\"PRODUCT_NAME\").required().build()\n    ]\n  )\n  print options[:product_name] # The product name will not be nil\nend\n```\n\n## [user_validation](fastlane/actions/user_validation.rb)\n\nAsk the user to validate informations and merge these informations into environment variable and lane_context\n\n```Ruby\nuser_validation(\n  bind_params: [\n    Actions::BindParamBuilder.new(\"Firstname\").lane_context(:TEST_FIRSTNAME).default_value(\"Jean\").build(),\n    Actions::BindParamBuilder.new(\"Lastname\").lane_context(:TEST_LASTNAME).required().build()\n  ]\n)\n```\nThis action update each parameters\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigipolitan%2Ffastlane-common","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigipolitan%2Ffastlane-common","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigipolitan%2Ffastlane-common/lists"}