Skip to content

Releases: jlhood/github-codebuild-logs

Add support for codebuild github PR refs pattern

12 May 15:30
Compare
Choose a tag to compare

This release adds support for CodeBuild PR triggers that use SourceVersion = refs/pull/{pr-number}/head^{full-commit-SHA}) pattern. Thanks to @mufaddal-rohawala for contributing the feature!

This release also upgrades the Lambda functions from python3.8 to python3.12 as python3.8 is nearing deprecation.

Change Log:

(#45) add support for codebuild github PR refs pattern
(#46) Upgrade to python3.12

Add ability to set timeout for ProcessBuildEvent Lambda function

09 Mar 06:47
Compare
Choose a tag to compare

This release parameterizes the timeout of the ProcessBuildEvents Lambda function (async function that copies CodeBuild logs to S3), allowing the value to be adjusted if desired. This release also adds DeletionPolicy and UpdateReplacePolicy settings to stateful resources to protect against accidental data deletion. Thanks to @navinsoni for contributing the new feature and fixes!

Change Log:

  1. (#36) Make ProcessBuildEvents Lambda timeout configurable

Suppress comments on successful builds

15 May 17:34
86f8fd6
Compare
Choose a tag to compare

This release adds an optional feature to suppress PR comments for successful builds. This is useful if you're finding the PR comments for successful builds noisy and only care to look at the logs on build failure. The feature is disabled by default, but it can be enabled by setting the CommentOnSuccess app parameter to true. Thanks to @jflasher for adding this great feature!

This release also includes a cost-saving fix that filters the CloudWatch event pattern so build event processing Lambda functions are only triggered for the CodeBuild project they're meant to monitor, reducing unnecessary Lambda invocations. Thanks to @jogold for making this fix!

Change Log:

  1. (#24) Filter on project name in CloudWatch event pattern
  2. (#29) Add feature to suppress comments on successful builds

Delete previous PR comments

20 Dec 20:38
ea24da0
Compare
Choose a tag to compare

This release adds an optional feature to delete previous CI report PR comments before posting a new one. This can be useful if you're not interested in build history on a PR and only want to see a comment for the latest build status. The feature is disabled by default, but it can be enabled by setting the DeletePreviousComments app parameter to true. Thanks to @jogold for adding this great feature!

Change Log:

  1. (#21) Add option to delete previous comments
  2. (#22) Update README with new parameter

PR report improvements

29 Oct 21:10
0a92cfb
Compare
Choose a tag to compare

This release improves the PR report comment to include the CodeBuild project name and source commit of the build. Big thanks to @mattsb42 for contributing this feature!

Before this feature, the PR comment looked like this:

Screenshot before feature

Now it looks like this:

Screenshot after feature

Change Log:

  1. (#17) PR report improvements
  2. (#18) Update README screenshot

Support additional CodeBuild project configurations

09 Oct 16:48
988e3cc
Compare
Choose a tag to compare

This release contains a bugfix and 2 features for supporting additional CodeBuild project configurations.

CodeBuild projects with custom log group

Previously, if your CodeBuild project contained a custom log group, the app did not setup correct permissions to read from that log group, resulting in a permission denied error. With this release, you can now optionally specify the custom CloudWatch log group name used by your CodeBuild project via the CodeBuildProjectCustomLogGroupName app parameter.

CodeBuild projects without OAuth tokens

Previously, the app assumed the CodeBuild project contained a GitHub OAuth token it could use for writing comments to GitHub PRs. However, this is not always the case. When a CodeBuild project is setup to build against a public repository, no token is required by CodeBuild to read from the repo. In this case, the app now supports passing an OAuth token via the optional GitHubOAuthToken app parameter. If provided, the app will store the token in AWS Secrets Manager and use it when writing comments to GitHub PRs.

Change Log:

  1. (#8) Support case where sourceVersion is not present in build
  2. (#9) Support CodeBuild projects with custom log group name
  3. (#10) Support GitHub OAuth token as an app parameter

S3 AWS SigV4 fix

25 Sep 04:14
Compare
Choose a tag to compare

This release contains a bugfix to use AWS SigV4 when signing requests to S3 (#5)