forked from runatlantis/atlantis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stats): pass plan stats to markdown templates (runatlantis#3478)
* Capture stats in plan changes regexp Signed-off-by: Leandro López (inkel) <[email protected]> * Add PlanSuccessStats model to hold plan stats This will be useful to pass down to the templates to include additional information when formatting the messages emitted by Atlantis. Signed-off-by: Leandro López (inkel) <[email protected]> * Return stats for a PlanSuccess Signed-off-by: Leandro López (inkel) <[email protected]> * Add plan success stats to template data Signed-off-by: Leandro López (inkel) <[email protected]> * Refactor plan success template data creation DRY. Also highlights a bug where the stats should be a field in planSuccessData in order to be accessible from the templates. Signed-off-by: Leandro López (inkel) <[email protected]> * Move plan stats to planSuccessData struct Signed-off-by: Leandro López (inkel) <[email protected]> --------- Signed-off-by: Leandro López (inkel) <[email protected]> Co-authored-by: PePe Amengual <[email protected]> Co-authored-by: nitrocode <[email protected]>
- Loading branch information
1 parent
3468f58
commit 339c0fe
Showing
3 changed files
with
115 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters