qwerty287
7adfa6c2ba
Fix migration ( #2319 )
2023-08-22 17:37:29 +02:00
qwerty287
81ead7cbf2
Support user secrets ( #2126 )
2023-08-21 15:04:12 +02:00
qwerty287 and 6543
06d1f3c92e
Create settings-panel vue component and use InputFields ( #2177 )
...
Co-authored-by: 6543 <6543@obermui.de >
2023-08-21 10:23:16 +02:00
qwerty287
35baaa8224
Use browser-native tooltips ( #2189 )
...
Replace the `floating-vue` library with the browser-native tooltips.
Reduces `dist` size by 45KB.
2023-08-20 15:07:27 +02:00
qwerty287
4d83ea0de8
Add SSH clone URL env var ( #2198 )
...
to improve https://github.com/woodpecker-ci/plugin-git/pull/75
2023-08-12 17:39:13 +02:00
qwerty287
f5e9b3df2e
Small improvements to mobile interface ( #2202 )
...
1. pipeline step list: do not have a separate scroll container on step
list
2. merge title bars on logs (probably regression of #2140 )
2023-08-12 12:36:25 +02:00
qwerty287
8cdac56d8f
Check for correct license header ( #2137 )
2023-08-10 11:06:00 +02:00
qwerty287
bc18ccf721
Show all steps ( #2190 )
...
Closes #2178
2023-08-10 10:36:41 +02:00
qwerty287
6e0def58a1
Switch to upstream ttlcache ( #2187 )
...
We've been using https://github.com/lafriks/ttlcache but it's archived.
It does work with the upstream library too, so its better to use it.
2023-08-10 09:17:12 +02:00
qwerty287
4bed647000
Better blog title/desc ( #2182 )
2023-08-09 15:23:13 +02:00
qwerty287
3bdeb47d8c
Use Vue setup directive ( #2165 )
2023-08-08 12:22:39 +02:00
qwerty287
9cae5709f9
Fix pipeline config collapsing ( #2166 )
2023-08-08 11:47:21 +02:00
qwerty287
4558f7c691
Fix vite server ( #2134 )
...
#1799 broke it
2023-08-07 17:03:26 +02:00
qwerty287
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
qwerty287
0ecaa7074a
Fix missing translation ( #2132 )
2023-08-07 14:01:44 +02:00
qwerty287
e17d0da2c3
Don't show badge without information ( #2130 )
...
Was requested
[here](https://github.com/woodpecker-ci/woodpecker/issues/1314#issuecomment-1477858832 )
for queue, but this also applies to agents: Do not show badges that only
show `???` because they don't provide any useful information.
2023-08-07 13:19:51 +02:00
qwerty287
270de5f574
Fix workflows again ( #2129 )
...
Since it does not work this is mainly a revert of #2127
2023-08-07 13:03:23 +02:00
qwerty287
b485d1bf70
Fix docs workflow ( #2128 )
...
Some steps were not longer executed and some `when` conditions are not
longer necessary. Follow-up #2127
2023-08-07 11:14:30 +02:00
qwerty287
516bc475b6
Speed up pipelines ( #2127 )
...
- Use workflow-global conditions to also skip the `clone` step for
`docs` and `web` workflows
- never run `test` and `web` for pushes (they're running for PRs and
every change we do must pass checks on PRs, so they're unnecessary)
https://github.com/woodpecker-ci/woodpecker/issues/1910
2023-08-07 10:58:42 +02:00
qwerty287
4ad3968ff1
Fix swagger response code ( #2119 )
...
Closes #2118
2023-08-05 19:44:49 +02:00
qwerty287
d1c51f4af8
Lazy-load TimeAgo locales ( #2094 )
...
1. new translation docs
2. lazy-load TimeAgo locales (used for "x min ago" messages). This 1.
reduces size and 2. provides all languages without adding them manually.
3. Remove DayJS locales, they're unused.
2023-08-03 19:25:12 +02:00
qwerty287 and Robert Kaussow
d09c418941
Improve user settings ( #2087 )
...
Make the user settings tabbed as well, currently only holding "Settings"
(language) and "API". Can be extended with user secrets (#1739 ) etc.
later.


---------
Co-authored-by: Robert Kaussow <xoxys@rknet.org >
2023-08-03 11:35:12 +02:00
qwerty287 and Robert Kaussow
aca090bbb0
Fix version in FAQ ( #2101 )
...
Co-authored-by: Robert Kaussow <mail@thegeeklab.de >
2023-08-03 10:48:39 +02:00
qwerty287
1a7f7a9427
Allow to disable swagger ( #2093 )
...
https://github.com/woodpecker-ci/woodpecker/issues/1944
2023-08-03 02:42:30 +02:00
qwerty287
176850495e
Fix woodpecker-go ( #2090 )
...
Closes #2083
This is breaking because I removed the old, unused `sync` parameter
(#2083 ).
2023-08-03 02:39:37 +02:00
qwerty287
09b7a0bdef
Add blog posts/tutorials ( #2095 )
2023-08-02 15:05:46 +03:00
qwerty287
43e80c17b7
Fix client example ( #2085 )
...
closes #2071
2023-08-01 17:16:45 +02:00
qwerty287
a778b5fb90
Do not use window.WOODPECKER_* variables directly ( #1992 )
...
use the config helper instead
2023-07-13 15:57:50 +02:00
qwerty287
570f5044e8
Drop support for Bitbucket Server ( #1994 )
...
Closes #1962
2023-07-13 15:47:25 +02:00
qwerty287 and 6543
0e25d6d35a
pnpm update (#1902 )
...
Using a simple `pnpm update` didn't fix any of the issues in #1900 but
it fixes some vulnerabilities shown with `pnpm audit`. I didn't try to
force-update `semver` to fix the security vulnerability there.
---------
Co-authored-by: 6543 <6543@obermui.de >
2023-07-02 12:47:36 +02:00
qwerty287
9dc839b946
Fix default value ( #1916 )
...
From #1784 and #1898
2023-07-02 10:50:59 +02:00
qwerty287
cd982fcbd1
Fix pipeline status calculation/reporting ( #1898 )
...
Closes #1895
Regression of #1784
2023-06-29 14:56:01 +02:00
qwerty287 and 6543
3033abc3b4
Add own workflow model ( #1784 )
...
Closes #1287
---------
Co-authored-by: 6543 <6543@obermui.de >
2023-06-27 18:01:18 +02:00
qwerty287
eaae6b44c7
Remove default event filter ( #1880 )
...
Closes https://github.com/woodpecker-ci/woodpecker/issues/1863
2023-06-21 18:12:20 +02:00
qwerty287
5c587a3243
Add security section to docs ( #1877 )
2023-06-21 16:59:57 +02:00
qwerty287
c3c1d3bcb5
Return after error ( #1875 )
...
This allows you to work around the max timeout on the server.
2023-06-19 17:46:48 +02:00
qwerty287
5d74174bc3
Drop old columns ( #1838 )
2023-06-07 19:22:44 +02:00
qwerty287 and 6543
b82ed13586
Database migrations run in seperate sessions and commit on success right away ( #1822 )
...
This isolates single migration tasks from each other.
The migration itself is now not atomic anymore but each single migration
now on it's own.
This takes load away from databases, as new sessions have a committed
schema available.
We also disable xorm.cache, as the speed improvements are minor but
invalid cache caused by schema changes did happen already in the past.
---------
Reverts #1817
Closes #1821
---------
Co-authored-by: 6543 <6543@obermui.de >
2023-06-06 03:27:17 +02:00
qwerty287
b9731d8da9
Fix missing table name ( #1817 )
...
Bug from #1806
We don't need the sync because the step_machine is there since the model
was added the first time so it mill *always* be in the table
2023-06-03 20:24:37 +02:00
qwerty287
6e6f36ee3a
Add "Installing Woodpecker CI in your personal homelab" post ( #1811 )
2023-06-03 09:21:51 +02:00
qwerty287
b59d654f45
Do not use oauth client without token ( #1803 )
...
Closes https://github.com/woodpecker-ci/woodpecker/issues/1370
2023-06-03 03:03:06 +02:00
qwerty287
36870d1797
Drop step_machine column ( #1806 )
...
Bug 3 in #1712
Was changed in f13ffc2c8f
2023-06-02 14:39:29 +02:00
qwerty287
dc3f7d61ea
Update Gin ( #1797 )
...
Fixes the security issue (we aren't affected)
Closes #1756
2023-06-01 08:25:17 +02:00
qwerty287 and Anbraten
f91ee5d23a
Remove MSSQL specific code and cleanups ( #1796 )
...
We don't have MSSQL support
---------
Co-authored-by: Anbraten <anton@ju60.de >
2023-05-31 21:27:57 +02:00
qwerty287
540ad108df
Fix static assets with subpath ( #1783 )
...
Closes #1773
2023-05-30 17:25:18 +02:00
qwerty287
c111fbfd14
Add "Replace Ansible Semaphore with Woodpecker CI" video ( #1772 )
2023-05-22 23:50:01 +02:00
qwerty287
02913fa7b6
Add reset token button ( #1755 )
...
Closes #696
2023-05-14 18:48:33 +02:00
qwerty287
3605979df0
Fix pipeline used for status reporting ( #1758 )
2023-05-14 16:12:48 +02:00
qwerty287
a15821428f
Always send a status back to forge ( #1751 )
2023-05-14 14:18:43 +02:00
qwerty287
94e63b43f2
Update github.com/docker/distribution ( #1749 )
...
Update github.com/docker/distribution to 2.8.2
https://github.com/distribution/distribution/releases/tag/v2.8.2
https://github.com/advisories/GHSA-hqxw-f8mx-cpmw
2023-05-14 12:48:32 +02:00
qwerty287
2ccf7c6f1a
Drop Gogs support ( #1752 )
...
Gogs support is broken (and we won't fix it because we don't care about
it...) because it does not support OAuth, at least after we introduced
the new Vue UI.
See:
https://github.com/woodpecker-ci/woodpecker/blob/77d830d5b56f85084a74fe2396689cef8b2cdee2/server/forge/gogs/gogs.go#L84
This route is not present in the new UI.
2023-05-14 10:34:05 +02:00
qwerty287
6d2240b2e6
Identify users using their remote ID ( #1732 )
2023-05-11 05:19:35 +02:00
qwerty287
54d4ec04c0
Drop Gogs private mode ( #1726 )
...
You should use `WOODPECKER_AUTHENTICATE_PUBLIC_REPOS` instead if repos
sent from forge as public should be authenticated
2023-04-30 14:01:11 +02:00
qwerty287
0f9188597e
Initiate Pagination Implementation for API and Infinite Scroll in UI ( #1651 )
...
- Add pagination support to the API endpoints that return lists of items
- Adjust UI to enable infinite scrolling via pagination
2023-04-30 03:40:13 +02:00
qwerty287
b90e7904a5
Support path prefix ( #1714 )
...
closes #1636
closes #1429
supersedes #1586
Uses a different approach: just take the index.html compiled by vite and
replace the paths to js and other files using regex. This is not
compatible with the dev proxy which is also the reason why we can't use
go templates for this.
2023-04-29 17:51:50 +02:00
qwerty287 and 6543
cfdb32ae45
Fully support .yaml ( #1713 )
...
Follow-up to https://github.com/woodpecker-ci/woodpecker/pull/1388
Closes https://github.com/woodpecker-ci/woodpecker/issues/1073
---------
Co-authored-by: 6543 <6543@obermui.de >
2023-04-29 10:12:36 +02:00
qwerty287
9b32d021b3
Consistent status on delete ( #1703 )
...
Closes #1675
2023-04-15 15:22:39 +02:00
qwerty287
a06d3e1a61
Stable sort order for DB lists ( #1702 )
2023-04-11 09:33:27 +02:00
qwerty287
4b4d078377
Fix Bitbucket Server branches ( #1698 )
...
Closes #1695
2023-04-07 18:09:17 +02:00
qwerty287 and Anbraten
0970f35df5
Do not store inactive repos ( #1658 )
...
Do not sync repos with forge if the repo is not necessary in DB.
In the DB, only repos that were active once or repos that are currently
active are stored. When trying to enable new repos, the repos list is
fetched from the forge instead and displayed directly. In addition to
this, the forge func `Perm` was removed and is now merged with `Repo`.
Solves a TODO on RepoBatch.
---------
Co-authored-by: Anbraten <anton@ju60.de >
2023-03-21 23:01:59 +01:00
qwerty287 and Anbraten
88d2486ab2
Various UI improvements ( #1663 )
...
https://github.com/woodpecker-ci/woodpecker/issues/1314#issuecomment-1475128683
https://github.com/woodpecker-ci/woodpecker/issues/1314#issuecomment-1477858832
(2.)
and the last two tasks from
https://github.com/woodpecker-ci/woodpecker/issues/1314#issue-1418804461
---------
Co-authored-by: Anbraten <anton@ju60.de >
2023-03-21 17:31:24 +01:00
qwerty287
f582ad3159
Various enhancements in configuration ( #1645 )
...
- backends: move to cli flags instead of os.Getenv
- ssh: support 2fa with key and password
- allow to set grpc jwt secret (solves todo)
- allow to set default and max timeout (solves todo)
Closes https://github.com/woodpecker-ci/woodpecker/issues/896
Closes https://github.com/woodpecker-ci/woodpecker/issues/1131
2023-03-19 20:24:43 +01:00
qwerty287 and Lauris BH
ade8e6d010
Various fixes and improvements ( #1643 )
...
- allow repo names to be case-insensitive
- improve backend error handling on DB get errors (record not found ->
404, else -> 500)
- replace magic numbers of http response codes
- unify the look and feel of cancel / save buttons on forms and view
them in one line
---------
Co-authored-by: Lauris BH <lauris@nix.lv >
2023-03-19 13:52:58 +01:00
qwerty287 and Anbraten
42a115e19e
Add PR pipeline list ( #1641 )
...
Instead of viewing PR pipelines in the branches lists, add a separate
list for them. The API endpoint for PRs supports pagination (thus I
added a lot of pagination-related stuff), the UI doesn't yet though.

Closes #1619
Extends this part of #1640
---------
Co-authored-by: Anbraten <anton@ju60.de >
2023-03-19 10:43:57 +01:00
qwerty287 and 6543
37dc8a46e0
Drop coding support ( #1644 )
...
Coding support is likely broken and nobody will ever fix it. Also it
looks like nobody wants to use it, otherwise we would have get some bug
reports.
---------
Co-authored-by: 6543 <6543@obermui.de >
2023-03-19 09:36:04 +01:00
qwerty287 and Anbraten
7ddc18348f
Only grant privileged to plugins ( #1646 )
...
Closes https://github.com/woodpecker-ci/woodpecker/issues/1525
Co-authored-by: Anbraten <anton@ju60.de >
2023-03-19 03:07:10 +01:00
qwerty287
af2ef30205
Fix button margin if button doesn't have text ( #1642 )
2023-03-18 12:00:49 +01:00
qwerty287
e901f605b1
Fix local and ssh backends ( #1395 )
...
Base64-encoded string was not decoded.
2022-11-05 14:44:33 +02:00
qwerty287 and Anbraten
3372d1a87c
Rename remote to forge ( #1357 )
...
As of #745
Co-authored-by: Anbraten <anton@ju60.de >
2022-11-05 00:35:06 +01:00
qwerty287
ee9269d658
Fix CLI format and plugin settings in docs ( #1390 )
2022-11-02 18:02:41 +01:00
qwerty287 and 6543
f2a37ce801
Fix redirects ( #1325 )
...
Not a very elegant solution, but it should work.
Co-authored-by: 6543 <6543@obermui.de >
2022-10-31 17:06:21 +01:00
qwerty287
f65654c226
Update Mastodon link ( #1364 )
2022-10-29 14:07:35 +03:00
8f183c82a8
Support changed files for Gitea PRs ( #1342 )
...
- add tests to fetch changed files
- ignore error if gitea version is to low
- adjust docs accordingly
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: Lauris BH <lauris@nix.lv >
2022-10-28 19:17:30 +02:00
qwerty287
b44e895017
Add Node PM plugin ( #1360 )
...
A simple plugin that executes NPM, PNPM or Yarn scripts
2022-10-28 17:06:14 +02:00
qwerty287
8b7ca464cf
Always use rounded quadrat user avatars ( #1350 )
...
To stay consistent with the header.
2022-10-27 16:11:37 +02:00
qwerty287
e568c42e84
Support plugin-only secrets ( #1344 )
...
Closes #1071
2022-10-27 04:21:07 +02:00
qwerty287
de4e62cfcf
Allow to run cron manually ( #1338 )
...
Closes #1154
2022-10-26 01:23:28 +02:00
qwerty287
da7d13ad4e
Use native directory and run with Node 18 ( #1337 )
...
- replace `cd` with native key `directory` (#1329 )
- Update Node images to 18
2022-10-25 14:51:29 +02:00
qwerty287
f6cac78119
Allow to change directory for steps ( #1329 )
...
Add `directory` YAML key that changes the workdir. Can replace a `cd`
before your commands start or make it possible to run plugins in a
subdirectory.
2022-10-24 16:31:06 +02:00
qwerty287
bdf0a59bea
Use system font stack ( #1326 )
...
Closes https://github.com/woodpecker-ci/woodpecker/issues/1316
Applied suggestion by @silverwind
2022-10-23 04:33:39 +02:00
qwerty287
486c8473fc
Fix approval on mobile ( #1320 )
...
Closes #1096
2022-10-23 00:30:25 +02:00
qwerty287
3ffa455810
Add Codeberg-CI/examples to awesome ( #1324 )
2022-10-22 20:01:14 +02:00
qwerty287
27585d42b1
Don't show workflow name if it's only one ( #1319 )
...
Regression of #1304 .
If there's only one workflow, don't make it collapsible and don't show the name of it.
2022-10-22 17:57:14 +02:00
qwerty287
f88c70b55e
Rename to pipeline in DB and JSONs ( #1296 )
...
Closes #1282
Follow-up to #1224 , addresses #745
- changes JSON fields
- adds migration to rename columns
- fixes some comments
2022-10-22 15:54:43 +02:00
qwerty287
38198f83c4
Update all dependencies ( #1291 )
2022-10-19 10:15:58 +02:00
849e05bb8b
Rename build to pipeline in code ( #1224 )
...
Ref: #745
Co-authored-by: Anbraten <anton@ju60.de >
Co-authored-by: 6543 <6543@obermui.de >
2022-10-18 03:24:12 +02:00
qwerty287
00898cb6be
Fix gitpod link ( #1228 )
2022-10-01 13:54:19 +02:00
qwerty287
9c12b321a1
Upload test-lib coverage results to codecov ( #1227 )
2022-10-01 11:51:04 +02:00
qwerty287
7838f84b69
Fix SCM visibility if user visibility is private ( #1217 )
...
Closes https://codeberg.org/Codeberg-CI/feedback/issues/74
2022-09-27 21:24:33 +02:00
qwerty287 and Anbraten
86bc751b95
Add my plugins ( #1204 )
...
Co-authored-by: Anbraten <anton@ju60.de >
2022-09-27 09:30:04 +02:00
qwerty287 and 6543
896746a91a
Remove old CLI docs generation code ( #1196 )
...
Removes code that's not longer required because we use a newer version
of urfave/cli.
Co-authored-by: 6543 <6543@obermui.de >
2022-09-25 14:36:31 +02:00
qwerty287 and 6543
d28080a9eb
Make healthcheck port configurable ( #1197 )
...
Closes https://github.com/woodpecker-ci/woodpecker/issues/1193
Co-authored-by: 6543 <6543@obermui.de >
2022-09-19 00:07:37 +02:00
qwerty287
00a475f605
Don't show "changed files" if event can't have them ( #1191 )
...
Closes #1190
2022-09-16 17:04:44 +02:00
qwerty287
6433dfea23
Use package's structs and fix missing clone ( #1172 )
...
Closes #1169
Replaces structs that were added inline in hook structs with structs of
the corresponding SDKs. This makes it more readable and error-proof.
2022-09-07 18:16:40 +01:00
qwerty287
415903f7e8
Fix readme grammar and increase golangci-lint timeout ( #1173 )
2022-09-07 17:36:48 +01:00
qwerty287 and 6543
52d3652f2e
Fetch repositories with remote ID if possible ( #1078 )
...
Use IDs of the forge to fetch repositories instead of their names and owner names. This improves handling of renamed and transferred repos.
TODO
- [ ] try to support as many forges as possible
- [x] Gogs (no API)
- [ ] Bitbucket Server
- [x] Coding (no API?)
- [x] update repo every time it is fetched or received from the forge
- [x] if repo remote IDs are not available, use owner / name to get it
- [x] handle redirections (redirect a renamed repo to its new path)
- [x] ~~pull all repos once during migration to update ID (?)~~ issue fixed by on-demand loading of remote IDs
- [x] handle redirections in web UI
- [ ] improve handling of hooks after a repo was renamed (currently it checks for a redirection to the repo)
- [x] tests
- [x] `UNIQUE` constraint for remote IDs after migration shouldn't work (all repos have an empty string as remote ID)
close #854
close #648 partial
close https://codeberg.org/Codeberg-CI/feedback/issues/46
Possible follow-up PRs
- apply the same scheme on everything fetched from the remote (currently only users)
Co-authored-by: 6543 <6543@obermui.de >
2022-09-05 17:08:51 +02:00
qwerty287
d94769fb13
Fix prettier on locales ( #1117 )
2022-08-20 11:13:38 +02:00
qwerty287
22214f5a43
Do not show pipeline name if it's a single file ( #1069 )
2022-08-15 15:53:36 +02:00
bed3ef104c
Support Docker credential helpers ( #1075 )
...
* support docker credential and add docker-credential-ecr-login into alpine image
* Remove ecr from docker and add docs
* Update docs/docs/30-administration/22-backends/10-docker.md
Co-authored-by: WeStone <xuecanlong@qq.com >
Co-authored-by: Anbraten <anton@ju60.de >
2022-08-14 10:46:18 +02:00
qwerty287 and 6543
d22821afc1
Add logs command to CLI & update forges supported features docs ( #1064 )
...
* Complete forges overview + add `logs` command to CLI
* Update 10-overview.md
Co-authored-by: 6543 <6543@obermui.de >
2022-08-09 10:17:39 +02:00