This repository contains sample code referenced in the blog post:
Validating AWS CodeCommit Pull Requests with AWS CodeBuild and AWS Lambda
This sample code is made available under a modified MIT license. See the LICENSE file.
Validating AWS CodeCommit Pull Requests with AWS CodeBuild and AWS Lambda
License: MIT No Attribution
This repository contains sample code referenced in the blog post:
Validating AWS CodeCommit Pull Requests with AWS CodeBuild and AWS Lambda
This sample code is made available under a modified MIT license. See the LICENSE file.
In correct description of what the lambda does at
https://github.com/aws-samples/aws-codecommit-pull-request-aws-codebuild/blob/master/base-layer.yaml#L140
What is the correct way of creating markdown in CodeCommit comments so that CodeBuild badge images are visible inline in CodeCommit? In my projects, I found that the CodeBuild comments containing links to CodeBuild badges are rendered as external links instead of showing the actual badges, e.g.
When clicked on, the browser opens a new window / tab with the build badge visible.
The implementation looks correct, in the CodeBuildResultFuction
[sic], the link to the failing CodeBuilds evaluates to
![Failing](https://s3-eu-west-1.amazonaws.com/codefactory-eu-west-1-prod-default-build-badges/failing.svg "Failing")
and the passing CodeBuilds
![Passing](https://s3-eu-west-1.amazonaws.com/codefactory-eu-west-1-prod-default-build-badges/passing.svg "Passing")
In GitHub markdown (above) and in the blog post, these images are visible inline correctly:
.
Note 1, manual copy / paste of
![Failing](https://s3-eu-west-1.amazonaws.com/codefactory-eu-west-1-prod-default-build-badges/failing.svg "Failing")
into a new CodeCommit comment also renders erroneously as an external link:
Note 2, when changing the links to CodeBuild badge urls the images are displayed correctly inline in the comment.
s3-us-east-1
is not a valid S3 endpoint.
aws-codecommit-pull-request-aws-codebuild/base-layer.yaml
Lines 190 to 197 in 397e07b
See:
https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
The cloud formation template has a typo in the CodeBuildResultFuction
definition (it should read CodeBuildResultFunction
)
base-layer.yaml:167: CodeBuildResultFuction:
base-layer.yaml:170: FunctionName: "CodeBuildResultFuction"
base-layer.yaml:232: CodeBuildResultFuctionArn:
base-layer.yaml:234: Value: !GetAtt CodeBuildResultFuction.Arn
base-layer.yaml:236: Name: "CodeBuildResultFuctionArn"
pipeline-example.yaml:173: - Arn: !ImportValue CodeBuildResultFuctionArn
pipeline-example.yaml:185: FunctionName: "CodeBuildResultFuction"
Hi,
I am new to cloudformaiton. The article and associated cloudformation codes were really helpful and it worked. Only one question I had was that template.yaml file is referenced in the pipeline yaml but it is not attached with this set of codes. Am I missing it? What should that template.yaml file contain? Would it contain deployment cloudformation details?
Hi team, Can anyone help in CodeBuildResultFuction to publish post pull request comment also on SNS Topic. This would be very helpful for us to be notified on email and CI/CD workflow.
Thanks
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.