1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2026-06-03 16:35:37 +02:00
Commit Graph

97 Commits

Author SHA1 Message Date
guillaumem e630e0a394 Improve slow user authorization if many orgs/repos (#5665)
Co-authored-by: GuillaumeMeurillon <MeurillonGuillaume@users.noreply.github.com>
2026-06-01 11:37:31 +02:00
qwerty287 f7f0a9b561 Show correct default paths in UI (#6665) 2026-05-28 14:08:36 +02:00
6543 950534751b Add WOODPECKER_FORCE_IGNORE_SERVICE_FAILURE config to preserve non breaking behavior by default (#6448) 2026-04-17 17:10:03 +02:00
6543 acc68e509b Init server/scheduler package and use it as proxy for queue&pubsub (#6418) 2026-04-10 11:03:40 +03:00
6543 662575630a Refactor server/pubsub into interface (#6318) 2026-03-30 19:32:44 +02:00
qwerty287 79cc07265e Unify import aliases (#6328)
Co-authored-by: 6543 <6543@obermui.de>
2026-03-28 15:45:23 +01:00
6543 2bc56896f3 Refactor so storage detects if Insert fails because of unique constraint (#6259) 2026-03-19 13:17:56 +01:00
confusedsushi 89fd89449c possibillity to configure the maximum number of lines to show in a pi… (#6250) 2026-03-16 22:00:40 +01:00
Anbraten cdefb2842c Migrate to maintained tink-go (#5886) 2025-12-20 09:23:09 +01:00
qwerty287 1019d85065 Add log service addon (#5507)
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2025-10-21 08:40:30 +02:00
Gusted 650d6bd432 chore(deps): drop github.com/gorilla/securecookie (#5609) 2025-10-06 23:43:29 +02:00
qwerty287 40e383866a Allow to set default approval mode (#5406) 2025-08-11 12:59:02 +02:00
renovate[bot] e7243e3ff5 fix(deps): update golang-packages (#5111)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2025-04-22 10:55:07 +02:00
Robert Kaussow 9869f1be75 Add backoff retry for store setup (#4964) 2025-03-17 07:16:16 +01:00
Jack Gleeson 5ea4f0cfae Add default option for allowing pull requests on repositories (#4873) 2025-02-20 19:28:28 +02:00
qwerty287 81b74025d4 Update Go imports paths (#4605)
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2024-12-22 10:44:34 +01:00
qwerty287 b4f5d625c6 Don't log DB passwords (#4583)
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2024-12-18 15:46:36 +01:00
Lauris BH 5699d22a55 Add server configuration option to add default set of labels for workflows that has no labels specified (#4326) 2024-11-14 22:23:42 +01:00
6543 04e8309e60 Add server config to disable user registered agents (#4206) 2024-11-11 18:51:14 +01:00
6543 6e38a950cd Add options to controll the database connections (open,idle,timeout) (#4212) 2024-11-05 15:03:22 +01:00
6543 3ab579c03f Move Queue creation behind new func that evaluates queue type (#4252) 2024-11-05 04:03:40 +01:00
6543 6ad20ced5b Move docker resource limit settings from server to agent (#3174)
so you can set it per agent and not per server
2024-09-26 16:56:59 +01:00
6543 32d1ec7cec Remove all default privileged plugins (#4053) 2024-09-02 10:41:20 +02:00
6543 3c8204a0e0 Allow alter trusted clone plugins and filter them via tag (#4074) 2024-09-01 20:41:10 +02:00
6543 e4f954ef94 Remove all default 3rd party privileged plugins (#3918) 2024-08-31 19:04:47 +02:00
6543 659e925d0e Remove WOODPECKER_DEV_OAUTH_HOST and WOODPECKER_DEV_GITEA_OAUTH_URL (#3961)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-07-23 14:25:39 +02:00
6543 cd5f6f71a2 Migrate to github.com/urfave/cli/v3 (#2951) 2024-07-18 01:26:35 +02:00
6543 757f5a58e2 Gracefully shutdown server (#3896) 2024-07-14 01:46:01 +02:00
6543 28cd815c42 Move setupEvilGlobals from server.go into setup.go (#3899) 2024-07-13 13:11:07 +02:00
Anbraten 2bda19024e Use proper oauth state (#3847) 2024-06-27 16:52:09 +02:00
qwerty287 c72468478d Allow to store logs in files (#3568)
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-06-06 14:34:57 +02:00
6543 4ec046e415 Spellcheck "server/*" (#3753)
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-06-04 08:30:54 +02:00
Anbraten d494b6a959 Use forge from db (#1417)
This is the first step towards support for multiple forges (#138). It
inserts a forge using the currently existing env varaibles into db and
uses this forge from db later on in all places of the code.

closes #621

addresses #138 

# TODO
- [x] add forges table
- [x] add id of forge to repo
- [x] use forge of repo
- [x] add forge from env vars to db if not exists
- [x] migrate repo.ForgeID to the newly generated forge
- [x] support cache with forge from repo
- [x] maybe add forge loading cache? (use LRU cache for forges, I expect
users to have less than 10 forges normally)

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-04-16 08:04:55 +02:00
qwerty287 00f0fcd416 Rework addons (use rpc) (#3268)
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-04-15 10:04:21 +02:00
Aumetra Weisman 20b84a1aee Add flag to only access public repositories on GitHub (#3566) 2024-03-29 14:36:48 +01:00
qwerty287 fbdfa14a00 Allow separate gitea oauth URL (#3513)
closes https://github.com/woodpecker-ci/woodpecker/issues/3470

---------

Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2024-03-21 11:37:02 +01:00
Thor Anker Kvisgård Lange 364d708923 Add bitbucket datacenter (server) support (#2503)
This pull-requests re-introduces the Bitbucket Server support with a
more or less complete rewrite of the forge implementation. We have a lot
of on-premises git repositories hosted in Bitbucket Server and need a CI
solution for running that and Woodpecker looks promising.

The implementation is based on external Bitbucket Server REST client
library which we are maintaining and have created in another context.
Besides the original support for Bitbucket the re-implementation also
adds support for handling Bitbucket pull-request events.
2024-02-20 15:58:02 +01:00
Anbraten 82e1ce937c Refactor internal services (#915) 2024-02-11 18:42:33 +01:00
qwerty287 b0a2b1cf2d Lowercase all log strings (#3173)
from #3161

---------

Co-authored-by: 6543 <6543@obermui.de>
2024-01-11 19:17:07 +01:00
qwerty287 00df53e941 Clean up logging (#3161)
- use `Err` method instead of format strings
- use `Msg` if no format string is used
2024-01-10 20:57:12 +01:00
qwerty287 12c40eb957 Enable gocritic and don't ignore globally (#3159)
Use `nolint` directives instead.

From #2960
2024-01-10 15:34:44 +01:00
qwerty287 768fd71841 Enable some linters (#3129)
Mostly those that did not require much work.

From #2960

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-09 21:35:37 +01:00
qwerty287 04d1f9ff5f Support more addon types (#2984)
Actually support all types that can be possible.

Closes https://github.com/woodpecker-ci/woodpecker/discussions/2520
2023-12-24 13:26:23 +01:00
qwerty287 dfc2c265b1 Support go plugins for forges and agent backends (#2751)
As of #2520 

Support to load new forges and agent backends at runtime using go's
plugin system. (https://pkg.go.dev/plugin)

I also added a simple example addon (a new forge which just prints log
statements), it should be removed later of course, but you can see an
example.

---------

Co-authored-by: Michalis Zampetakis <mzampetakis@gmail.com>
Co-authored-by: Anbraten <anton@ju60.de>
2023-12-20 14:26:57 +01:00
runephilosof-karnovgroup adb2c82790 Update go module path for major version 2 (#2905)
https://go.dev/doc/modules/release-workflow#breaking

Fixes https://github.com/woodpecker-ci/woodpecker/issues/2913 fixes
#2654
```
runephilosof@fedora:~/code/platform-woodpecker/woodpecker-repo-configurator (master)$ go get go.woodpecker-ci.org/woodpecker@v2.0.0
go: go.woodpecker-ci.org/woodpecker@v2.0.0: invalid version: module contains a go.mod file, so module path must match major version ("go.woodpecker-ci.org/woodpecker/v2")
```

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-12-08 08:15:08 +01:00
qwerty287 7bacbd5699 Migrate to Xormigrate (#2711)
Co-authored-by: Anbraten <anton@ju60.de>
2023-11-28 10:31:54 +01:00
6543 5a7b689e30 Switch to go vanity urls (#2706)
Co-authored-by: Anbraten <anton@ju60.de>
2023-11-07 08:04:33 +01:00
renovate[bot] 121457b76e fix(deps): update golang (packages) (#2614) 2023-10-23 08:45:34 +02:00
6543 350282ce29 make WOODPECKER_MIGRATIONS_ALLOW_LONG have an actuall effect (#2251)
close #2079

as we sett the global vars **after** migrations we did never had a
chance to propagate a **true** in WOODPECKER_MIGRATIONS_ALLOW_LONG to
the migrations ...

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-08-21 09:29:45 +02:00
6543 27c0ff502e Remove fallback check for old sqlite file location (#2046)
non breaking as we did fix or hard fail in last version, now we just
don't check anymore

---------

Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2023-07-28 13:31:25 +02:00