Apicat Docs
  1. Dynamic values Modules
Apicat Docs
  • What is Apicat?
  • Send requests
    • Create requests
      • Request basics
      • Parameters and body
      • Request headers
      • Request settings
      • Dynamic values
      • HTTP/2
      • SOAP/WebService
    • Authentication and authorization
      • Overview
      • CA and client certificates
      • Authorization types supported by Apidog
      • Digest Auth
      • OAuth 1.0
      • OAuth 2.0
      • Hawk Authentication
      • Kerberos
      • NTLM
      • Akamai EdgeGrid
    • Response and cookies
      • Overview
      • API response in Apidog
      • Create and send cookies
      • Debug requests
    • Dynamic values Modules
      • Airline
      • Animal
      • Color
      • Commerce
      • Company
      • Database
      • Datatype
      • Date
      • Finance
      • Food
      • Git
      • Hacker
      • Helpers
      • Image
      • Internet
      • Location
      • Lorem
      • Music
      • Number
      • Person
      • Phone
      • Science
      • String
      • System
      • Vehicle
      • Word
  • Environments & variables
    • Overview
    • Using variables
    • Environments & services
  • Pre/Post processors
    • Overview
    • Assertion
    • Extract variable
    • Wait
    • Database operations
      • Overview
      • MySQL
      • MongoDB
      • Redis
      • Oracle Client
    • Using scripts
      • Overview
      • Pre processor scripts
      • Post processor scripts
      • Public scripts
      • Postman scripts reference
      • Calling other programming languages
      • Using JS libraries
      • Visualizing responses
      • Script examples
        • Assertion scripts
        • Using variables in scripts
        • Using scripts to modify request messages
        • Other examples
  • Best practices
    • How to handle API signatures
    • How to access OAuth 2.0 protected APIs
    • Apidog collaboration workflow
    • Managing authentication state in Apidog
  • Account & preferences
    • Account settings
    • Generate OpenAPI access token
    • Language settings
    • Hot keys
    • Network proxy configuration
    • Data backup
    • Updating Apidog
    • Deleting account
    • Experimental Features
  • References
    • API-Design First Approach
    • Apidog OpenAPI/Swagger Specificaiton Extensions
    • JSONPath
    • XPath
    • Regular Expressions
    • JSON Schema
    • CSV File Format
    • Install Java Environment
    • Runner deployment environment
    • Apidog flavored Markdown
  1. Dynamic values Modules

Git

Module to generate git related entries.
Overview
{{$git.commitEntry}} generates a random commit entry as printed by git log. This includes a commit hash {{$git.commitSha}}, author, date {{$git.commitDate}}, and commit message {{$git.commitMessage}}. You can also generate a random branch name with {{$git.branch}}.

branch#

Generates a random branch name.
Returns: string
Examples

commitDate#

Generates a date string for a git commit using the same format as git log.
Parameters
NameTypeDefaultDescription
refDatestring | number | Date{{$date.now}} The date to use as reference point for the commit.
Returns: string
Examples

commitEntry#

Generates a random commit entry as printed by git log.
Parameters
NameTypeDefaultDescription
eol'LF' | 'CRLF''CRLF'Choose the end of line character to use.'LF' = '\n','CRLF' = '\r\n'
mergeboolean{{$datatype.boolean(probability=0.2)}}Set to true to generate a merge message line.
refDatestring | number | Date{{$date.now}} The date to use as reference point for the commit.
Returns: string
Examples

commitMessage#

Generates a random commit message.
Returns: string
Examples

commitSha#

Generates a random commit sha.
By default, the length of the commit sha is 40 characters.
For a shorter commit sha, use the length option.
Usual short commit sha length is:
7 for GitHub
8 for GitLab
Parameters
NameTypeDefaultDescription
lengthnumber40The length of the commit sha.
Returns: string
Examples

Modified at 2025-06-25 07:57:16
Previous
Food
Next
Hacker
Built with