Compost-go - Post pull request comments to multiple VCSs

Compost

Compost is for tools that run in CI pipelines and want to post results as pull request/commit comments.

Compost screenshot

It currently detects the following CI environments:

  • GitHub Actions
  • GitLab CI
  • Azure DevOps
  • Azure DevOps (GitHub)

Coming soon:

  • BitBucket
  • Circle CI (GitHub)
  • CircleCI (BitBucket)

Install

npm install -g @infracost/compost

Examples

Detect the current CI environment and update the previously posted comment. If a previous comment hasn't been posted, then this creates a new comment:

compost autodetect update --body="my comment"

Post a new comment:

compost autodetect new --body="my new comment"

Delete the previous posted comments and post a new comment:

compost autodetect delete-and-new --body="my new comment"

Hide the previous posted comments and post a new comment (Note: Currently only supported for GitHub):

compost autodetect hide-and-new --body="my new comment"

Get the latest comment that was posted by compost

compost autodetect latest

Post a comment to a specific GitHub pull request:

compost github update infracost/compost-example pr 3 --body="my PR comment"

Post a comment to a specific GitHub commit SHA:

compost github update infracost/compost-example commit 2ca7182 --body="my commit comment"

Flags

Name                       Description
--body Specify the comment body content.
--body-file Specify a path to a file containing the comment body. Mutually exclusive with --body.
--tag Customize the comment tag. This is added to the comment as a markdown comment to detect the previously posted comments.
--platform Options: github, gitlab, azure-devops. Only supported by autodetect command. Limit the auto-detection to the specified platform.
--target-type Options: pull-request (pr), merge-request (mr), commit. Only supported by autodetect command. Limit the auto-detection to add the comment to either pull/merge requests or commits.
--dry-run Skips any comment posting, deleting or hiding.
Owner
Infracost
Love your cloud bill! 💰📉
Infracost
Similar Resources

Simple tool to handle hosts file black lists that can remove comments, remove duplicates, compress to 9 domains per line, add IPv6 entries, as well as can convert black lists to multiple other black list formats compatible with other software.

Hosts-BL Simple tool to handle hosts file black lists that can remove comments, remove duplicates, compress to 9 domains per line, add IPv6 entries, a

Sep 23, 2022

:octocat: ghdag is a tiny workflow engine for GitHub issue and pull request.

ghdag ghdag is a tiny workflow engine for GitHub issue and pull request. Key features of ghdag are: Simple definition of workflows to improve the life

Nov 5, 2022

A command-line to create a pull request to review the entire content of a Github repository.

Pull Request Me Pull Request Me (PRMe) creates a pull request for the entire content of a Github repository. This is useful to solicit review comments

Nov 2, 2021

Find the issues linked with a Pull Request

linked-issues docker action This action prints "Hello World" or "Hello" + the name of a person to greet to the log. Inputs who-to-greet Required The n

Jun 30, 2022

This github action find the Issues linked in a Pull Request.

Linked Issue (Github Action) This action find the Issues linked in a Pull Request. It parses the HTML of the PR page to find the linked issues. Inputs

Jun 30, 2022

A self-hosted golang application that listens for Terraform pull request events via webhooks.

A self-hosted golang application that listens for Terraform pull request events via webhooks.

Atlantis Terraform Pull Request Automation Resources What is Atlantis? What does it do? Why should you use it? Stargazers over time Resources How to g

Dec 9, 2021

A GitHub CLI extension that provides summary pull request metrics.

gh-metrics A gh extension that provides summary pull request metrics. Usage Metric definitions Influences Usage To install the extension use: $ gh ext

Dec 29, 2022

Validate Golang request data with simple rules. Highly inspired by Laravel's request validation.

Validate Golang request data with simple rules. Highly inspired by Laravel's request validation.

Validate golang request data with simple rules. Highly inspired by Laravel's request validation. Installation Install the package using $ go get githu

Dec 29, 2022

Add request id to a request's context

RequestID 🔎 This is a very simple piece of middleware for adding request/correlation IDs to the context of a http request. By default, this module wi

Dec 4, 2021

Request: a HTTP request library for Go with interfaces and mocks for unit tests

