broad-zoo-34077
04/12/2022, 4:45 AMwhite-airport-8778
infracost comment github --help
shows the other useful options, such as the github-api-url for your internal github.delightful-market-27721
04/12/2022, 4:59 AMdelightful-market-27721
04/12/2022, 5:00 AMdelightful-market-27721
04/12/2022, 5:00 AMwhite-airport-8778
delightful-market-27721
04/12/2022, 5:03 AMdelightful-market-27721
04/12/2022, 5:26 AM./infracost comment github --path /tmp/infracost.json --repo $GITHUB_REPOSITORY --github-token --pull-request 3 --behavior new
error :
Error: either --commit or --pull-request is required
Error: Process completed with exit code 1.
Am i missing somethings here? i am just following things from https://github.com/infracost/actionswhite-airport-8778
--github-api-url GitHub API URL (default "<https://api.github.com>")
delightful-market-27721
04/12/2022, 5:31 AMgithub
i need to use github-api-url
after the commentwhite-airport-8778
./infracost comment github --path /tmp/infracost.json --repo $GITHUB_REPOSITORY --github-token $ENV_FOR_TOKEN --pull-request 3 --behavior new --github-api-url <https://api.my-internalgithub.com>
delightful-market-27721
04/12/2022, 5:44 AMwhite-airport-8778
delightful-market-27721
04/12/2022, 6:16 AMsecrets.GITHUB_TOKEN
don't have permission to generate the comments. I need to check with Infra teamwhite-airport-8778
--github-api-url
resolved this error - correct?
Error: either --commit or --pull-request is required
Error: Process completed with exit code 1.
delightful-market-27721
04/12/2022, 6:29 AMdelightful-market-27721
04/12/2022, 8:05 AMmysterious-teacher-68276
04/12/2022, 8:28 AMdelightful-market-27721
04/12/2022, 8:29 AMdelightful-market-27721
04/13/2022, 9:02 AMInfracost output
section. but it will be good if monthly cost
table in comments can show seperate rows for each resources , along with total cost .
i am using --behavior update
in infracost comments. Let me know if that is possible.
Btw thanks for making such a nice framework 🚀delightful-market-27721
04/13/2022, 9:03 AMdelightful-market-27721
04/13/2022, 9:07 AMmysterious-teacher-68276
04/13/2022, 9:17 AMinfracost comment
to output a separate row for each resource change, unfortunately. You could manually achieve this yourself by saving the output of the infracost breakdown
to a file using --out-file
and then use a tool like jq
to extract the resource costs/changes from the file and build a markdown table to post to the github API.
We’re looking at making the infracost comment
options a bit more flexible in the future so would be great to keep track of your requirements in an issue. Could I ask that you open a feature request here: https://github.com/infracost/infracost/issues so that we can prioritise accordingly.mysterious-teacher-68276
04/13/2022, 9:19 AMmysterious-teacher-68276
04/13/2022, 9:20 AMmysterious-teacher-68276
04/13/2022, 9:20 AMdelightful-market-27721
04/13/2022, 9:37 AM