Skip to content

Commit

Permalink
fix: set PR Title from GH API (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
alikhajeh1 committed May 8, 2024
1 parent 56d0de7 commit 7634a35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/infracost-comment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ This Atlantis repo.yaml file shows how Infracost can be used with Atlantis. Even
- show # this writes the plan JSON to $SHOWFILE
# Run Infracost breakdown and save to a tempfile, namespaced by this project, PR, workspace and dir
- run: |
INFRACOST_VCS_PULL_REQUEST_TITLE=\"$(curl -s \
-H "Accept: application/vnd.github+json" \
-H "Authorization: $GITHUB_TOKEN" \
"https://api.github.com/repos/$BASE_REPO_OWNER/$BASE_REPO_NAME/pulls/$PULL_NUM" | jq -r '.title')\"
infracost breakdown --path=$SHOWFILE \
--format=json \
--log-level=info \
Expand Down

0 comments on commit 7634a35

Please sign in to comment.