7673d5253f
refactor: migrate import paths from github to codeberg
2025-01-31 14:57:57 +01:00
f262ab5c08
refactor: add CROW_
vars ( #21 )
2025-01-19 13:01:18 +01:00
5e0dc2688f
refactor: use own import paths ( #5 )
2025-01-17 00:36:19 +01:00
81b74025d4
Update Go imports paths ( #4605 )
...
Co-authored-by: Robert Kaussow <mail@thegeeklab.de >
2024-12-22 10:44:34 +01:00
07c8765b72
Cleanup openapi generation ( #4331 )
...
Co-authored-by: oauth <woodpecker-bot@obermui.de >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de >
2024-11-23 09:17:19 +01:00
04e8309e60
Add server config to disable user registered agents ( #4206 )
2024-11-11 18:51:14 +01:00
98d7b1b500
Use middleware to load org ( #4208 )
...
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com >
Co-authored-by: Anbraten <anton@ju60.de >
2024-10-09 12:05:01 +02:00
febb8c5276
Implement org/user agents ( #3539 )
2024-09-30 12:33:16 +01:00
fcc57dfc38
Replay pipeline using cli exec
by downloading metadata ( #4103 )
...
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com >
2024-09-25 07:20:51 +02:00
92ff320429
Remove various deprecations ( #4017 )
2024-08-09 16:50:35 +02:00
d2b5e203b0
server: remove old unused routes ( #3845 )
2024-07-22 01:05:05 +02:00
28e982fffb
Global and organization registries ( #1672 )
...
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com >
2024-07-03 06:33:11 -07:00
b8b6efb352
Enhance token checking ( #3842 )
2024-06-27 00:08:59 +02:00
1a39d57f71
Enhance authentication UX ( #3807 )
2024-06-21 09:55:30 +02:00
fbb96ff8f5
Add api for forges ( #3733 )
2024-06-20 13:08:54 +02:00
fd57e4ad05
Use IDs for tokens ( #3695 )
2024-05-27 11:52:43 +02:00
42f2734308
cspell lint go code ( #3706 )
2024-05-24 22:35:04 +02:00
89e100cfd1
Add godot linter to harmonitze toplevel comments ( #3650 )
2024-05-13 22:58:21 +02:00
f8151aa97d
Check for error in repo middleware ( #3688 )
...
Co-authored-by: Robert Kaussow <mail@thegeeklab.de >
2024-05-11 10:38:35 +02:00
ae14150c09
Fix secret loading ( #3620 )
2024-04-29 21:33:45 +02:00
d0057736f1
Add DeletePipeline API ( #3506 )
...
This is just a first step, the final goal is to have an API endpoint to
prune Repo Pipelines older than the given date.
@woodpecker-ci/maintainers Can I get some feedback if this is the right
direction?
---------
Co-authored-by: 6543 <m.huber@kithara.com >
2024-04-25 10:59:17 +02:00
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
b8763a8f34
Step logs removing API and Button ( #3451 )
...
Closes #3444
closes #1272
---
Admin:



User:

2024-04-15 01:50:50 +02:00
a779eed3df
Enable golangci linter gomnd ( #3171 )
2024-03-15 18:00:25 +01:00
0b91317cde
Fix linter ( #3354 )
2024-02-08 22:49:07 +01:00
b82790d54c
Remove some interfaces ( #3220 )
2024-01-19 16:20:35 +01:00
b9f6f3f9fb
Replace goimports
with gci
( #3202 )
...
`gci` seems to be much more strict.
2024-01-14 18:22:06 +01:00
9bbba4441d
Enable golangci linter forcetypeassert ( #3168 )
...
Split out from https://github.com/woodpecker-ci/woodpecker/pull/2960
2024-01-12 02:01:02 +01:00
b0a2b1cf2d
Lowercase all log strings ( #3173 )
...
from #3161
---------
Co-authored-by: 6543 <6543@obermui.de >
2024-01-11 19:17:07 +01:00
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
12c40eb957
Enable gocritic
and don't ignore globally ( #3159 )
...
Use `nolint` directives instead.
From #2960
2024-01-10 15:34:44 +01:00
74f6824d03
Add option to disable version check in admin web UI ( #3040 )
...
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com >
2023-12-27 22:16:15 +01:00
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
8a3a2303a2
Signal to clients the hook and event routes where removed ( #2826 )
...
Signal to clients the hook and event routes where removed at #2639
close #2824
2023-11-19 20:32:35 +01:00
70711ed9db
Replace interface{}
with any
( #2807 )
...
like golang:
2580d0e08d
2023-11-12 18:23:48 +01:00
fd77b2e9d7
Fix repo owner filter ( #2808 )
...
and move to server config instead of middleware
cc @xoxys
closes #2784
2023-11-12 14:39:41 +01:00
5a7b689e30
Switch to go vanity urls ( #2706 )
...
Co-authored-by: Anbraten <anton@ju60.de >
2023-11-07 08:04:33 +01:00
5045f1e431
Remove deprecated API paths ( #2639 )
2023-10-24 15:21:05 +02:00
69917c1a0d
Add "Repair all" button ( #2642 )
...
to the admin repo list
ref #2639
2023-10-24 14:12:55 +02:00
22dfd2ef62
Refactor pipeline parsing and forge refreshing ( #2527 )
...
- refactor pipeline parsing
- do not parse the pipeline multiple times to perform filter checks, do
this once and perform checks on the result directly
- code deduplication
- refactor forge token refreshing
- move refreshing to a helper func to reduce code
---------
Co-authored-by: Anbraten <anton@ju60.de >
2023-10-08 14:05:06 +02:00
d04bb72e5e
Add repos list for admins ( #2347 )
2023-09-08 12:26:20 +02:00
e847cbadfa
Check permissions on repo lookup ( #2357 )
...
There was no permission check when looking up repos so you were able to
get basic repo information even if you're not allowed to.
This uses `session.MustPull` (and set repo/perms before) to fix this.
2023-08-30 16:35:34 +02:00
479ced3b25
Add org list ( #2338 )
...

Closes #2307
2023-08-28 11:15:16 +02:00
479e500b1b
Move hook and events-stream routes to use /api
prefix ( #2212 )
...
- move hook and events-stream routes to use `/api` prefix
- rename build to pipeline
2023-08-16 02:42:37 +02:00
8cdac56d8f
Check for correct license header ( #2137 )
2023-08-10 11:06:00 +02:00
67b7de5cc2
Fix UI and backend paths with subpath ( #1799 )
...
I'm not sure if this is an ideal fix for this, but it seems to work for
me. If you have another idea just let me know.
Closes #1798
Closes #1773
2023-08-07 16:05:18 +02:00
1a7f7a9427
Allow to disable swagger ( #2093 )
...
https://github.com/woodpecker-ci/woodpecker/issues/1944
2023-08-03 02:42:30 +02:00
e5d5ec8b47
Use id to access orgs ( #1873 )
...
closes #1743
fixes: setting secrets for own user namespace
- create org in database
- use orgID for org related APIs
Co-authored-by: 6543 <6543@obermui.de >
2023-07-21 19:45:32 +02:00
6c58e9db9b
Fix agent auth ( #1952 )
...
if no global agent secret set, disable agent registration via it
2023-07-08 18:09:34 +02:00
182a236793
logs stream: fix url parameter ( #1858 )
...
was missed during #1691
2023-06-13 14:40:40 +02:00