aws / aws-lambda-go

Libraries, samples and tools to help Go developers develop AWS Lambda functions.
Apache License 2.0
3.58k stars 548 forks source link

Added Deleted field to support codecommit ref delete events #531

Closed praveenk007 closed 7 months ago

praveenk007 commented 8 months ago

Issue #, if available:

528

Description of changes: Added Deleted field so that the consumer is able to identify reference delete events.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

codecov-commenter commented 8 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (2ff7818) 72.63% compared to head (0a79053) 72.63%.

:exclamation: Current head 0a79053 differs from pull request most recent head 06e65fe. Consider uploading reports for the commit 06e65fe to get more accurate results

Files Patch % Lines
events/code_commit.go 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #531 +/- ## ======================================= Coverage 72.63% 72.63% ======================================= Files 26 26 Lines 1407 1407 ======================================= Hits 1022 1022 Misses 314 314 Partials 71 71 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

leepa commented 8 months ago

You've committed your .idea folder. You'll want to remove that.

bmoffatt commented 7 months ago

Wasn't able to find quickly a docs reference, so had to run a quick test by hand to verify

{'Records': [{'awsRegion': 'us-west-2', 'codecommit': {'references': [{'commit': '023f0e4effa8955bd8dbae4f104b74206cf74252', 'deleted': True, 'ref': 'refs/heads/yoho'}]}, ...

LGTM! Thanks!