Skip to content

Commit

Permalink
Merge pull request #2258 from DataDog/albertvaka/bitrise-fetch-author…
Browse files Browse the repository at this point in the history
…-and-commiter
  • Loading branch information
marcotc authored Sep 8, 2022
2 parents c1dc6e4 + d08705a commit 0e92706
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/datadog/ci/ext/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ def extract_bitrise(env)
branch = (
env['BITRISEIO_GIT_BRANCH_DEST'] || env['BITRISE_GIT_BRANCH']
)
commiter_email = (
env['GIT_CLONE_COMMIT_COMMITER_EMAIL'] || env['GIT_CLONE_COMMIT_COMMITER_NAME']
)

{
TAG_PROVIDER_NAME => 'bitrise',
TAG_PIPELINE_ID => env['BITRISE_BUILD_SLUG'],
Expand All @@ -347,7 +351,11 @@ def extract_bitrise(env)
Core::Git::Ext::TAG_COMMIT_SHA => commit,
Core::Git::Ext::TAG_BRANCH => branch,
Core::Git::Ext::TAG_TAG => env['BITRISE_GIT_TAG'],
Core::Git::Ext::TAG_COMMIT_MESSAGE => env['BITRISE_GIT_MESSAGE']
Core::Git::Ext::TAG_COMMIT_MESSAGE => env['BITRISE_GIT_MESSAGE'],
Core::Git::Ext::TAG_COMMIT_AUTHOR_NAME => env['GIT_CLONE_COMMIT_AUTHOR_NAME'],
Core::Git::Ext::TAG_COMMIT_AUTHOR_EMAIL => env['GIT_CLONE_COMMIT_AUTHOR_EMAIL'],
Core::Git::Ext::TAG_COMMIT_COMMITTER_NAME => env['GIT_CLONE_COMMIT_COMMITER_NAME'],
Core::Git::Ext::TAG_COMMIT_COMMITTER_EMAIL => commiter_email
}
end

Expand Down

0 comments on commit 0e92706

Please sign in to comment.