Sha256: c27407634a1a7cd677bfd03626858dd028ddd3b4f76d4b783785d150c8ed501f

Contents?: true

Size: 1.34 KB

Versions: 8

Compression:

Stored size: 1.34 KB

Contents

# frozen_string_literal: true

module Datadog
  module Core
    module Git
      # Defines constants for Git tags
      module Ext
        GIT_SHA_LENGTH = 40

        TAG_BRANCH = 'git.branch'
        TAG_REPOSITORY_URL = 'git.repository_url'
        TAG_TAG = 'git.tag'

        TAG_COMMIT_AUTHOR_DATE = 'git.commit.author.date'
        TAG_COMMIT_AUTHOR_EMAIL = 'git.commit.author.email'
        TAG_COMMIT_AUTHOR_NAME = 'git.commit.author.name'
        TAG_COMMIT_COMMITTER_DATE = 'git.commit.committer.date'
        TAG_COMMIT_COMMITTER_EMAIL = 'git.commit.committer.email'
        TAG_COMMIT_COMMITTER_NAME = 'git.commit.committer.name'
        TAG_COMMIT_MESSAGE = 'git.commit.message'
        TAG_COMMIT_SHA = 'git.commit.sha'

        ENV_REPOSITORY_URL = 'DD_GIT_REPOSITORY_URL'
        ENV_COMMIT_SHA = 'DD_GIT_COMMIT_SHA'
        ENV_BRANCH = 'DD_GIT_BRANCH'
        ENV_TAG = 'DD_GIT_TAG'
        ENV_COMMIT_MESSAGE = 'DD_GIT_COMMIT_MESSAGE'
        ENV_COMMIT_AUTHOR_NAME = 'DD_GIT_COMMIT_AUTHOR_NAME'
        ENV_COMMIT_AUTHOR_EMAIL = 'DD_GIT_COMMIT_AUTHOR_EMAIL'
        ENV_COMMIT_AUTHOR_DATE = 'DD_GIT_COMMIT_AUTHOR_DATE'
        ENV_COMMIT_COMMITTER_NAME = 'DD_GIT_COMMIT_COMMITTER_NAME'
        ENV_COMMIT_COMMITTER_EMAIL = 'DD_GIT_COMMIT_COMMITTER_EMAIL'
        ENV_COMMIT_COMMITTER_DATE = 'DD_GIT_COMMIT_COMMITTER_DATE'
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ddtrace-1.20.0 lib/datadog/core/git/ext.rb
ddtrace-1.19.0 lib/datadog/core/git/ext.rb
ddtrace-1.18.0 lib/datadog/core/git/ext.rb
ddtrace-1.17.0 lib/datadog/core/git/ext.rb
ddtrace-1.16.2 lib/datadog/core/git/ext.rb
ddtrace-1.16.1 lib/datadog/core/git/ext.rb
ddtrace-1.16.0 lib/datadog/core/git/ext.rb
ddtrace-1.15.0 lib/datadog/core/git/ext.rb