{"repo":"karlderkaefer/cdk-notifier","free":true,"listed":false,"github":"https://github.com/karlderkaefer/cdk-notifier","clone":"git clone https://github.com/karlderkaefer/cdk-notifier.git","description":"CLI tool to post AWS CDK diff as comment to Github pull request","language":"Go","stars":128,"topics":["github","cli","cdk","diff","comment","circleci","aws-cdk","aws"],"license":"MIT","category":"cli-tools","readme_excerpt":"cdk-notifier lightweight CLI tool to parse a CDK log file and post changes to pull request requests. Can be used to get more confidence on approving pull requests because reviewer will be aware of changes done to your environments. Medium Article Install Install binary with latest release Check Version and help Using docker The docker image is available on dockerhub. As alternative to passing arguments to cli you can create a env file with required variables, this is an example for github. Then you can run the docker image with the env file. Usage First create the output of cdk diff to file. You can stream cdk diff to stdout and to file with following. This tool most like runs in a CI environment. To avoid printing millions of lines you add progress flag. cdk-notifier will then analyze and transform the log by remove ASCII colors prepare additions and deletion for GitHub markdown diff truncate log if exceeding max length of body for comment and then send cdk-notifier will post the processed log of cdk diff to PR if there are changes. If a diff comment for tag-id exists and no changes are detected then comment will delete. You can control this behavior with --delete=false . The tag-id has to be unique within one pipeline. It's been used to identify the comment to update or delete. This is an example how the diff would like on github Please note: GitLab, Bitbucket or Github tokens needs permission to write comments to PR. As an example for GitHub PAT it requires pull requests: ","default_branch":null,"files":null,"tree":[],"storefront":"/r/karlderkaefer","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/karlderkaefer/cdk-notifier/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}