devlux
5671956a31
Correct http cache headers for firefox ( #3017 )
...
Co-authored-by: Luca Marinucci <luca.marinucci@devlux.ch>
Co-authored-by: Anbraten <anton@ju60.de>
2023-12-26 08:37:13 +01:00
6543
3f1f563180
fix and lint swagger file ( #3007 )
...
Co-authored-by: qwerty287 <ndev@web.de>
2023-12-24 15:50:01 +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
Anbraten
2b1e5f35de
Add depends_on support for steps ( #2771 )
...
Co-authored-by: 6543 <6543@obermui.de>
2023-12-24 12:14:30 +01:00
qwerty287
9d9bcbf363
Hide PR tab if PRs are disabled ( #3004 )
...
Closes https://github.com/woodpecker-ci/woodpecker/issues/2988
2023-12-24 11:04:18 +02:00
Anbraten
e5dbbd92c7
Fix gitlab project fetching ( #3000 )
2023-12-23 09:48:16 +01:00
Anbraten
619858e0e9
Ignore pipelines without config ( #2949 )
...
Co-authored-by: 6543 <6543@obermui.de>
2023-12-21 11:13:25 +01:00
6543
65c62e987f
gitlab: support nested repos ( #2981 )
...
close #2311
2023-12-21 00:55:16 +01:00
Lauris BH
6432109daf
Fix static file caching ( #2975 )
...
Replaces #2972
Fixes #2483
Removed etag header as etag is used incorrectly, it should be based on
content not startup time and we don't handle it from request headers
anyway.
2023-12-20 10:31:52 +02:00
runephilosof-karnovgroup
a28e2e1920
Register Agent with hostname ( #2936 )
...
Transfer the agent hostname to the server's model.agent.Name field.
Previously the autoscaler had to create the agent with the server and
get a unique token to pass to the agent at boot up. This allows to get
the right name for the agent while using the shared master agent token
at agent boot up.
Both ways are still supported.
2023-12-19 14:17:36 +01:00
6543
2e7610379e
Update slogan & logo ( #2962 )
...
- Update woodpecker slogan to repo too
we are not just a simple fork anymore 🎉
- use https://github.com/woodpecker-ci/design/blob/main/logo/non-square.svg
2023-12-19 14:12:18 +01:00
6543
1ca549190b
Gitea driver: ignore GetOrg error if we get a valid user. ( #2967 )
...
`[POST] /api/repos?forge_remote_id=12345`
```json
{"level":"error","error":"GetOrgByName","time":"2023-12-19T01:03:36Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/api/repo.go:143","message":"Could not fetch organization from forge."}
```
because `https://codeberg.org/api/v1/orgs/6543 ` returns an error.
`https://codeberg.org/api/v1/users/6543 ` do not.
close #2714
2023-12-19 09:13:39 +01:00
6543
257a76c5ea
Improve error handling when activating a repository ( #2965 )
...
Activate Repo:
- Don't drop errors and also always log them on the server.
- Show users only meaningful error messages.
2023-12-19 06:25:59 +01:00
6543
ebbac258a2
Add check for storage where repo/org name is empty ( #2968 )
...
I just discovered that there is an organization created with name being empty.
we should at least catch it for now in the storage - and later trace
down why we get it in the first place
2023-12-19 06:03:56 +01:00
Robert Kaussow
23f58fc07a
Fix broken gated repos ( #2959 )
...
Fixes a bug introduced in
https://github.com/woodpecker-ci/woodpecker/pull/2923 . I'll also try to
add a test case.
2023-12-17 18:44:48 +02:00
Anbraten
16803d6217
Show secrets from org and global level ( #2873 )
...
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-12-16 10:29:13 +01:00
6543
1f8b3b5e1b
Only update pipelineStatus in one place ( #2952 )
2023-12-15 10:03:05 +01:00
qwerty287
360b41f961
Remove separate root path config ( #2943 )
2023-12-13 15:51:18 +01:00
6543
4974d4cffe
ignore some errors on repairAllRepos ( #2792 )
...
close #2791
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-12-13 14:53:38 +01:00
Lauris BH
c6ce23e933
Allow to restart pipelines that has warnings ( #2939 )
2023-12-13 14:11:05 +01:00
Robert Kaussow
6de5922408
Fix skipped pipelines model ( #2923 )
...
Fixes: https://github.com/woodpecker-ci/woodpecker/issues/2901
---------
Co-authored-by: Lauris BH <lauris@nix.lv>
2023-12-12 22:30:52 +02: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
renovate[bot]
621eed6205
Update module github.com/google/go-github/v56 to v57 ( #2899 )
2023-12-02 15:19:39 +01:00
qwerty287
237b2257f5
Fix bitbucket org fetching ( #2874 )
...
closes #2793
2023-12-01 20:45:42 +01:00
qwerty287
2f963d70e7
Add linting for any
( #2893 )
...
Add gofmt rules to make sure `interface{}` is not used but only `any`.
2023-11-29 20:21:18 +01:00
qwerty287
7bacbd5699
Migrate to Xormigrate ( #2711 )
...
Co-authored-by: Anbraten <anton@ju60.de>
2023-11-28 10:31:54 +01:00
qwerty287
849b02a433
Fix pipeline-related environment ( #2876 )
...
closes https://github.com/woodpecker-ci/woodpecker/issues/2672
pipeline model must be persisted first to have some fields like `Number`
and `ID`
2023-11-26 19:59:36 +01:00
Michalis Zampetakis
981384b79a
Change PullRequest Index to ForgeRemoteID / string type ( #2823 )
...
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: Anbraten <anton@ju60.de>
2023-11-26 00:52:52 +01:00
qwerty287
111a0b4ea5
Fix unregistering agents used with agent tokens ( #2870 )
...
from discussion on matrix
I'm not sure if this is the best way to fix this, but I don't really see
a different way.
2023-11-24 18:19:38 +01:00
qwerty287
f2071e3999
Add repo owner test ( #2857 )
...
from #2855
2023-11-23 00:57:29 +01:00
qwerty287
c9e587753e
Fix repo listing ( #2855 )
...
closes #2854
2023-11-22 09:42:20 +01:00
renovate[bot]
f0f57ec961
Update golang (packages) ( #2839 )
...
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/antonmedv/expr](https://togithub.com/antonmedv/expr ) |
require | patch | `v1.15.3` -> `v1.15.4` |
| [github.com/xanzy/go-gitlab](https://togithub.com/xanzy/go-gitlab ) |
require | minor | `v0.93.2` -> `v0.94.0` |
| [k8s.io/api](https://togithub.com/kubernetes/api ) | require | patch |
`v0.28.3` -> `v0.28.4` |
| [k8s.io/apimachinery](https://togithub.com/kubernetes/apimachinery ) |
require | patch | `v0.28.3` -> `v0.28.4` |
| [k8s.io/client-go](https://togithub.com/kubernetes/client-go ) |
require | patch | `v0.28.3` -> `v0.28.4` |
---
### Release Notes
<details>
<summary>antonmedv/expr (github.com/antonmedv/expr)</summary>
###
[`v1.15.4`](https://togithub.com/antonmedv/expr/releases/tag/v1.15.4 )
[Compare
Source](https://togithub.com/antonmedv/expr/compare/v1.15.3...v1.15.4 )
- Improved type checking for `$env`
- Added support for floats in `sort()` built-in
- Fixed: AST printing for `??` operator
- Fixed: only emit `OpEqual{Int,String}` for simple types
- Fixed: fetch without `OpDeref`
([#​467](https://togithub.com/antonmedv/expr/issues/467 ))
- Docs: categorize Language Definition functions
([#​452](https://togithub.com/antonmedv/expr/issues/452 ))
- Changed: `ast.Node` type now is not copied with `ast.Patch`
</details>
<details>
<summary>xanzy/go-gitlab (github.com/xanzy/go-gitlab)</summary>
###
[`v0.94.0`](https://togithub.com/xanzy/go-gitlab/compare/v0.93.2...v0.94.0 )
[Compare
Source](https://togithub.com/xanzy/go-gitlab/compare/v0.93.2...v0.94.0 )
</details>
<details>
<summary>kubernetes/api (k8s.io/api)</summary>
###
[`v0.28.4`](https://togithub.com/kubernetes/api/compare/v0.28.3...v0.28.4 )
[Compare
Source](https://togithub.com/kubernetes/api/compare/v0.28.3...v0.28.4 )
</details>
<details>
<summary>kubernetes/apimachinery (k8s.io/apimachinery)</summary>
###
[`v0.28.4`](https://togithub.com/kubernetes/apimachinery/compare/v0.28.3...v0.28.4 )
[Compare
Source](https://togithub.com/kubernetes/apimachinery/compare/v0.28.3...v0.28.4 )
</details>
<details>
<summary>kubernetes/client-go (k8s.io/client-go)</summary>
###
[`v0.28.4`](https://togithub.com/kubernetes/client-go/compare/v0.28.3...v0.28.4 )
[Compare
Source](https://togithub.com/kubernetes/client-go/compare/v0.28.3...v0.28.4 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 4am" (UTC), Automerge -
"before 4am" (UTC).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions ) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/woodpecker-ci/woodpecker ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <ndev@web.de>
2023-11-20 08:23:01 +01:00
6543
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
qwerty287
342b25826c
Rename link
to url
( #2812 )
...
As of https://woodpecker-ci.org/docs/next/usage/terminiology#conventions
2023-11-14 17:12:12 +01:00
qwerty287
70711ed9db
Replace interface{}
with any
( #2807 )
...
like golang:
2580d0e08d
2023-11-12 18:23:48 +01:00
qwerty287
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
Thomas Anderson
08f47afbd1
Sort agents list by ID ( #2795 )
2023-11-10 01:11:11 +01:00
Patrick Schratz
9d5ef117a2
Fix listing Gitea repos ( #2768 )
2023-11-07 20:18:42 +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
Anbraten
731d4713c0
Fix pipeline error migration ( #2735 )
...
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
2023-11-06 13:20:28 +01:00
qwerty287
45a5a2dde5
Fix panic on logger ( #2745 )
2023-11-05 09:31:06 +01:00
Anbraten
b949c190de
Some UI fixes ( #2698 )
...
- fix first log line being dropped if channel was opened
- link org and repo on repo logs view
- fix decline pipeline status does not update
2023-11-04 06:51:26 +01:00
qwerty287
d284aeb545
Fix default status ( #2715 )
...
Regression #2695
probably closes #2716
2023-11-03 13:00:34 +01:00
Anbraten
5ff006614f
Enhance linter and errors ( #1572 )
...
Co-authored-by: 6543 <m.huber@kithara.com>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-11-03 11:44:03 +01:00
Thomas Anderson
3620c84da4
Unregister stateless agents from server on termination ( #2606 )
...
Closes #2027
---------
Co-authored-by: 6543 <6543@obermui.de>
2023-11-02 01:53:47 +02:00
qwerty287
abb2f280eb
Unique status for matrix ( #2695 )
...
implement this fix but with an additional field on workflows to not
change the workflow name
closes #1840
closes #713
---------
Co-authored-by: 6543 <6543@obermui.de>
2023-11-01 17:28:02 +01:00
Jannik Heuer
0fbf8cfc85
Fix secret image filter regex ( #2674 )
2023-10-31 13:15:13 +01:00
qwerty287
9c07b15c99
Fix where syntax ( #2676 )
2023-10-31 12:43:06 +01:00
qwerty287
e74115027b
Add some tests ( #2652 )
...
and some cleanups
2023-10-28 13:37:54 +02:00
qwerty287
aeb7bcb26a
Remove WOODPECKER_DOCS
config ( #2647 )
2023-10-25 15:05:19 +02:00