Commit Graph

137 Commits

Author SHA1 Message Date
Test User
e5ea28d897 test: update test expectations to match fixed error messages 2025-06-27 12:34:55 -07:00
PePe Amengual
02ffb41cd6 fix: resolve remaining staticcheck linting issues
- Remove newline characters from error messages in step.go
- Change capitalized error messages to lowercase in multienv_step_runner.go and github_client.go
2025-06-27 12:22:14 -07:00
PePe Amengual
d13bb002b3 fix: resolve test failures after golangci-lint updates
- Fix terraform lock file checksum verification by updating with correct checksums for null provider v3.2.4
- Fix GitLab request parser validation errors by removing nolint comments from JSON test data
- Fix step validation error messages by adding missing newlines
- Fix MultiEnv step runner error messages by capitalizing 'Invalid'
- Fix GitHub client merge method error messages by capitalizing 'Merge method' and 'Specify'

All tests now pass successfully.
2025-06-27 12:11:55 -07:00
PePe Amengual
03467ec811 fix: address all remaining golangci-lint staticcheck issues (ReplaceAll, error strings, empty branches) 2025-06-27 11:58:40 -07:00
PePe Amengual
a87a4cbaaa fix: match error message formatting and lockfile version for go linter/test compatibility 2025-06-27 11:50:31 -07:00
PePe Amengual
392d5165a9 fix: resolve all linter issues for golangci-lint v1.54+
- Replace all strings.Replace with strings.ReplaceAll
- Fix all De Morgan's law and tagged switch issues
- Remove empty branches, clarify comments
- Fix error string capitalization and punctuation
- Use assert.Len for testifylint
- Remove embedded field selector warnings

This should allow golangci-lint to pass cleanly on the renovate branch.
2025-06-27 11:27:55 -07:00
PePe Amengual
7567b31ccd fix: resolve linter issues to enable golangci-lint update
- Fix all errcheck issues (unhandled errors for Close(), Fprintln, etc.)
- Fix gosec issues with appropriate nolint comments for test code
- Fix misspell issues and add nolint for GitLab API field names
- Fix revive issues (dot-imports in tests, missing package comments)
- Fix staticcheck and testifylint issues
- Add package comments where required by linter