Requester Request is a HTTP request library for Go with interfaces and mocks for

Jan 10, 2022

Goget will send a http request, and show the request time, status, response, and save response to a file

Goget will send a http request, and show the request time, status, response, and save response to a file

Feb 9, 2022

JSON with comments for Go!

JSON with comments for Go!

JSON with comments for Go! JSONC is a superset of JSON which supports comments. JSON formatted files are readable to humans but the lack of comments d

Nov 23, 2022

A static code analyzer for annotated TODO comments

A static code analyzer for annotated TODO comments

todocheck todocheck is a static code analyzer for annotated TODO comments. It let's you create actionable TODOs by annotating them with issues from an

Dec 7, 2022

HuJSON: JSON for Humans (comments and trailing commas)

HuJSON - Human JSON The HuJSON decoder is a JSON decoder that also allows comments, both /* ... */ and // to end of line trailing commas on arrays and

Dec 22, 2022

backup data (code, comments, issues) from github

github-backup Backup your GitHub repositories (including issues and comments). The backup will include a copy of the git repository itself (a bare, mi

Nov 21, 2021

sqlcomment is an ent driver that adds SQL comments following sqlcommenter specification.

sqlcomment sqlcomment is an ent driver that adds SQL comments following sqlcommenter specification. sqlcomment includes support for OpenTelemetry and

Nov 14, 2022

Publish Sonarqube PR issues as comments

🤖 Sonarqube PR Issues Review Simple Webhook for Sonarqube which publishes the issues found in the PR as review requesting changes. The only SCM that

Aug 5, 2022

Year-end-review - enables those want to look back on PRs at the end of year to review PRs and the comments as single Markdown file.

year-end-review year-end-review enables those want to look back on PRs at the end of year to review PRs and the comments as single Markdown file. HOW

Dec 31, 2021

Scan your project tree for tag comments.

TagSpot TagSpot is a small programm that scans a project tree for tag comments like TODO or FIXME (full list of supported tags). Usage From the comman

Jan 14, 2022
Paramex is a library that binds http request parameters to a Go struct annotated with `param`.

paramex Paramex is a library that binds http request parameters to a Go struct annotated with param. Description To extract http parameters (headers,

Oct 31, 2022
Timeout handler for http request in Gin framework

Middleware to Handle Request Timeout in Gin Installation Installation go get github.com/s-wijaya/gin-timeout Import it in your code: import ( // o

Dec 14, 2021
A multiformat-inspired go module for working with multiple kinds of keypairs.

go-multikeypair A multiformats-inspired module for encoding cryptographic keypairs. Install At a shell within your go module: go get github.com/proofz

Apr 4, 2022
github-actions-merger is github actions that merges pull request with commit message including pull request labels.

github-actions-merger github-actions-merger is github actions that merges pull request with commit message including pull request labels. Usage Write

Dec 7, 2022
An action that comments PipeCD's PlanPreview result on GitHub pull request.
An action that comments PipeCD's PlanPreview result on GitHub pull request.

actions-plan-preview An action that comments PipeCD's PlanPreview result on GitHub pull request. This action can be used for all application kinds: Ku

Apr 6, 2022
A tool to sent comments to Issues or Pull Requests in Github from CI tools.

CommentCI A tool to sent comments to Issues or Pull Requests in Github from CI tools. Usage Required environment variables: GITHUB_COMMENT_USER - User

Apr 10, 2022
pr-bullet is a tool for copying pull request to multiple repositories.

pr-bullet pr-bullet is a tool for copying pull request to multiple repositories. Usage First, create original pull request ( ex. https://github.com/k1

Oct 5, 2022
GitHub Action: Compose multiple (conditional) checks into a single check based on file paths in a pull request
GitHub Action: Compose multiple (conditional) checks into a single check based on file paths in a pull request

GitHub Action: Composite Example Usage --- name: All Checks on: pull_request: branches: - main jobs: meta: runs-on: - ubuntu-20.

Dec 29, 2022
Docker-Project - A simplified backend that listens to POST request

This is a simplified backend that listens to POST request. Once it receives such a request it will push it to a PostgreSQL database.

Feb 5, 2022