number_of_commits
Community Action Reference: Inspected directly from Fastlane core ruby gem definitions.
Supported Platforms: ios, android, mac
Return the number of commits in current git branch
Details
You can use this action to get the number of commits of this branch. This is useful if you want to set the build number to the number of commits. See fastlane actions number_of_commits for more details.
Parameters & Options
Total options available: 1
| Key | Type | Env Variable | Default | Required | Description |
|---|---|---|---|---|---|
all |
Fastlane::Boolean |
FL_NUMBER_OF_COMMITS_ALL |
- |
No | Returns number of all commits instead of current branch |
Examples
increment_build_number(build_number: number_of_commits)build_number = number_of_commits(all: true)increment_build_number(build_number: build_number)Source & Upstream
- Gem Action:
number_of_commits.rb - Upstream Source: Inspect Ruby Implementation on GitHub
- Authors:
onevcat,samuelbeek