From 4a181735461a8929011d73731fb6d594f7d24675 Mon Sep 17 00:00:00 2001 From: Bruno Cochofel Date: Sun, 31 Jan 2021 13:44:00 +0000 Subject: [PATCH 1/2] docs: update docs --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c4f8c11..e680393 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ This tool aims to parse Terraform plan files (in JSON format) and gives feedback Outputs can be: * stdout: stdout +* azuredevops: Azure DevOps pull request comment * github: Github pull request comment (not yet implemented) -* azuredevops: Azure DevOps pull request comment (not yet implemented) To create the Terraform plan file: @@ -31,7 +31,6 @@ To write to stdout you just need to pass a JSON file: Summary of changes: =================== - (Create): (module.failover_rg.azurerm_resource_group.rg) (Create): (module.failover_rg.module.naming.random_string.first_letter) (Create): (module.failover_rg.module.naming.random_string.main) @@ -45,10 +44,21 @@ Summary of changes: (Create): (module.sql.module.naming_failover.random_string.first_letter) (Create): (module.sql.module.naming_failover.random_string.main) +``` + +To use this on Azure DevOps you need the following environment variables: +* SYSTEM_TEAMFOUNDATIONSERVERURI +* SYSTEM_TEAMPROJECT +* BUILD_REPOSITORY_ID +* SYSTEM_PULLREQUEST_PULLREQUESTID +* SYSTEM_ACCESSTOKEN +these environment variables are present when you run Azure DevOps pipelines. +**Note:** The `SYSTEM_PULLREQUEST_PULLREQUESTID` is only present when you run +pipeline in a pull request. -``` +If any of these environment variables are not present, output defaults to stdout # Run and test locally From 697ec7b38f35e2b5e75169dfc8042776941f0515 Mon Sep 17 00:00:00 2001 From: bcochofel Date: Sun, 31 Jan 2021 13:44:45 +0000 Subject: [PATCH 2/2] Apply automatic changes --- CHANGELOG.md | 12 +++++++++++- terraplanfeed/__init__.py | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bde7ca5..b0e7fd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,12 +3,21 @@ ## [Unreleased] + +## [0.4.1] - 2021-01-31 +### Docs +- update docs + + ## [0.4.0] - 2021-01-31 ### Feat - **azuredevops:** send request - **azuredevops:** added azure devops output +### Pull Requests +- Merge pull request [#7](https://github.com/bcochofel/terraplanfeed/issues/7) from bcochofel/azuredevops + ## [0.3.4] - 2021-01-30 @@ -119,7 +128,8 @@ - Merge pull request [#1](https://github.com/bcochofel/terraplanfeed/issues/1) from bcochofel/package_skel -[Unreleased]: https://github.com/bcochofel/terraplanfeed/compare/0.4.0...HEAD +[Unreleased]: https://github.com/bcochofel/terraplanfeed/compare/0.4.1...HEAD +[0.4.1]: https://github.com/bcochofel/terraplanfeed/compare/0.4.0...0.4.1 [0.4.0]: https://github.com/bcochofel/terraplanfeed/compare/0.3.4...0.4.0 [0.3.4]: https://github.com/bcochofel/terraplanfeed/compare/0.3.3...0.3.4 [0.3.3]: https://github.com/bcochofel/terraplanfeed/compare/0.3.2...0.3.3 diff --git a/terraplanfeed/__init__.py b/terraplanfeed/__init__.py index c5b96e9..c601a42 100644 --- a/terraplanfeed/__init__.py +++ b/terraplanfeed/__init__.py @@ -7,4 +7,4 @@ Modules: terraform """ -__version__ = "0.4.0" +__version__ = "0.4.1"