This enables updating golangci-lint-action from v6 to v8 in the workflow.
2025-06-27 11:12:19 -07:00
Luke Massa
8639729bd8 chore(deps): Convert go yaml to goccy yaml (#5579)
Signed-off-by: Luke Massa <lmassa@tripadvisor.com>
Co-authored-by: Rui Chen <rui@chenrui.dev>
2025-06-26 20:26:39 +00:00
Hirotake Kobayashi
5dfe5f92a9 fix: Set Env variables when output: hide in multienv (#5319)
Signed-off-by: Hirotake Kobayashi <h.kobayashi@raksul.com>
Co-authored-by: PePe Amengual <2208324+jamengual@users.noreply.github.com>
2025-05-23 22:57:11 -07:00
Simon Heather
4bea4e934a chore: Add Struct required tags and Server Struct Validator (#5371)
Signed-off-by: X-Guardian <32168619+X-Guardian@users.noreply.github.com>
2025-03-09 11:34:48 +00:00
Luke Massa
cf0b3f3295 chore: Add nil checks before returning wrapped error (#5309)
Signed-off-by: Luke Massa <lukefrederickmassa@gmail.com>
2025-02-11 00:10:58 -05:00
Alexey Kosenko
1f9b90e715 feat(post-workflow-hook): pass the result status of executed command to the post hook envs (#5308)
Signed-off-by: a1k0u <alko7enko@gmail.com>
2025-02-10 21:27:30 +00:00
Simon Heather
16a9f10c5e chore: Add Close Calls to BoltDB Tests to fix Windows Test Errors (#5289)
Signed-off-by: X-Guardian <32168619+X-Guardian@users.noreply.github.com>
2025-02-04 20:02:26 +00:00
Luke Massa
aa4a98032e chore: Remove dependency on multierror (#5275)
Signed-off-by: Luke Massa <lukefrederickmassa@gmail.com>
2025-02-02 12:44:39 -05:00
Luke Massa
03ea1a1e1f chore: Remove some references to pkg/errors (#5270)
Signed-off-by: Luke Massa <lukefrederickmassa@gmail.com>
2025-01-27 22:11:10 -05:00
Pierre Guinoiseau
90b1b13b71 feat: Add support for GitLab groups (#4001)
Signed-off-by: Pierre Guinoiseau <pierre@guinoiseau.nz>
2025-01-25 18:39:37 +00:00
Eka Cahya Pratama
e2eacdcd34 fix: Return correct status when using custom policy (#5156)
Signed-off-by: bakuljajan <eka.pratama@finaccel.co>
2025-01-25 17:30:38 +00:00
Luke Massa
cbd70c9886 chore: Simplify use of the doublestar Match for ignore paths (#5272)
Signed-off-by: Luke Massa <lukefrederickmassa@gmail.com>
2025-01-24 16:25:44 -05:00
Luke Massa
7bc33378a8 feat: Add ignore path to autodiscover using glob (#5267)
Signed-off-by: Luke Massa <lukefrederickmassa@gmail.com>
2025-01-23 18:03:22 -05:00
Andrew Borg
9e0f3d1bb5 feat: Support project-level Terraform distribution selection (#5167)
Signed-off-by: Andrew Borg <andrew.b.borg@gmail.com>
Co-authored-by: PePe Amengual <2208324+jamengual@users.noreply.github.com>
Co-authored-by: Simon Heather <32168619+X-Guardian@users.noreply.github.com>
2025-01-02 21:06:01 -08:00
Rui Chen
9babb2b044 chore: fix typo pt2 (#5203)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-12-28 18:20:38 -05:00
Rui Chen
591931a81c chore: fix typos (#5202)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-12-28 17:50:53 -05:00
Simon Heather
e468a23e0b feat: Refine the Atlantis Info Message Logging (#5034)
Signed-off-by: Simon Heather <32168619+X-Guardian@users.noreply.github.com>
2024-11-19 12:54:55 -05:00
Takahiro Suzuki
5e0f854cea chore: Regenerates mock files with pegomock v4.1.0 (#5090)
Signed-off-by: tkasuz <63289889+tkasuz@users.noreply.github.com>
2024-11-16 15:00:42 +00:00
Andrej Svenke
8285a0faf2 feat: set the shell for workflow command steps (#5024)
Signed-off-by: anryko <andrej.svenke@deliveryhero.com>
2024-11-04 18:29:47 +00:00
Alexey Kosenko
13fa635523 feat(automerge): implement GitHub --auto-merge-method flag for apply command (#4895)
Signed-off-by: a1k0u <alko7enko@gmail.com>
Signed-off-by: X-Guardian <simonheather99@gmail.com>
2024-11-02 20:09:17 +00:00
Henry Muru Paenga
110ef94890 fix: Update error messages when working with OpenTofu (#4996) 2024-10-09 22:00:30 -07:00
Henry Muru Paenga
9c7e5fcac8 feat: OpenTofu support (#4499)
Co-authored-by: PePe Amengual <2208324+jamengual@users.noreply.github.com>
2024-09-29 18:13:20 -07:00
Jaden Lee
d18e9bba44 fix: set yaml to prevent_self_approve (#4893) 2024-09-03 19:13:57 -04:00
Nick King
9a0c648748 feat: add ability to delegate authorization to external sources (#4864) 2024-09-03 15:39:04 -07:00
Jaden Lee
df0003197d feat: selfapprove flag for approving policies (#4794)
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2024-08-08 09:11:06 -07:00
Rui Chen
8dccb2beb4 chore(lint): linting the codebase (#4668)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-06-17 11:22:30 -04:00
James Brookes
a6a3b21787 refactor: use hc-install for TF downloads + constraints (#4494)
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2024-06-16 01:54:45 +00:00
Andrej Svenke
78373f690e feat: add silence_pr_comments on plan and apply (#4543) 2024-05-31 21:52:22 -04:00
Andrej Svenke
ded89a3e1c feat: optionally hide multienv output (#4422)
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Co-authored-by: Rui Chen <rui@chenrui.dev>
2024-05-29 15:27:46 -04:00
Ross Strickland
821de05ddd fix: apply strip_refreshing to output for errors (#4443)
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2024-05-21 16:32:20 -04:00
Pierre Guinoiseau
82bec78dff feat: Add option to lock on apply instead of plan (#3879)
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2024-05-16 22:27:27 -07:00
Rui Chen
a630646b8f chore(deps): terraform 1.8.3, opentofu 1.7.1, conftest 0.52.0 (#4534)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-05-14 10:38:50 -07:00
Christian Winther
f35b8c69aa fix: os.Remove should ignore non existing errors (#4502) 2024-05-04 14:59:22 -05:00
lvyaoting
5e25c00e17 chore: fix function names in comment (#4412)
Signed-off-by: lvyaoting <lvyaoting@outlook.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2024-04-26 09:46:07 -07:00
Stas Ostrovskyi
cf9137b512 fix: Prevent download terraform with version 1.8.2 or higher (#4474) 2024-04-24 20:09:27 +00:00
Hans Arnholm
d40b762ac0 revert: regression: remote ops detection TF v1.1 (#4169)
Reverts linter change from #3690 which breaks TF v1.1 detection
2024-03-05 10:31:40 -05:00
Simon Heather
67b5740053 feat: Refine The Atlantis VCS Logging Configuration (#4285)
* Refine VCS Logging

* Remove github/gitlab client logger

* Remove fmtLogSrc from instrumented_client and format

* Add staticcheck lint exception for NewGitHubClient

* Fix tests
2024-02-26 13:07:41 -05:00
Luke Massa
783c011d02 feat: Add logic for project name into lock (#4192)
* feat: Add logic for project name into lock

* More logic

* Fix tests

* Add tests
2024-02-12 14:02:04 -05:00
Luke Massa
34ef59d132 chore: Upgrade yaml v3 (#4172)
* fix(deps): update module gopkg.in/yaml.v2 to v3 in go.mod

* chore: Upgrade to go-yaml v3

* Fix comment

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2024-01-25 13:09:34 -05:00
Isaac Gaskin
fe32f8645c feat(4157): adding option to hide UI button to disable apply commands (#4158) 2024-01-24 00:10:44 -05:00
Luke Massa
0b51afc4ab chore: fix linting issues (#4110) 2024-01-02 10:54:27 -05:00
Luke Massa
6cad7e6482 chore: Remove settings for require approval, mergeable, undiverged (#4047)
* Remove settings for require approval, mergeable, undiverged

* Fix
2023-12-27 16:11:45 +00:00
Prajith
b7a06faee1 fix: download conftest binary for correct arch (#4089)
* download conftest binary for correct arch

Signed-off-by: Prajith P <prajithpalakkuda@gmail.com>

* remove default constant

Signed-off-by: Prajith P <prajithpalakkuda@gmail.com>

---------

Signed-off-by: Prajith P <prajithpalakkuda@gmail.com>
2023-12-27 15:49:27 +00:00
Luke Massa
d643c521ab feat: Remove flag for allow repo config (#3911)
* Remove option to allow repo

* Fix internal test

* Fix fmt

* Fmt

* Fix rebase

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Co-authored-by: Dylan Page <dylan.page@autodesk.com>
2023-12-12 03:24:38 +00:00