conditional-paths-action API Documentation - v1.0.0
    Preparing search index...

    Function getShortName

    • Extracts the short name from a git reference.

      Removes common git ref prefixes to get clean reference names:

      • refs/heads/main -> main
      • refs/tags/v1.0 -> v1.0
      • refs/remotes/origin/feature -> feature

      Parameters

      • ref: undefined | string

        Full git reference or undefined

      Returns undefined | string

      Short reference name or undefined if input is undefined