{"id":15470419,"url":"https://github.com/infracost/compost","last_synced_at":"2025-04-14T21:53:20.284Z","repository":{"id":43100142,"uuid":"426784011","full_name":"infracost/compost","owner":"infracost","description":"Post pull request comments from multiple CI platforms","archived":false,"fork":false,"pushed_at":"2023-03-06T17:38:47.000Z","size":1259,"stargazers_count":30,"open_issues_count":5,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-14T21:53:03.603Z","etag":null,"topics":["azure-devops","ci","comments","github","gitlab","pull-requests"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infracost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-10T21:33:51.000Z","updated_at":"2024-10-28T16:47:59.000Z","dependencies_parsed_at":"2024-10-02T02:04:42.340Z","dependency_job_id":"b36aa899-dd8e-4855-8d17-378b9f479a80","html_url":"https://github.com/infracost/compost","commit_stats":{"total_commits":100,"total_committers":4,"mean_commits":25.0,"dds":0.08999999999999997,"last_synced_commit":"39235231e968a52fa81f4613266e35ad3c85c503"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infracost%2Fcompost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infracost%2Fcompost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infracost%2Fcompost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infracost%2Fcompost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infracost","download_url":"https://codeload.github.com/infracost/compost/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248968754,"owners_count":21191158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-devops","ci","comments","github","gitlab","pull-requests"],"created_at":"2024-10-02T02:04:36.909Z","updated_at":"2025-04-14T21:53:20.256Z","avatar_url":"https://github.com/infracost.png","language":"TypeScript","readme":"# Compost\n\n## Deprecation notice\n\n⚠️ This repo is now deprecated. We have moved this functionality into the Infracost CLI via the `infracost comment` subcommand. See [the infracost comment docs](https://www.infracost.io/docs/features/cli_commands/#comment-on-pull-requests) for usage. ⚠️\n\n---\n\nCompost is for tools that run in CI pipelines and want to post results as pull request/commit comments.\n\n\u003cimg src=\".github/assets/screenshot.png\" alt=\"Compost screenshot\" width=800 /\u003e\n\nIt currently detects the following CI environments:\n* GitHub Actions\n* GitLab CI\n* Azure DevOps\n* Azure DevOps (GitHub)\n\nComing soon:\n* BitBucket\n* Circle CI (GitHub)\n* CircleCI (BitBucket)\n\n## Install\n\n```sh\nnpm install -g @infracost/compost\n```\n\n## Examples\n\nDetect the current CI environment and update the previously posted comment. If a previous comment hasn't been posted, then this creates a new comment:\n\n```sh\ncompost autodetect update --body=\"my comment\"\n```\n\nPost a new comment:\n\n```sh\ncompost autodetect new --body=\"my new comment\"\n```\n\nDelete the previous posted comments and post a new comment:\n\n```sh\ncompost autodetect delete-and-new --body=\"my new comment\"\n```\n\nHide the previous posted comments and post a new comment (**Note:** Currently only supported for GitHub):\n\n```sh\ncompost autodetect hide-and-new --body=\"my new comment\"\n```\n\nGet the latest comment that was posted by compost\n\n```sh\ncompost autodetect latest\n```\n\nPost a comment to a specific GitHub pull request:\n\n```sh\ncompost github update infracost/compost-example pr 3 --body=\"my PR comment\"\n```\n\nPost a comment to a specific GitHub commit SHA:\n\n```sh\ncompost github update infracost/compost-example commit 2ca7182 --body=\"my commit comment\"\n```\n\n## Flags\n\n| Name\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; | Description |\n|-|-|\n| `--body` | Specify the comment body content. |\n| `--body-file` | Specify a path to a file containing the comment body. Mutually exclusive with `--body`. |\n| `--tag` | Customize the comment tag. This is added to the comment as a markdown comment to detect the previously posted comments. |\n| `--platform` | Options: `github`, `gitlab`, `azure-devops`. Only supported by `autodetect` command. Limit the auto-detection to the specified platform. |\n| `--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. |\n| `--dry-run` | Skips any comment posting, deleting or hiding. |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfracost%2Fcompost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfracost%2Fcompost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfracost%2Fcompost/lists"}