Git Product home page Git Product logo

aws-codecommit-pull-request-aws-codebuild's Introduction

aws-codecommit-pull-request-aws-codebuild's People

Contributors

j0lly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aws-codecommit-pull-request-aws-codebuild's Issues

Incorrect rendering of CodeBuild badges

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.

image

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")

Failing

and the passing CodeBuilds

![Passing](https://s3-eu-west-1.amazonaws.com/codefactory-eu-west-1-prod-default-build-badges/passing.svg "Passing")

Passing

In GitHub markdown (above) and in the blog post, these images are visible inline correctly:
image.


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:

image


Note 2, when changing the links to CodeBuild badge urls the images are displayed correctly inline in the comment.

Invalid endpoint in badge url when region is us-east-1

s3-us-east-1 is not a valid S3 endpoint.

for phase in event['detail']['additional-information']['phases']:
if phase.get('phase-status') == 'FAILED':
badge = 'https://s3-{0}.amazonaws.com/codefactory-{0}-prod-default-build-badges/failing.svg'.format(event['region'])
content = '![Failing]({0} "Failing") - See the [Logs]({1})'.format(badge, event['detail']['additional-information']['logs']['deep-link'])
break
else:
badge = 'https://s3-{0}.amazonaws.com/codefactory-{0}-prod-default-build-badges/passing.svg'.format(event['region'])
content = '![Passing]({0} "Passing") - See the [Logs]({1})'.format(badge, event['detail']['additional-information']['logs']['deep-link'])

See:

https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region

CloudFormation defines resource with a typo

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"

Does this have template.yaml file here?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.