Andrei Vydrin
f7f35ceb29
feat: add hide-unchanged-plan-comments option ( #3158 )
...
Co-authored-by: PePe Amengual <jose.amengual@gmail.com >
2023-02-25 15:50:33 -06:00
zhuoyang
629d87f999
fix: Use hashicorp/go-version to resolve ~> 1.0 to 1.x instead of 1.0.x ( #3153 )
...
* Use go-version from hashicorp instead of semver
* refactor version test
* restructure test cases
2023-02-23 23:11:26 -06:00
nitrocode
ad2274f114
feat: shallow repo clone in merge checkout strategy ( #2758 )
...
* Implement shallow repo clone in merge checkout strategy
---------
Co-authored-by: Ilya Lukyanov <il@joom.com >
Co-authored-by: Nikolai Røed Kristiansen <nikolaik@gmail.com >
Co-authored-by: PePe Amengual <jose.amengual@gmail.com >
Co-authored-by: Ken Kaizu <k.kaizu38@gmail.com >
2023-02-22 13:29:29 -08:00
Ed Laur
9b61288540
feat: Add check for misspelled executable name command ( #3059 )
...
* feat: Add check for misspelled executable name command
* Update server/utils/spellcheck_test.go
Co-authored-by: Ken Kaizu <k.kaizu38@gmail.com >
---------
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
Co-authored-by: Ken Kaizu <k.kaizu38@gmail.com >
2023-02-22 00:45:14 +00:00
SSKLCP
50de813677
fix(azure-devops): add check for test webhook URL ( #2809 )
...
* Adding check for Azure DevOps Test Webhook URL so they aren't processed like real events
* feat: customize vcs comment command executable name
* Altering case on isAzureDevOpsTestRepoURL function
* Altering case on URL parameter
* Altering checks to ensure all Azure DevOps Ignore tests pass
* Extending setup method to support Azure DevOps
* Fixing issue from merge conflict error
* gofmt
* Adding null checks to Test URL checks
* moving azuredevopsTestUrl to const
* Changing azuredevopsTestUrl to azuredevopsTestURL
* Cleaning up return statement
Co-authored-by: Ken Kaizu <k.kaizu38@gmail.com >
---------
Co-authored-by: Ken Kaizu <k.kaizu38@gmail.com >
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2023-02-21 18:44:32 -06:00
Fabiano Soares Honorato
40f4e8ca6b
fix: workflow output not sending output ( #3091 )
2023-02-18 08:26:33 -06:00
nitrocode
42ee3950c4
Swap moby with patternmatcher ( #3106 )
2023-02-06 21:14:42 -08:00
nitrocode
9ee8514889
bugfix(gitlab): correct detailed merge status check ( #3067 )
2023-02-06 21:12:02 -08:00
Ken Kaizu
48b18f9908
fix import/state rm success wrapped template ( #3084 )
2023-01-31 08:31:44 -06:00
Ken Kaizu
930daef300
chore: remove x package ( #3085 )
2023-01-31 08:28:28 -06:00
Ken Kaizu
fdcb1adfb0
feat: suppress log package logging ( #3076 )
...
To suppress uber-go/tally logs which are not structured logs.
2023-01-30 23:55:01 -06:00
Ken Kaizu
75c4c1fdcf
fix(deps): update module github.com/go-redis/redis/v9 to v9.0.1 ( #3075 )
2023-01-30 23:36:30 -06:00
Ken Kaizu
acc8ef6abc
fix(deps): update module github.com/google/go-github/v49 to v50 ( #3074 )
2023-01-30 22:25:56 -06:00
Adam Zahumenský
953de00f80
feat: --silence-no-projects to comments with -d and -p ( #2969 )
...
* Expand --silence-no-projects to targeted commands
* Cover other commands, test+docs
* Add more tests, refactor doc
* fix tests
* fix dangling pending VCS statuses
* fix: codeql yaml
* fix: lint
2023-01-24 08:26:24 -06:00
Luke Young
5d47eeb63b
feat: add plan_requirements capability ( #2979 )
...
* Add plan_requirements
* Pass pull request fetcher down to plan runner
* Adding tests
* Replace sliceContainsF with slice.Contains
* Remove policy check for plan
Co-authored-by: Casey Miller <camiller@confluent.io >
Co-authored-by: PePe Amengual <jose.amengual@gmail.com >
Co-authored-by: Casey Miller <47993553+camillsir@users.noreply.github.com >
2023-01-21 00:20:04 -06:00
Ken Kaizu
f8eba4bce6
fix: markdown renderer use invalid disableApply flag with disableMarkdownFolding ( #3016 )
2023-01-19 15:58:05 -08:00
Ken Kaizu
cb0aadf571
feat: state rm ( #2880 )
...
* feat: state rm
* review feedback
* fix conflict for pegomock generation code
* adopt state command into allow-commands
* fix conflicts
* fix: state rm works on workspace
* notify import/state rm discard plan file
* fix lint
* use repeat instead warning for re-plan
* perl -pi -e 's!\* 🔁 plan file was discarded. to!🚮 A plan file was discarded. Re-plan would be required before applying.\n\n\* 🔁 To!g' server/**/*
* follow main branch
2023-01-18 22:02:18 -06:00
Ken Kaizu
9e3d8879ec
fix: PR status summary should remove Note: Objects have changed outside of Terraform ( #3010 )
...
* extract PlanSuccess.DiffSummary
* commit status updater use DiffSummary instead Summary to show only diff result
2023-01-18 20:14:58 -06:00
Ken Kaizu
da48fb515d
chore(test): add no test dir tests, rename testdata dir ( #2986 )
...
* add web_templates render tests
* add ansic strip tests
* move fixtures into testdata dir which is golang specific test dir name
* add server/metrics tests
* add recovery test
* add runtime stats test
2023-01-15 23:14:23 -06:00
renovate[bot]
71738f15b6
fix(deps): update module github.com/xanzy/go-gitlab to v0.78.0 in go.mod ( #2960 )
...
* fix(deps): update module github.com/xanzy/go-gitlab to v0.78.0
* Deprecate MergeStatus for DetailedMergeStatus
* Update gitlab_client_test.go
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2023-01-15 20:47:28 -06:00
Ken Kaizu
ee7a5cadfb
feat: PR check status to show summary e.g. Plan: 1 to add, 0 to change, 1 to destroy ( #2983 )
...
* feat: Update plan GitHub Status summary
* feat: revert result changes for Plan and Apply functions
* docs: Add CommandResult description
* feat: change plan status without ctx.CommandResult
* ensure DefaultCommitStatusUpdater implements runtime.statusUpdater
Co-authored-by: Alberto Rojas <alberto.rojas@n26.com >
2023-01-14 15:08:56 -06:00
Fabiano Soares Honorato
33bc28fa85
Fix instrumented approve policies calling apply ( #2977 )
2023-01-12 14:06:35 -08:00
nitrocode
c94e63c37b
chore(test): fix atlantis import test ( #2970 )
...
* Fix e2e import test
* Update exp-output-import-dir1-ops-dummy1.txt
* Update exp-output-import-dir1-ops-dummy2.txt
* Update exp-output-plan.txt
2023-01-11 17:18:06 -08:00
Ken Kaizu
c77149396a
fix: atlantis import on workspaces ( #2937 )
...
* atlantis import not works on workspace
* extract workspace_step_runner_delegate from plan_step_runner
* import step runner requires workspace delegate
2023-01-11 17:53:45 -06:00
Ken Kaizu
6f28b6a8e4
fix: trim space markdown renderer ( #2947 )
...
* chore: trim space rendered templates
* regen e2e results
* revert parallel output substring check test case
* follow master branch
* follow main branch
* Update approve_policies_command_runner_test.go
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2023-01-10 23:48:20 -06:00
Johannes Würbach
48b342f9f1
feat: allow to unlock closed PRs ( #2916 )
2023-01-10 16:58:02 -06:00
Darren Worrall
7746655eb1
Support team owners for policies ( #2953 )
2023-01-10 16:53:05 -06:00
Darren Worrall
847cac712e
Add ApprovePoliciesCommandRunner owner tests ( #2955 )
2023-01-09 17:29:50 -05:00
Ken Kaizu
ca507560f4
fix: set ctx.PullRequestStatus in import_command_runner for import_requirements ( #2936 )
...
* refactor: pull_status_fetcher contains vcsStatusName in struct / reduce FetchPullStatus parameter
* import_command_runner need to set ctx.PullRequestStatus for import_requirements
2023-01-08 10:22:33 -05:00
Ken Kaizu
46bf0466c0
fix: markdown renderer use ExecutableName instead atlantis ( #2939 )
...
* make MarkdownRenderer private
* ExecutableName is available on markdown renderer common data
* replace template atlantis name with .ExecutableName
* MarkdownRenderer fields can be private, but itself needs public
* reuse commonData anywhere in renderer
* revert
2023-01-06 16:20:14 -06:00
renovate[bot]
fbdd0c729a
fix(deps): update module github.com/google/go-github/v48 to v49 ( #2928 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-05 00:22:37 -05:00
Leandro López
04f1d062d6
Improve plan summary performance ( #2907 )
...
* Add benchmark for *PlanSuccess.Summary
This is for taking a baseline and comparing with future
improvements. I just did a test run and got the following results:
$ go test -bench=. ./server/events/command
goos: darwin
goarch: arm64
pkg: github.com/runatlantis/atlantis/server/events/command
BenchmarkPlanSuccess_Summary/empty_summary,_no_matches-10 82564 12415 ns/op 27352 B/op 114 allocs/op
BenchmarkPlanSuccess_Summary/changes-10 167904 7148 ns/op 14309 B/op 69 allocs/op
BenchmarkPlanSuccess_Summary/no_changes-10 92410 12984 ns/op 27705 B/op 114 allocs/op
BenchmarkPlanSuccess_Summary/changes_outside_Terraform-10 89256 13505 ns/op 27882 B/op 117 allocs/op
BenchmarkPlanSuccess_Summary/changes_and_changes_outside-10 159199 7527 ns/op 14493 B/op 72 allocs/op
PASS
ok github.com/runatlantis/atlantis/server/events/command 7.536s
To have a better comparison I've ran all the benchmarks with 200,000
iterations, and got this:
$ go test -bench=. ./server/events/command -benchtime=200000x
goos: darwin
goarch: arm64
pkg: github.com/runatlantis/atlantis/server/events/command
BenchmarkPlanSuccess_Summary/changes_and_changes_outside-10 200000 7637 ns/op 14487 B/op 72 allocs/op
BenchmarkPlanSuccess_Summary/empty_summary,_no_matches-10 200000 12379 ns/op 27352 B/op 114 allocs/op
BenchmarkPlanSuccess_Summary/changes-10 200000 7134 ns/op 14312 B/op 69 allocs/op
BenchmarkPlanSuccess_Summary/no_changes-10 200000 12960 ns/op 27692 B/op 114 allocs/op
BenchmarkPlanSuccess_Summary/changes_outside_Terraform-10 200000 13731 ns/op 27862 B/op 117 allocs/op
PASS
ok github.com/runatlantis/atlantis/server/events/command 11.837s
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com >
* Compile summary regexps only once
By initializing these regexes at program first run instead of every
time the function is called we gain better resource usage and much
faster results, as shown in this results with 200,000 iterations as in
the previous commit:
$ go test -bench=. ./server/events/command -benchtime=200000x
goos: darwin
goarch: arm64
pkg: github.com/runatlantis/atlantis/server/events/command
BenchmarkPlanSuccess_Summary/empty_summary,_no_matches-10 200000 29.49 ns/op 0 B/op 0 allocs/op
BenchmarkPlanSuccess_Summary/changes-10 200000 450.4 ns/op 0 B/op 0 allocs/op
BenchmarkPlanSuccess_Summary/no_changes-10 200000 357.9 ns/op 0 B/op 0 allocs/op
BenchmarkPlanSuccess_Summary/changes_outside_Terraform-10 200000 824.1 ns/op 193 B/op 3 allocs/op
BenchmarkPlanSuccess_Summary/changes_and_changes_outside-10 200000 754.8 ns/op 177 B/op 3 allocs/op
PASS
ok github.com/runatlantis/atlantis/server/events/command 0.943s
With 200,000 iterations the results were almost immediately and I
couldn't observe the real performance, so I've removed the limitation
and got the following:
$ go test -bench=. ./server/events/command -benchtime=200000x
goos: darwin
goarch: arm64
pkg: github.com/runatlantis/atlantis/server/events/command
BenchmarkPlanSuccess_Summary/empty_summary,_no_matches-10 200000 29.49 ns/op 0 B/op 0 allocs/op
BenchmarkPlanSuccess_Summary/changes-10 200000 450.4 ns/op 0 B/op 0 allocs/op
BenchmarkPlanSuccess_Summary/no_changes-10 200000 357.9 ns/op 0 B/op 0 allocs/op
BenchmarkPlanSuccess_Summary/changes_outside_Terraform-10 200000 824.1 ns/op 193 B/op 3 allocs/op
BenchmarkPlanSuccess_Summary/changes_and_changes_outside-10 200000 754.8 ns/op 177 B/op 3 allocs/op
PASS
ok github.com/runatlantis/atlantis/server/events/command 0.943s
I've also compared the results of running the benchamrks with 200,000
iterations, 10 times each, and these are the results:
$ benchstat orig.txt improv.txt
name old time/op new time/op delta
PlanSuccess_Summary/empty_summary,_no_matches-10 12.6µs ± 2% 0.0µs ± 1% -99.90% (p=0.000 n=10+9)
PlanSuccess_Summary/changes-10 7.19µs ± 0% 0.36µs ± 2% -94.96% (p=0.000 n=8+9)
PlanSuccess_Summary/no_changes-10 13.2µs ± 2% 0.4µs ± 0% -97.27% (p=0.000 n=10+9)
PlanSuccess_Summary/changes_outside_Terraform-10 13.7µs ± 1% 0.8µs ± 0% -94.02% (p=0.000 n=9+9)
PlanSuccess_Summary/changes_and_changes_outside-10 7.71µs ± 5% 0.75µs ± 0% -90.21% (p=0.000 n=10+8)
name old alloc/op new alloc/op delta
PlanSuccess_Summary/empty_summary,_no_matches-10 27.4kB ± 0% 0.0kB -100.00% (p=0.000 n=10+10)
PlanSuccess_Summary/changes-10 14.3kB ± 0% 0.0kB -100.00% (p=0.000 n=9+10)
PlanSuccess_Summary/no_changes-10 27.7kB ± 0% 0.0kB -100.00% (p=0.000 n=10+10)
PlanSuccess_Summary/changes_outside_Terraform-10 27.9kB ± 0% 0.2kB ± 0% -99.31% (p=0.000 n=10+7)
PlanSuccess_Summary/changes_and_changes_outside-10 14.5kB ± 0% 0.2kB ± 0% -98.78% (p=0.000 n=10+8)
name old allocs/op new allocs/op delta
PlanSuccess_Summary/empty_summary,_no_matches-10 114 ± 0% 0 -100.00% (p=0.000 n=10+10)
PlanSuccess_Summary/changes-10 69.0 ± 0% 0.0 -100.00% (p=0.000 n=10+10)
PlanSuccess_Summary/no_changes-10 114 ± 0% 0 -100.00% (p=0.000 n=10+10)
PlanSuccess_Summary/changes_outside_Terraform-10 117 ± 0% 3 ± 0% -97.44% (p=0.000 n=10+10)
PlanSuccess_Summary/changes_and_changes_outside-10 72.0 ± 0% 3.0 ± 0% -95.83% (p=0.000 n=10+10)
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com >
* Remove extra allocation
There's no need for fmt.Sprintf for such a simple use.
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com >
* Add MarkdownRenderer benchmark for diff markdown format
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com >
* Compile markdown diff regexes once
This change doesn't improve performance as dramatically as the summary
regexes do, however, it does reduce the amount of resources used:
$ benchstat markdowndiff.orig.txt markdowndiff.inkel.txt
name old time/op new time/op delta
RenderProjectResultsWithEnableDiffMarkdownFormat/single_successful_plan_with_diff_markdown_formatted/verbose_true-10 727µs ± 0% 717µs ± 2% -1.31% (p=0.002 n=10+10)
RenderProjectResultsWithEnableDiffMarkdownFormat/single_successful_plan_with_diff_markdown_formatted/verbose_false-10 725µs ± 0% 715µs ± 1% -1.33% (p=0.000 n=9+10)
name old alloc/op new alloc/op delta
RenderProjectResultsWithEnableDiffMarkdownFormat/single_successful_plan_with_diff_markdown_formatted/verbose_true-10 171kB ± 0% 153kB ± 0% -10.60% (p=0.000 n=10+10)
RenderProjectResultsWithEnableDiffMarkdownFormat/single_successful_plan_with_diff_markdown_formatted/verbose_false-10 171kB ± 0% 153kB ± 0% -10.60% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
RenderProjectResultsWithEnableDiffMarkdownFormat/single_successful_plan_with_diff_markdown_formatted/verbose_true-10 364 ± 0% 214 ± 0% -41.29% (p=0.000 n=10+9)
RenderProjectResultsWithEnableDiffMarkdownFormat/single_successful_plan_with_diff_markdown_formatted/verbose_false-10 358 ± 0% 207 ± 0% -42.05% (p=0.000 n=10+10)
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com >
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com >
2023-01-04 12:28:51 -08:00
Sebastian Poxhofer
a508bdb255
fix(discardApprovalOnPlan): add missing conditional and tests ( #2913 )
...
* fix(discardApprovalOnPlan): add missing conditional and tests
* tests(discardApprovalOnPlan): match for any Pull request or repo for turned off discarding
* Apply suggestions from code review
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update server/events/plan_command_runner.go
* Update server/events/plan_command_runner.go
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2023-01-03 10:21:37 -06:00
Ken Kaizu
f09a9d4c01
feat: --allow-commands restricts available atlantis commands ( #2877 )
...
* feat: --allow-command configuration restricts available atlantis commands
* add version and approve_policies into allow commands defaults
* allow-commands accept all keyword which allows all commands
* remove redundant nest
* more detail abount allow-commands all keyword
* Update server/events/comment_parser.go
2022-12-27 22:52:39 -06:00
Ken Kaizu
27b9897517
chore(build): rm pegomock experimental feature for smooth mock generation ( #2886 )
...
* disable pegomock --use-experimental-model-gen, cause random fail by segv
* make regen-mocks
* fix mock code which uses non experimental pegomock codes
2022-12-27 19:58:15 -06:00
Marcus Ramberg
de953fe255
fix(command_parser): Update command parser help text ( #2878 )
...
Change it to use the new customizable executable command
2022-12-25 08:37:17 -06:00
Mattias Ängehov
35cb9b87b4
feat: Allow top-level repo level configs without projects defined ( #2853 )
...
* Allow top repo cfg keys to bet set w/o projects
This will enable top-level keys to be set in `atlantis.yaml` even when
using autoplanning strategy.
* Add tests for setting top-level keys w/o projects
Signed-off-by: Mattias Ängehov <mattias.angehov@castoredc.com >
Signed-off-by: Mattias Ängehov <mattias.angehov@castoredc.com >
Co-authored-by: PePe Amengual <jose.amengual@gmail.com >
2022-12-23 15:15:30 -06:00
nitrocode
9345d55127
Upgrade negroni to v3 ( #2867 )
2022-12-23 11:58:10 -06:00
Ken Kaizu
692ceae171
upgrade go-playground/validator from v9 to v10 ( #2863 )
...
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2022-12-23 11:26:07 -06:00
Ken Kaizu
eca3b536aa
upgrade github.com/hashicorp/go-getter to v2 ( #2865 )
2022-12-23 08:25:25 -06:00
Ken Kaizu
b3d0847ac7
remove urfave/cli. this is introduced for cli.NewApp, but currently atlantis use cobra, so no meanings ( #2866 )
...
- 5f47524655/main.go (L51)
- 5f47524655
2022-12-23 08:17:08 -06:00
Ken Kaizu
4e0d4ecc40
feat: atlantis import ( #2783 )
...
* feat: atlantis import
* feat: atlantis import
* regenerate mock comment builder
* remove duplicate err check
* instrumented import command runner/builder
* atlantis import subcommand accept args before hyphen
* fix link checker
* docs: review feedback
* fix atlantis import options order
* Update runatlantis.io/docs/using-atlantis.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/using-atlantis.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/using-atlantis.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/using-atlantis.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/using-atlantis.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/command-requirements.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/command-requirements.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/command-requirements.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update server/events/comment_parser.go
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update server/events/comment_parser.go
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/command-requirements.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/command-requirements.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/command-requirements.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/server-side-repo-config.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/command-requirements.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/command-requirements.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/command-requirements.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/command-requirements.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update runatlantis.io/docs/command-requirements.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update server/events/command_requirement_handler.go
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* Update server/events/command_requirement_handler_test.go
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
* fix test import usage
* fix e2e expected txt
* fix doc link
* docs: workflow import stage/step
* docs fixup
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2022-12-22 18:37:29 -06:00
Adam Verigin
faa027acbd
feat: Add flag to disable downloading tf for airgapped environments ( #2843 )
...
* Move terraform version listing into Terraform client
* Add flag to disable Terraform downloads
* Fallback to exact version matching if unable to list TF versions
* Add new config option to documentation
* Fix and update tests
* Fix check-lint errors
* Change option name
* Remove obsolete commented code
* Migrate version detection logic into terraform client
* Improve consistency in new function signatures & log statements
* Test requests before calling terraform-switch, to prevent unnecessary crashes
* Fix broken tests
* Silence gosec error
* Close response body
2022-12-22 13:37:35 -06:00
SSKLCP
01ce8ceffe
Adding GetIsDeleted() check to Azure DevOps Event Handler ( #2838 )
...
* Adding GetIsDeleted
* Adding test to see if ADO sucessfully passes all ignore statements
* Changing Ignore Passing test to use matcher
* Changing to use setup method
2022-12-22 09:02:00 -06:00
Ken Kaizu
b78c4e8ef9
refactor: e2e test use conftest command instead command$version ( #2851 )
2022-12-22 07:56:26 -06:00
SSKLCP
ef3f39a299
tests: Extend events_controller setup method of Azure DevOps ( #2852 )
...
* Extending setup method to support Azure DevOps
* Removing tests from unmerged PRs
2022-12-22 07:51:13 -06:00
Fabiano Soares Honorato
9a38e35493
bugfix: Initialize metrics with empty tags ( #2847 )
...
* Initialize metrics with empty tags
* Better name for Project tags
* No need for dedicated set scope tags on metrics
2022-12-21 12:36:44 -06:00
nitrocode
b94575ac88
Use go-github v48 ( #2839 )
2022-12-20 10:38:21 -06:00
nitrocode
3086788cd5
chore(deps): Use google/shlex ( #2840 )
...
* Use google/shlex
* Use google/shlex (fix test)
* Run gofmt -s -w
2022-12-20 10:33:33 -06:00
Ken Kaizu
2d29db6893
fix: Policy check summary not shown outside of "Show Output" details ( #2837 )
2022-12-20 07:28:12 -06:00