Releases: jlhood/github-codebuild-logs
Add support for codebuild github PR refs pattern
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
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:
- (#36) Make ProcessBuildEvents Lambda timeout configurable
Suppress comments on successful builds
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:
Delete previous PR comments
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:
PR report improvements
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:
Now it looks like this:
Change Log:
Support additional CodeBuild project configurations
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:
S3 AWS SigV4 fix
This release contains a bugfix to use AWS SigV4 when signing requests to S3 (#5)