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
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
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
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
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
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
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
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
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
Fabiano Soares Honorato
cb485f11ee
feat: Add pre and post workflow hook status ( #2441 )
...
* Add pre and post workflow hook status
* fix missing mocks
* fix pre/post workflow hooks tests
* add cmd output to file
* fix typo
* add cmd output to file on pre workflow hooks
* Add hooks output to web UI
* Remove unnecessary dependencies
* Clean the code and make tests work again
* Make lint happy
* Small fixes, create dedicated UUID generator and docs
* Add missing commentary
* Use matchers instead of mocking for tests and fix e2e tests
* Change 'OUTPUT_FILE' to 'OUTPUT_STATUS_FILE'
* Reduce SendWorkflowHook calls on hooks
* Apply suggestions from code review
Co-authored-by: PePe Amengual <jose.amengual@gmail.com >
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2022-12-19 14:20:34 -06:00
Ken Kaizu
08e9c5a17e
feat: customize atlantis.yaml file name in server side config ( #2798 )
...
* feat: customize atlantis.yaml file name in server side config
* Update server/events/vcs/bitbucketcloud/client.go
* Update server/events/vcs/bitbucketserver/client.go
* Update server/events/vcs/not_configured_vcs_client.go
* Update server/events/vcs/azuredevops_client.go
* docs: repo_config_file multiple atlantis servers usecase example
* docs: multiple atlantis server usage which show how to call one atlantis server
* Update runatlantis.io/docs/server-side-repo-config.md
* Apply suggestions from code review
* Update runatlantis.io/docs/server-side-repo-config.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2022-12-18 23:02:38 -06:00
Sebastian Poxhofer
01a9a5f5a7
feat: dismiss approvals when planning ( #2696 )
...
* feat: dismiss approvals when planning
* feat: add pagination and move query in separate method
* tests: add test for dismissing
* refactor: fix linting issue
* implement change requests
* Update cmd/server.go
Co-authored-by: PePe Amengual <jose.amengual@gmail.com >
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
Co-authored-by: PePe Amengual <jose.amengual@gmail.com >
2022-12-18 22:31:10 -06:00
James Williams
71819a28f4
Switch clone URL structure for *.visualstudio.com URLs for AzureDevOps ( #2810 )
...
* Switch clone URL structure for visualstudio.com URLs
* Add comment for ADO URL if statement. Add test
* Test else statement in ParseAzureDevopsRepo
2022-12-18 18:32:46 -06:00
Fabiano Soares Honorato
6a7f79e749
Metrics initialization ( #2767 )
...
* Add builder metrics initialization
* Add pull_closed metrics initialization
* Add builder metrics initialization
* use InitCounter from metrics package to initialize prometheus counters
2022-12-16 22:22:06 -06:00
Ken Kaizu
8d74878f9d
feat: customize vcs comment command executable name ( #2805 )
2022-12-16 19:16:36 -08:00
Ken Kaizu
4d957836ad
Enable or disable repo_locking per repo in repos.yaml and atlantis.yaml ( #2700 )
...
* disable repo locking repos.yaml and atlantis.yaml with allow override
* rename disable_repo_locking into repo_locking
* add both enable/disable repo_locking test
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2022-12-09 16:13:31 -06:00
Fabiano Soares Honorato
66dc30e755
feat: prevent planning and applying directories outside PR scope using --restrict-file-list ( #2440 )
...
* Add --strict-plan-file-list config
* Update server.go
* Update server-configuration.md
* Update server_test.go
* Run gofmt -w
* Add --strict-plan-file-list for projects
* Add --strict-plan-file-list tests
* Change --strict-plan-file-list to --restrict-file-list
* Update --restrict-file-list documentation
* Update --restrict-file-list and --enable-regexp-cmd documentation
Co-authored-by: Fabiano Honorato <fabiano.honorato@ifood.com.br >
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
Co-authored-by: PePe Amengual <jose.amengual@gmail.com >
2022-12-09 09:33:40 -06:00
Michel Z. Santello
c800f706e4
fix(gitlab_client): prevent duplicate pipelines in gitlab merge requests ( #2745 )
...
* fix(gitlab_client): change CommitStatus update logic to prevent duplicated pipelines in MRs
* chore: refactor refTarget logic
* chore: fix tests
* chore: fix lint
* chore: remove nested if
2022-12-07 13:14:39 -08:00
Chris Sainty
e60dd843f4
feat: support atlantis.yaml without defined projects ( #2300 )
...
* Support atlantis.yaml without defined projects
* Update server/events/project_command_builder.go
* Update server/events/project_command_builder.go
* Correct test of no modified projects
* Flip if statement
* Remove duplicate check on hasRepoCfg
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2022-12-01 01:03:27 -08:00
noah
61bcfbab2b
feat: auto-plan projects when modules change ( #2507 )
...
* feat: auto-plan projects when modules change
Fixes #920
* rename Downstream->Dependent; docs cleanup
* chore: gofmt -s
2022-11-28 14:12:29 -08:00
nitrocode
629e688b0c
Allow --gh-team-allowlist to work with team names and slugs ( #2719 )
...
* Add team slugs
* Expand test to include both names and slugs
* docs: add version document of flag before/after
* docs: this will be merged for next release
2022-11-25 12:47:49 -06:00
FBLGit
f8b1ea9b88
Detect terraform versions using >= and ~> specifiers ( #1776 )
...
* Refactor TFVersion from Dir with tfswitch lib
* Added tests and cleaned up code
* linted fmtd
* fixed conflict go.mod
* bumped to tf1.0.6
* bumped go.mod
* Update project_command_context_builder.go
* Bump warrensbox/terraform-switcher
* Fix tests
* rm redundant mocks library import
Co-authored-by: xmurias <xmurias@gmail.com >
Co-authored-by: Xavier <77047592+xavipanda@users.noreply.github.com >
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2022-11-20 21:27:17 -06:00