Commit graph

487 commits

Author SHA1 Message Date
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
Robert Kaussow
21f87b4b1d
Remove review button from approval view (#3617)
Not required anymore after
https://github.com/woodpecker-ci/woodpecker/pull/2757 was merged.
2024-04-15 16:42:19 +02:00
Thomas Anderson
b8763a8f34
Step logs removing API and Button (#3451)
Closes #3444
closes #1272

---

Admin:
![Screenshot 2024-02-27
1](https://github.com/woodpecker-ci/woodpecker/assets/127358482/285b2daa-9a37-4bd8-a11e-c4b7ced20e5a)
![Screenshot 2024-02-27
2](https://github.com/woodpecker-ci/woodpecker/assets/127358482/891ff2f8-71b5-4687-80a7-e3e4b1cb4e41)
![Screenshot 2024-02-27
3](https://github.com/woodpecker-ci/woodpecker/assets/127358482/362dbfe9-ac63-4be4-a4bb-f4e5140d54a5)

User:
![Screenshot 2024-02-27
4](https://github.com/woodpecker-ci/woodpecker/assets/127358482/b2f3db6b-5ec3-4e06-a508-61dd07a69d60)
2024-04-15 01:50:50 +02:00
qwerty287
ce57128317 Translated using Weblate (German)
Currently translated at 100.0% (371 of 371 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
2024-04-06 15:57:38 +00:00
Michael
7b731d6b9e Translated using Weblate (French)
Currently translated at 100.0% (371 of 371 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
2024-04-04 16:57:37 +00:00
qwerty287
eaf10611eb
Allow to disable deployments (#3570)
…but if they're enabled, allow for all events. Also add warning that you
should only enable it if you trust the users with push access.

closes #3559

---------

Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2024-04-02 22:03:37 +02:00
yeziruo
adc222e507 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (369 of 369 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/zh_Hans/
2024-03-28 20:57:36 +00:00
Anbraten
c2a8464512
Fix cli version comparison and improve setup command (#3518) 2024-03-28 10:36:39 +01:00
yeziruo
5de15d84bd Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (369 of 369 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/zh_Hans/
2024-03-22 16:57:35 +00:00
qwerty287
e00b2d4bd3
Only allow to deploy from push, tag and release (#3522) 2024-03-20 21:04:51 +01:00
qwerty287
4e95724880 Translated using Weblate (German)
Currently translated at 100.0% (369 of 369 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
2024-03-18 03:29:56 +00:00
Michael
d91d63b5f4 Translated using Weblate (French)
Currently translated at 100.0% (369 of 369 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
2024-03-17 12:18:20 +00:00
Anbraten
03c891eb93
Cli setup command (#3384)
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2024-03-13 11:08:22 +01:00
NamelessGO
67d7c860e1 Translated using Weblate (Portuguese)
Currently translated at 100.0% (364 of 364 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/pt/
2024-03-08 09:44:24 +00:00
NamelessGO
a5bd7e36fa Translated using Weblate (Spanish)
Currently translated at 100.0% (364 of 364 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/es/
2024-03-08 09:44:23 +00: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
Michael
5e0ec973ba Translated using Weblate (French)
Currently translated at 100.0% (364 of 364 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
2024-02-13 16:57:29 +00:00
qwerty287
8700d2b300 Translated using Weblate (German)
Currently translated at 100.0% (364 of 364 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
2024-02-10 07:57:29 +00:00
Lukas
147137c7bb
Allow editing all environment variables in pipeline popups (#3314) 2024-02-09 00:46:08 +01:00
Marcin Puc
e64d596436 Translated using Weblate (Polish)
Currently translated at 90.1% (328 of 364 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/pl/
2024-02-07 15:57:28 +00:00
Lukas
c746857830
Fix version check on next (#3340)
Closes #3318
2024-02-07 02:10:36 +01:00
Michael
4456da99c5 Translated using Weblate (French)
Currently translated at 100.0% (364 of 364 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
2024-02-02 18:57:28 +00:00
qwerty287
5ccdfa76e0 Translated using Weblate (German)
Currently translated at 100.0% (364 of 364 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
2024-02-02 18:57:27 +00:00
Lukas
dd465add43
Add no branches text (#3312) 2024-02-01 16:31:04 +02:00
Lukas
a801f8cbc3
Add loading spinner to repo list (#3310) 2024-02-01 08:40:01 +01:00
Marcin Puc
450a437cb6 Translated using Weblate (Polish)
Currently translated at 90.1% (328 of 364 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/pl/
2024-02-01 03:45:23 +00:00
qwerty287
9df572ef31
Add release event trigger (#3226)
Supersedes #764 

Bitbucket does not support release webhooks.

---------

Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
2024-01-30 17:39:00 +01:00
Patrick Schratz
da4bd8b97d
Update theme on system color mode change (#3296)
Currently, when theme `auto` is set and the system theme changes, users
need to reload the site themselves.

This PR adds an even listener which listens for such changes and reloads
the theme automatically in the background.

---------

Co-authored-by: Anbraten <anton@ju60.de>
2024-01-30 11:00:07 +01:00
Lukas
94b882fb95
Add spellcheck config (#3018)
Part of #738 

```
pnpx cspell lint --gitignore '{**,.*}/{*,.*}'
```

---------

Co-authored-by: Anbraten <anton@ju60.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-01-27 21:15:10 +01:00
runephilosof-karnovgroup
05f24a5706
Load more pipeline log lines (500 => 5000) (#3212)
Co-authored-by: 6543 <6543@obermui.de>
2024-01-22 08:13:22 +01:00
qwerty287
5e2f7d81b3
Clean up models (#3228) 2024-01-22 07:56:18 +01:00
renovate[bot]
7eff20d1b7
chore(deps): lock file maintenance (#3190)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Update | Change |
|---|---|
| lockFileMaintenance | All locks refreshed |

🔧 This Pull Request updates lock files to use the latest dependency
versions.

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-15 08:32:17 +01:00
Robert Kaussow
7756c60a33
Enable golangci linter stylecheck (#3167)
This PR only fixes error string formatting, log message strings are
still mixed upper/lowercase (see
https://github.com/woodpecker-ci/woodpecker/pull/3161#issuecomment-1885140649)
and I'm not aware of a linter to enforce it.
2024-01-10 22:56:42 +01:00
qwerty287
631b7c2fed
Fix feed sorting (#3155)
Closes #2915
2024-01-09 20:01:18 +01:00
6543
11d70a894d
use animate-spin class (#3150) 2024-01-09 15:42:23 +01:00
6543
1ee2b8c41c
Make service icon rotate (#3149)
add animation for color blind people

[video](https://cloud.obermui.de/s/adpxqpMw6dEgZcC/download/recording_woodpecker-pull-3148.mkv)
2024-01-09 07:45:41 +01:00
6543
5715bd1027
Make Service Icons work as enum was wrong (#3148)
make #3078 work as enum was wrong.


![image](https://github.com/woodpecker-ci/woodpecker/assets/24977596/933cf69d-9884-4e29-ac7b-21b58a52b870)
2024-01-09 07:30:43 +01:00
6543
549d095ff3
Use js-base64 on pipeline log page (#3146)
followup of  #3110
2024-01-09 03:45:30 +01:00
Weblate
4a0d5f1391 Translated using Weblate (German)
Currently translated at 100.0% (363 of 363 strings)

Co-authored-by: qwerty287 <ndev@web.de>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
Translation: Woodpecker CI/UI
2024-01-06 19:46:20 +00:00
Weblate
c3aec61bfc Translated using Weblate (Indonesian)
Currently translated at 100.0% (363 of 363 strings)

Translated using Weblate (Russian)

Currently translated at 100.0% (362 of 362 strings)

Co-authored-by: Blezz Rot <markus.jenya04@yandex.ru>
Co-authored-by: Linerly <linerly@proton.me>
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/ru/
Translation: Woodpecker CI/UI
2024-01-05 07:34:01 +00:00
Lukas
4a88e3727b
Always show pipeline step list (#3114)
Closes #1845 

Will always show the pipeline step list for failed pipelines, declined
pipelines and blocked pipelines.

Example screenshot of a failed pipeline:


![image](https://github.com/woodpecker-ci/woodpecker/assets/32853499/c43618f2-b49e-4b42-908c-95c5f641ba4a)
2024-01-04 10:10:54 +01:00
Lukas
f8a4d72381
Add loading spinner and no pull request text (#3113) 2024-01-03 19:39:45 +01:00
Lukas
7c4a61a17f
Fix timeout settings contrast (#3112) 2024-01-03 18:18:54 +01:00
Lukas
ef3dabc679
Fix config base64 parsing to utf-8 (#3110)
Closes #2609
2024-01-03 10:39:04 +01:00
Lukas
857db91634
Unfold workflow when opening via URL (#3106)
Closes #2938
2024-01-03 01:33:46 +01:00
6543
38cf248e41
use semver for version comparsion (#3042)
close  #3041
close #3043

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-12-30 23:28:43 +01:00
qwerty287
ab1927fca1
Indicate if step is service (#3078)
closes https://github.com/woodpecker-ci/woodpecker/issues/269

Icons in step list:
![Screenshot 2023-12-30 at 12-05-48
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/5f682cc6-8dad-4edb-ab15-b8ae93078c7c)
![Screenshot 2023-12-30 at 12-06-06
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/67782571-438e-4937-a7c6-ab2b378aa0c7)
![Screenshot 2023-12-30 at 12-07-49
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/b3841e10-ac85-4c2b-a46b-663c2db8f59e)
2023-12-30 13:28:11 +02:00
Andy Han
f100a21cc7
Fix badge's repoUrl with rootpath (#3076)
Fix #3032 again.
2023-12-30 09:56:48 +01:00
6543
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
qwerty287
8280655e0f
Fix duplicated icons (#3045)
on PRs


![image](https://github.com/woodpecker-ci/woodpecker/assets/80460567/75ebbcc3-4b12-4192-a2ad-5103331cb3e7)
2023-12-27 16:23:33 +01:00