Commit Graph

309 Commits

Author SHA1 Message Date
Ricard Bejarano
6c129199d6 fix: only allow team slug support in --gh-team-allowlist by dropping support for ambiguous team names (#5510)
Signed-off-by: Ricard Bejarano <ricard@bejarano.io>
Co-authored-by: PePe Amengual <2208324+jamengual@users.noreply.github.com>
Co-authored-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: RB <7775707+nitrocode@users.noreply.github.com>
2025-04-12 17:39:21 -05:00
renovate[bot]
b3b3f5ab43 fix(deps): update module github.com/google/go-github/v68 to v71 in go.mod (main) (#5522)
Signed-off-by: RB <7775707+nitrocode@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: RB <7775707+nitrocode@users.noreply.github.com>
2025-04-11 01:52:03 -05:00
Moritz Weichert
7b40007c37 feat: Enable discard-approval-on-plan for gitlab (#5388) 2025-03-10 22:08:22 +00:00
Petr Bubenik
9b737b22cc fix: Add pagination to AzureDevops modified files call (#5298)
Signed-off-by: Petr Bubenik <petr.bubenik@drmax.eu>
2025-02-16 20:22:18 +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
Luke Massa
452040f606 fix: Unintentional nil errors in azuredevops client (#5312)
Signed-off-by: Luke Massa <lukefrederickmassa@gmail.com>
2025-02-08 18:44:35 -05:00
Luke Massa
e1dcc44918 chore: Refactor retries in gitlab set status (#5293)
Signed-off-by: Luke Massa <lukefrederickmassa@gmail.com>
2025-02-08 12:55:10 -05:00
Luke Massa
c2c25aeef2 fix: Minor bug in determining teams for gitlab (#5294)
Signed-off-by: Luke Massa <lukefrederickmassa@gmail.com>
2025-02-02 22:32:50 -05:00
Joshua Spork
05659b8cdb feat: BitBucket Cloud: add support for webhook secrets (#4275)
Signed-off-by: Joshua Spork <almightyfoon@gmail.com>
2025-01-25 19:03:51 +00: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
Edward
c864248ec2 feat: Enable hide-prev-plan-comments Feature for BitBucket Cloud (#4495)
Signed-off-by: Simon Heather <32168619+X-Guardian@users.noreply.github.com>
2025-01-25 13:33:29 +00:00
Lukas Aldershaab
6642a885b6 feat: Add rate limit handling for GitHub client (#5226)
Signed-off-by: Lukas Peter Aldershaab <lukas.aldershaab@lego.com>
Co-authored-by: PePe Amengual <2208324+jamengual@users.noreply.github.com>
2025-01-22 00:08:00 -05:00
renovate[bot]
d473fe0092 fix(deps): update module github.com/google/go-github/v66 to v68 in go.mod (main) (#5209)
Signed-off-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Rui Chen <rui@chenrui.dev>
2024-12-31 18:45:20 +00:00
Rui Chen
e99a91b770 chore: migrate from xanzy/go-gitlab to gitlab-org/api/client-go (#5210)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-12-31 13:24:53 -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
Rui Chen
129c5f04ee chore(deps): update alpine to 3.21.0, ca-certificates to 20241010, go/golangci-lint to latest (#5166)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-12-15 15:26:33 -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
Roma Ryzhyi
b975301b2b fix: Fix GitHub pull request mergeability for multiple required workflow runs (#5057)
Signed-off-by: Roman Ryzhyi <ryzhyi.r@ajax.systems>
2024-11-19 09:52:53 +00: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
renovate[bot]
fca4be1820 fix(deps): update module github.com/google/go-github/v65 to v66 in go.mod (main) (#5086)
Signed-off-by: X-Guardian <simonheather99@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: X-Guardian <simonheather99@gmail.com>
2024-11-16 14:25:31 +00:00
Simon Heather
8c6541f06f fix: Change GitLab UpdateStatus Function to get Pipeline from Commit rather than the Merge Request (#5033)
Signed-off-by: X-Guardian <simonheather99@gmail.com>
2024-11-11 22:41:18 +00:00
Henry Muru Paenga
74916fbf38 feat: GitHub - Support loading git token from disk (#4928) 2024-11-04 23:14:59 +00:00
bakayolo
841f7b4277 feat: add ignore-vcs-status-names (github only) (#4978)
Signed-off-by: bakayolo <benjamin.apprederisse@gmail.com>
2024-11-04 22:04:13 +00:00
Henrik Lundström
e4dea0311d fix: Ignore apply check(s) even if missing from rollup when determining mergeability for GitHub (#4974)
Signed-off-by: Henrik Lundström <henrik94lundstrom@gmail.com>
2024-11-04 17:59:23 +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
renovate[bot]
50ace7de5c fix(deps): update module github.com/google/go-github/v63 to v65 in go.mod (main) (#4968)
Signed-off-by: X-Guardian <simonheather99@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: X-Guardian <simonheather99@gmail.com>
2024-11-02 15:14:55 +00:00
Benoit Toulme
7f4a4207d1 fix: fix broken formatting of first comment in case of command output truncation (#4980)
Co-authored-by: PePe Amengual <2208324+jamengual@users.noreply.github.com>
2024-10-24 13:03:24 +01:00
nitrocode
1c1c50556f chore(deps): upgrade go-github 63.x (#4943)
Signed-off-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-23 12:36:24 -05:00
benoittoulme
6b52bd7738 chore: use markdown to display github comments truncation header (#4885)
Co-authored-by: Rui Chen <rui@chenrui.dev>
2024-09-12 16:00:11 -04:00
dobby-dobster
cb5be4aaf0 fix: dont log GitHub app token in logs (#4667)
Co-authored-by: Tom Baker <tobaker@tripadvisor.com>
2024-09-06 08:17:32 -07:00
Henrik Lundström
ed7b744695 fix: GitHub mergeability bypassing apply (#4193) 2024-09-04 19:36:24 -07:00
Andrew Fitzpatrick
ed03d35d59 fix: send pipelineID in gitlabs SetCommitStatus if the mr gets found, fallback to branch ref (#4785) 2024-08-07 23:54:24 -07:00
David Glasser
5a918e382c feat: Add --max-comments-per-command configuration (#3905)
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Co-authored-by: Benoit Toulme <benoit.toulme@gmail.com>
2024-06-26 23:13:09 -04: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
john-tipper
82cd0746ee fix: support gh-installation-id flag and fix #4578 #1229 #3545 (#4579)
Co-authored-by: Rui Chen <rui@chenrui.dev>
2024-05-22 14:35:39 -04:00
Christian Winther
633ca09fce fix: implement tests for gitlab client 409 Conflict handling (#4548) 2024-05-19 16:58:35 -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
a4d89255fc fix: update hero img loc (#4554)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-05-14 19:47:53 +00:00
Rui Chen
50cd3d3ac6 feat: migrate off vuepress to vitepress (#4515)
Signed-off-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2024-05-14 18:22:13 +00: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
e766e14e89 fix: implement backoff + retry when GitLab SetCommitStatus returns 409 (#4503)
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2024-05-09 18:18:25 -04:00
Simon Heather
6824af5922 fix: Atlantis Apply Fails on GitLab v16.10 When the Merge Request Branch Needs Rebasing (#4402) 2024-04-05 15:08:58 +01:00
Simon Heather
b221fdc0af feat: Refine the logging in the Working Dir Package (#4294)
Co-authored-by: Dylan Page <dylan.page@autodesk.com>
2024-03-27 16:20:45 +00:00
Martijn van der Kleijn
722c4a9372 feat: Add Gitea support (#4229)
* Add initial Gitea client structure

* Add various missing config flags

* initial gitea support added

* Fix some post-merge issues

* Replace HidePrevCommandComments by version from @florianbeisel

* Update mocks

* feat: add Webhook Signature Verification

This changes adds support for Gitea Webhook Signatures by wrapping the
function from the Gitea SDK and calling it from `handleGiteaPost()`.

* fix: use release version in go.mod

1.22 as in the previous go.mod is a development version. When referencing
a minimum release version the correct format is 1.22.0

* Set default Gitea url to cloud.gitea.com

* Fix and Add tests for Gitea

* Fix missing copyright header

* Changed comment to reflect no max comment length

Apparently there's no max comment length in Gitea at this point in time.

* Implement GetCloneURL()

* Decode Base64 before passing on downloaded file content

* Enable Gitea client as API Client

* Remove unneded comments

* Remove old redundant file

* fix: invalid version number in go.mod

* fix: remove unnecessary type conversions

* fix: removed unused function

* fix: remove unnecessary type conversion of decodedData

* fix: fixes some tests

* Correct gitea.com URL

* Add Gitea to website docs

* fix: TestPost_UnsupportedGiteaEvent

* revert version downgrades

* docs: add Gitea documentation to Guide section

* docs: fix copy paste mistake

* Update cmd/server_test.go

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Clarify usage msg for --gitea-base-url

* Apply suggestions from code review

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Turn ebreak number into const with comments

* Add --gitea-page-size server argument

Defaults to 30 based on https://docs.gitea.com/1.18/advanced/config-cheat-sheet#api-api

* Fix broken test

* Fix event parser and comment parser

* Add missing app permission to docs

* Make Gitea client conform to updated interface

* Update server/events/vcs/gitea/client.go

Co-authored-by: Simon Heather <32168619+X-Guardian@users.noreply.github.com>

* Remove no longer needed logger

* Add extra logging statements for Gitea client

* Add debug statements

---------

Co-authored-by: Florian Beisel <florian@pacey.me>
Co-authored-by: Florian Beisel <florian@beisel.it>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Co-authored-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: Simon Heather <32168619+X-Guardian@users.noreply.github.com>
2024-03-18 14:21:45 +00:00
renovate[bot]
6884238cd1 fix(deps): update module github.com/google/go-github/v58 to v59 in go.mod (main) (#4241)
* fix(deps): update module github.com/google/go-github/v58 to v59 in go.mod

* Update fixtures.go

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2024-02-27 23:47:57 -06: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
renovate[bot]
ef766d2ec1 fix(deps): update module github.com/google/go-github/v57 to v58 in go.mod (main) (#4138)
* fix(deps): update module github.com/google/go-github/v57 to v58 in go.mod

* Update remaining go-github to v58

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Luke Massa <lmassa@tripadvisor.com>
2024-01-19 10:30:38 -05:00
Simon Heather
31802675da fix: Atlantis Does Not Consider the Plan Directory When Hiding Previous Plan Comments (#4012)
* Fix Hide Previous Plan Comments

* Update GitLab client tests

* Update GitLab client test

* Update github client test

* Add nolint: errcheck to test

* format github_client.go
2023-12-29 13:15:17 -05:00
Luke Massa
7faa03fd18 chore: fix label type in gitlab testdata (#4091) 2023-12-23 11:34:22 -05:00
Adam Kafka
f5d92c60b5 fix: Prevent panics when logging HTTP response status in github and gitlab client (#4082)
Fix potential nil pointers. See https://github.com/runatlantis/atlantis/issues/4081 for context.
2023-12-22 11:36:04 -05:00