broad-zoo-34077
03/09/2022, 9:46 AMmysterious-teacher-68276
03/09/2022, 9:47 AMbusy-agent-35515
03/09/2022, 9:47 AM--format json
is missingmysterious-teacher-68276
03/09/2022, 9:48 AMmysterious-teacher-68276
03/09/2022, 9:48 AMinfracost breakdown --config-file infracost.yml --format json --out-file infracost.json
busy-agent-35515
03/09/2022, 9:48 AMinfracost breakdown
command will output a table viewhallowed-egg-85694
03/09/2022, 9:54 AMinfracost breakdown --config-file infracost.yml --format json --out-file infracost.json
. BTW comment is for bitbucketbusy-agent-35515
03/09/2022, 9:58 AMbusy-agent-35515
03/09/2022, 9:59 AMhallowed-egg-85694
03/09/2022, 10:01 AMinfracost breakdown --config-file infracost.yml --format json --out-file infracost.json
infracost comment bitbucket --path infracost.json --repo xxxx/xxxx --pull-request xxx --bitbucket-token xxxx:xxxxx --dry-run
mysterious-teacher-68276
03/09/2022, 10:02 AMinfracost.json
maybe above bitbucket api limitsbusy-agent-35515
03/09/2022, 10:03 AM--dry-run
doesn't post anything to the PR, but it still tries to fetch PR's comments (the default behavior is update
which gets the latest comment and updates it). Seems like the response is not a proper JSONmysterious-teacher-68276
03/09/2022, 10:03 AMexamples/terraform
directory in infracost
main repo and see if this fixes the issue.mysterious-teacher-68276
03/09/2022, 10:03 AMbusy-agent-35515
03/09/2022, 10:12 AMexport BITBUCKET_REPO=xxx/xxx
export BITBUCKET_PR_NUMBER=xx
export BITBUCKET_TOKEN=xx:xxx
curl \
-H 'Accept: application/json' \
-u $BITBUCKET_TOKEN \
<https://api.bitbucket.org/2.0/repositories/$BITBUCKET_REPO/pullrequests/$BITBUCKET_PR_NUMBER/comments>
gorgeous-cpu-6996
03/09/2022, 1:36 PMmysterious-teacher-68276
03/09/2022, 1:36 PMmysterious-teacher-68276
03/09/2022, 1:36 PMmysterious-teacher-68276
03/09/2022, 1:37 PMbusy-agent-35515
03/09/2022, 1:40 PM