DataDog / datadog-cloudformation-macro

CloudFormation Macros by Datadog
Apache License 2.0
14 stars 22 forks source link

Add Source Code Integration param and SAM usage instructions #82

Closed sfirrin closed 1 year ago

sfirrin commented 1 year ago

What does this PR do?

Adds a param to the macro that can be used with SAM's --parameter-overrides option and local git commands to automatically add the git.commit.sha and git.repository_url tags used by Datadog Source Code Integration.

Motivation

Easy set up and usage of SCI

Testing Guidelines

Deployed with a sample SAM app with and without setting the param.

Additional Notes

Types of changes

Check all that apply

codecov-commenter commented 1 year ago

Codecov Report

Merging #82 (e967750) into master (0586cf2) will decrease coverage by 1.11%. The diff coverage is 66.66%.

:exclamation: Current head e967750 differs from pull request most recent head 32bcb83. Consider uploading reports for the commit 32bcb83 to get more accurate results

@@            Coverage Diff             @@
##           master      #82      +/-   ##
==========================================
- Coverage   88.49%   87.39%   -1.11%     
==========================================
  Files           7        8       +1     
  Lines         565      595      +30     
  Branches      145      151       +6     
==========================================
+ Hits          500      520      +20     
- Misses         55       64       +9     
- Partials       10       11       +1     
Impacted Files Coverage Δ
serverless/src/env.ts 75.92% <14.28%> (-2.79%) :arrow_down:
serverless/src/git.ts 82.60% <82.60%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more