Gitversion - A native console application to calculate a version based on git commits and tags

Related tags

Utility gitversion
Overview

GitCommit

A native console application to calculate a version based on git commits and tags

Bash download and execution

FILE="$(tempfile)" && curl https://github.com/solugo/gitversion-kotlin/releases/latest/download/gitversion -Lso $FILE && chmod a+x $FILE && $FILE

Parameters

Run gitversion --help to get available parameters

You might also like...
A Kotlin native Postgres driver for SqlDelight.

Module postgres-native-sqldelight A native Postgres driver for SqlDelight. Source code Install This package is uploaded to MavenCentral and supports m

A lightning fast, transactional, file-based FIFO for Android and Java.

Tape by Square, Inc. Tape is a collection of queue-related classes for Android and Java. QueueFile is a lightning-fast, transactional, file-based FIFO

A Kotlin-based testing/scraping/parsing library providing the ability to analyze and extract data from HTML
A Kotlin-based testing/scraping/parsing library providing the ability to analyze and extract data from HTML

A Kotlin-based testing/scraping/parsing library providing the ability to analyze and extract data from HTML (server & client-side rendered). It places particular emphasis on ease of use and a high level of readability by providing an intuitive DSL. It aims to be a testing lib, but can also be used to scrape websites in a convenient fashion.

Java implementation of a Disk-based LRU cache which specifically targets Android compatibility.

Disk LRU Cache A cache that uses a bounded amount of space on a filesystem. Each cache entry has a string key and a fixed number of values. Each key m

Gesture detector framework for multitouch handling on Android, based on Android's ScaleGestureDetector

Android Gesture Detectors Framework Introduction Since I was amazed Android has a ScaleGestureDetector since API level 8 but (still) no such thing as

Perfect replacement for startActivityForResult(), based on the Activity Result API.
Perfect replacement for startActivityForResult(), based on the Activity Result API.

ActivityResultLauncher English | 中文 Activity Result API is an official tool used to replace the method of startActivityForResult() and onActivityResul

Flow-based programming "language"

________ / ____/ /___ _ __ / /_ / / __ \ | /| / / / __/ / / /_/ / |/ |/ / /_/ /_/\____/|__/|__/ Flow-based programming "language" This

Flow-based programming
Flow-based programming "language"

Cran Flow-based programming "language", the aim of this project is not to create an entry-friendly programming language, and more over to create a cap

Validator - Notify type based validation for input fields.
Validator - Notify type based validation for input fields.

Validator - Notify type based validation for input fields.

Comments
  • Tags not working properly

    Tags not working properly

    I added the first tag to a repo and tagged it with 1.0.0. However, the build version did not change. The GitTools/GitVersion tool does recognize the tag and increases the version to 1.0.0.

    $ git tag
    1.0.0
    
    $ curl -Ls https://solugo.github.io/gitversion/run.sh | bash
    0.0.241
    
    # gittools
    $ docker run --rm -v "$(pwd):/repo" gittools/gitversion:5.10.0-alpine.3.14-6.0 /repo
    {
      "Major": 1,
      "Minor": 0,
      "Patch": 0,
    ...
      "MajorMinorPatch": "1.0.0",
      "SemVer": "1.0.0",
    ...
    }
    
    opened by nbrns 2
  • Add error messages on shallow clones

    Add error messages on shallow clones

    When using the tool on a shallow clone of a repository, the resulting version can to be 0.0.0. I faced the problem when using GitLab runners, which use shallow clones by default.

    The solution for me was to ensure to have an unshallow clone by adding git fetch --unshallow to my CI. If you ask me, a hint to make sure to use an unshallow clone in case of a 0.0.0 return would be nice.

    opened by nbrns 0
  • Add meaningful error message when using invalid version

    Add meaningful error message when using invalid version

    I pinned the version in a pipeline to v1.0.5, however, I accidently entered 1.0.5 at first. This simply results in a command not found error.

    Instead I would expect the tool to tell me that the version/tag/release does not exist.

    opened by nbrns 0
  • Add a reusable github action

    Add a reusable github action

    Add an example action.yml in this repo so that it can be re-used as a GitHub Action, cf.:

    • https://docs.github.com/en/actions/creating-actions
    • https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsuses

    Example github workflow:

    jobs:
      version:
         steps:
            - uses solgo/actions/gitversion@<ref>
               ... output ...
    

    GitHub recommends to place actions in separate repos, cf.:

    • https://docs.github.com/en/actions/creating-actions/about-custom-actions#choosing-a-location-for-your-action
    opened by mkoertgen 0
Owner
Solugo
Solugo
Native Kotlin library for time-based TOTP and HMAC-based HOTP one-time passwords

A kotlin implementation of HOTP (RFC-4226) and TOTP (RFC-6238). Supports validation and generation of 2-factor authentication codes, recovery codes and randomly secure secrets.

Robin Ohs 6 Dec 19, 2022
Native solution for common React Native problem of focused views being covered by soft input view.

react-native-avoid-softinput Native solution for common React Native problem of focused views being covered by soft input view. It is solved by listen

Mateusz Mędrek 312 Jan 2, 2023
Multiplaform kotlin library for calculating text differences. Based on java-diff-utils, supports JVM, JS and native targets.

kotlin-multiplatform-diff This is a port of java-diff-utils to kotlin with multiplatform support. All credit for the implementation goes to original a

Peter Trifanov 51 Jan 3, 2023
Modern Kotlin version of com.example.semitop7.FireTVStyle keyboard

ftv-style-keyboard Modern Kotlin version of com.example.semitop7.FireTVStyle keyboard Manual activation on FireTV via adb shell: adb shell ime enable

nikk 1 Oct 4, 2022
React Native wrapper to bridge our iOS and Android SDK

React Native wrapper to bridge our iOS and Android SDK

Intercom 94 Jan 1, 2023
A robust native library loader for Android.

ReLinker A robust native library loader for Android. More information can be found in our blog post Min SDK: 9 JavaDoc Overview The Android PackageMan

Keepsafe 2.9k Dec 27, 2022
Routable, an in-app native URL router, for Android

Routable Routable is an in-app native URL router, for Android. Also available for iOS. Usage Set up your app's router and URLs: import com.usepropelle

Clay Allsopp 476 Nov 11, 2022
Fuzzy string matching for Kotlin (JVM, native, JS, Web Assembly) - port of Fuzzy Wuzzy Python lib

FuzzyWuzzy-Kotlin Fuzzy string matching for Kotlin (JVM, iOS) - fork of the Java fork of of Fuzzy Wuzzy Python lib. For use in on JVM, Android, or Kot

WillowTree, LLC 54 Nov 8, 2022
SoLoader is a native code loader for Android.

SoLoader is a native code loader for Android. It takes care of unpacking your native libraries and recursively loads dependencies on platforms that don't support that out of the box.

Meta 1.2k Jan 3, 2023
Android Utilities Library build in kotlin Provide user 100 of pre defined method to create advanced native android app.

Android Utilities Library build in kotlin Provide user 100 of pre defined method to create advanced native android app.

Shahid Iqbal 4 Nov 29, 2022