Commit Graph

430 Commits

Author SHA1 Message Date
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
renovate[bot]
603fb26fd7 fix(deps): update github.com/shurcool/githubv4 digest to be2daab in go.mod (main) (#4497)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-01 01:27:45 +00:00
renovate[bot]
43919e4fad chore(deps): update module golang.org/x/net to v0.23.0 [security] (main) (#4427)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-14 05:39:14 +00:00
renovate[bot]
06858d7eb5 fix(deps): update github.com/warrensbox/terraform-switcher digest to 4d66b26 in go.mod (main) (#4425)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-14 00:32:09 +00:00
renovate[bot]
5b44258d12 fix(deps): update github.com/warrensbox/terraform-switcher digest to 2a61251 in go.mod (main) (#4420)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-12 02:25:03 +00:00
renovate[bot]
072d2592c0 fix(deps): update github.com/warrensbox/terraform-switcher digest to 2742b8e in go.mod (main) (#4416)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-11 02:08:17 +00:00
Simon Heather
bf7cd800e2 fix(deps): update module github.com/xanzy/go-gitlab to v0.102.0 in go.mod (main) (#4414) 2024-04-09 10:13:23 -04:00
renovate[bot]
d788ffaca7 fix(deps): update github.com/warrensbox/terraform-switcher digest to fe07d8b in go.mod (main) (#4413)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-09 02:45:32 +00:00
renovate[bot]
4d4011f8ed fix(deps): update github.com/warrensbox/terraform-switcher digest to d692ecd in go.mod (main) (#4406)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-06 00:26:51 +00:00
renovate[bot]
050071be58 fix(deps): update github.com/warrensbox/terraform-switcher digest to f268ab5 in go.mod (main) (#4403)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-04 02:07:00 +00:00
renovate[bot]
d7b5ea774b fix(deps): update github.com/warrensbox/terraform-switcher digest to e96de4b in go.mod (main) (#4400)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-03 00:21:33 +00:00
renovate[bot]
ef2a6944de fix(deps): update github.com/warrensbox/terraform-switcher digest to 6aaa2c4 in go.mod (main) (#4399)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-02 00:37:04 +00:00
renovate[bot]
d32a16de10 fix(deps): update github.com/warrensbox/terraform-switcher digest to b74a6fd in go.mod (main) (#4396)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-01 02:03:20 +00:00
renovate[bot]
84f0fff169 fix(deps): update module github.com/bradleyfalzon/ghinstallation/v2 to v2.10.0 in go.mod (main) (#4395)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-31 03:28:53 +00:00
renovate[bot]
506f1ba841 fix(deps): update module github.com/hashicorp/hcl/v2 to v2.20.1 in go.mod (main) (#4393)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-30 00:44:08 +00:00
renovate[bot]
16d0881871 fix(deps): update github.com/warrensbox/terraform-switcher digest to ef1f0ce in go.mod (main) (#4392)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-29 02:42:04 +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]
d560d28e1c fix(deps): update module github.com/alicebob/miniredis/v2 to v2.32.1 in go.mod (#4355)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 02:28:33 +00:00
renovate[bot]
fd323a0e73 chore(deps): update module google.golang.org/protobuf to v1.33.0 [security] (#4354)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 02:09:51 +00:00
renovate[bot]
e5b695bd18 chore(deps): update dependency go to v1.22.1 in go.mod (#4351)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-13 02:01:31 +00:00
renovate[bot]
e590605838 fix(deps): update module github.com/xanzy/go-gitlab to v0.100.0 in go.mod (#4333)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-11 02:37:32 +00:00
renovate[bot]
1cfc78876e fix(deps): update module golang.org/x/term to v0.18.0 in go.mod (#4316)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-07 00:26:03 +00:00
renovate[bot]
75715af2e4 fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.1 in go.mod (#4312)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-05 03:42:55 +00:00
renovate[bot]
c5e5b43e5a fix(deps): update module github.com/xanzy/go-gitlab to v0.99.0 in go.mod (#4311)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-05 00:45:36 +00:00
renovate[bot]
ee402237e4 fix(deps): update module github.com/xanzy/go-gitlab to v0.98.0 in go.mod (#4309)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-04 02:07:32 +00:00
renovate[bot]
219c923d49 fix(deps): update module github.com/go-playground/validator/v10 to v10.19.0 in go.mod (#4307)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-03 03:52:34 +00:00
renovate[bot]
5259e0cf10 fix(deps): update module github.com/stretchr/testify to v1.9.0 in go.mod (#4305)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-02 01:06:44 +00:00
renovate[bot]
7ff50e5101 fix(deps): update module github.com/hashicorp/hcl/v2 to v2.20.0 in go.mod (#4299)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-01 02:44:18 +00:00
Rui Chen
b4ab9c08e2 fix: update go version in go.mod (#4287) 2024-02-28 19:52:20 +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
renovate[bot]
e45f9fc0b0 fix(deps): update module go.etcd.io/bbolt to v1.3.9 in go.mod (#4292)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 01:02:48 +00:00
renovate[bot]
f9646cebb9 fix(deps): update module github.com/slack-go/slack to v0.12.5 in go.mod (#4291)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-27 03:20:35 +00:00
renovate[bot]
34c09b13b9 fix(deps): update module go.uber.org/zap to v1.27.0 in go.mod (#4270)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 00:59:07 +00:00
renovate[bot]
0a281c965d fix(deps): update module github.com/redis/go-redis/v9 to v9.5.1 in go.mod (#4261)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-20 17:05:52 +00:00
renovate[bot]
26e88d0313 fix(deps): update module github.com/urfave/negroni/v3 to v3.1.0 in go.mod (#4262)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 03:21:19 +00:00
renovate[bot]
6c49694de0 fix(deps): update module github.com/slack-go/slack to v0.12.4 in go.mod (#4258)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-17 01:49:26 +00:00
renovate[bot]
2939daf9dd fix(deps): update module github.com/go-playground/validator/v10 to v10.18.0 in go.mod (#4233)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-12 01:23:35 +00:00
renovate[bot]
44cf761ffe fix(deps): update module golang.org/x/term to v0.17.0 in go.mod (#4231)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-11 03:30:34 +00:00
Rui Chen
dffae125fe feat: support go1.22 (#4217)
* feat: support go1.22

Signed-off-by: Rui Chen <rui@chenrui.dev>

* setup go toolchain for golangci-lint and tests jobs

Signed-off-by: Rui Chen <rui@chenrui.dev>

---------

Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-02-08 21:04:28 +01:00
renovate[bot]
c837288670 fix(deps): update module github.com/xanzy/go-gitlab to v0.97.0 in go.mod (#4206)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-04 01:08:02 +00: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
renovate[bot]
9a14f5d9a9 fix(deps): update module github.com/google/uuid to v1.6.0 in go.mod (#4170)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 01:18:54 +00:00
renovate[bot]
8983521037 fix(deps): update github.com/shurcool/githubv4 digest to 18a1ae0 in go.mod (#4160)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-21 02:29:32 +00: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
renovate[bot]
23e53701d8 fix(deps): update module github.com/xanzy/go-gitlab to v0.96.0 in go.mod (#4151)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 01:13:27 +00:00
renovate[bot]
00cad3ad3d fix(deps): update module github.com/go-playground/validator/v10 to v10.17.0 in go.mod (#4146)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-15 00:35:39 +00:00
renovate[bot]
cea2db5fb0 fix(deps): update module github.com/redis/go-redis/v9 to v9.4.0 in go.mod (#4127)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-08 00:25:56 +00:00
renovate[bot]
0bd1908696 fix(deps): update module golang.org/x/term to v0.16.0 in go.mod (#4126)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-07 00:30:22 +00:00
renovate[bot]
9ff79fb630 fix(deps): update module github.com/bradleyfalzon/ghinstallation/v2 to v2.9.0 in go.mod (#4124)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-06 01:24:03 +00:00
renovate[bot]
a8c54dee9d fix(deps): update module github.com/alicebob/miniredis/v2 to v2.31.1 in go.mod (#4118)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-04 01:46:19 +00:00