ktprograms
d0da1a104e
Use Woodpecker theme colors on Safari Tab Bar / Header Bar ( #632 )
...
Add theme-color <meta> tag and dynamically change the theme-color when
switching into / out of dark mode.
It use the same colours as in the nav-bar component, but I don't think it's possible to access the Windi CSS colour definitions, so I had to hard core the hex values.
The theme-colour <meta> tag needs to be present in the HTML, otherwise `querySelector` returns null.
2021-12-21 02:26:42 +01:00
6543
0aefdc9978
Add tests framework for storage migration ( #630 )
...
* add test sqlite db
* migration tests for sqlite
* fix pipeline config
* fix tests to other dbms
* fix postgres & mysql
2021-12-20 16:15:21 +01:00
6543
b2ce1f5da5
fix sqlite migration on column drop of uncommon schemas ( #629 )
...
* fix sqlite schema normalising
* sqlite robuster alg to extract columns form schema
2021-12-20 09:59:27 +01:00
6543
ce5247c675
pipeline env migrate CI_TAG & CI_PULL_REQUEST to new CI_COMMIT_TAG & CI_COMMIT_PULL_REQUEST ( #624 )
...
* CI_TAG => CI_COMMIT_TAG
* CI_PULL_REQUEST => CI_COMMIT_PULL_REQUEST
* add TODO for drop with v0.16.0 development
2021-12-19 17:01:03 +01:00
Nils
5dc9de870b
bump dind image to 20.x, to raise underlying gRPC compat from 1.40 to 1.41 ( #627 )
2021-12-19 14:03:56 +01:00
6543
e8807c5e53
Add "woodpeckerci/plugin-docker-buildx" to privileged plugins ( #623 )
...
* refactor global const in own package
* add "woodpeckerci/plugin-docker-buildx" to privileged plugins
* add woodpeckerci/plugin-docker
2021-12-19 12:46:36 +01:00
6543
ef597eca0c
Add flag for not fetching permissions (FlatPermissions) ( #491 ) ( #625 )
...
Co-authored-by: Alex Eftimie <alex.eftimie@getyourguide.com>
2021-12-19 12:04:29 +01:00
Anbraten
ed0a9fd756
Use gitlab generic webhooks instead of drone-ci-service ( #620 )
...
Benefits:
- the webhook delivery history of the drone-ci-service is broken (no way to check if a webhook was successfully delivered by Gitlab)
- drone-ci-service has limited events support (for example no comment or branch deleted event)
- independent from drone integration in general
2021-12-19 01:12:09 +01:00
Anbraten
ce462ce4ac
fix new build not published to UI if blocked mode enabled ( #619 )
2021-12-19 00:23:48 +01:00
6543
3bd87cda66
use woodpeckerci/plugin-git:latest for clone ( #617 )
2021-12-18 23:05:25 +01:00
6543
f4c73792f3
Calculate build number on creation ( #615 )
...
* Calculate build number on creation
* Delete repo.Counter (form code and database)
2021-12-18 20:37:51 +01:00
6543
1d66cd1d0d
fix event type deployment for ui ( #613 )
2021-12-18 20:16:45 +01:00
Anbraten
1f85615a5d
Improve hook errors ( #612 )
...
Fixed problems:
- `c.AbortWithError()` stops the chain, but does not return a message as http response
- only return woodpeckers own messages and hide errors from http response (could be dangerous)
- added missing returns
- log all messages send to the user (at least on debug level)
2021-12-18 14:58:01 +01:00
Anbraten
934847e855
update docs ( #611 )
2021-12-18 01:05:23 +01:00
6543
039bce7758
Use same func for accept gated pipelines and none gated pipelines ( #594 )
...
* write back to webhook caller what happend
* skip sound like an error - it is none change that
* improve hook func
* dedup code & fix bugs that only existed on gated builds
* startBuild use std context
* wordings
Co-authored-by: Anbraten <anton@ju60.de>
* nit
* todo done
Co-authored-by: Anbraten <anton@ju60.de>
2021-12-18 00:09:09 +01:00
John Olheiser
9e8d1a9294
Get secrets in settings ( #604 )
...
* Get secrets in settings
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add error test
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add docs
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2021-12-13 13:33:07 -06:00
Anbraten
3bee9044f1
Add flag to set oauth redirect host in dev mode ( #586 )
2021-12-13 20:22:09 +01:00
6543
ad509fd86f
Add multi-pipeline support to exec & lint ( #568 )
...
close #443
* add support to exec
* auto detect multi-pipeline for lint and exec
* de-duplicate code
2021-12-13 19:51:53 +01:00
fnetX (aka fralix)
442561fea2
Clarify Docs on Docker for new users in intro ( #606 )
...
In the Codeberg CI Matrix channel, there was confusion about the `image` specifying Docker containers. I changed some phrases and hopefully made it clearer to new users.
2021-12-13 18:07:36 +01:00
Anbraten
33a657103e
hide gin output from normal starts ( #603 )
2021-12-12 22:49:30 +01:00
6543
0e89923854
rm workaround for gitlab webhook parsing ( #601 )
...
upstream got merged: https://github.com/xanzy/go-gitlab/pull/1282
possible because of #599
2021-12-12 21:40:36 +01:00
6543
70fcc173b9
Update github.com/xanzy/go-gitlab v0.51.1 -> v0.52.2 ( #599 )
2021-12-12 16:39:25 +01:00
Anbraten
fe6c999160
Let remove be a remove ( #593 )
...
* UI: let remove be a remove
* UI: add deactivate repo btn
* Store: DeleteRepo also delete related
* Store: more test coverage
Co-authored-by: 6543 <6543@obermui.de>
2021-12-11 16:03:14 +01:00
6543
4cbdacb21c
Nits Collected over last month ( #595 )
...
- add coverage.out
- add context queue
- fix misspell
- sanitize config: WOODPECKER_GITEA_URL
- storage backend migration should have no xorm session within migration function
2021-12-11 13:15:04 +01:00
6543
7ab33f62f7
fix unit tests
2021-12-11 02:41:28 +01:00
Anbraten
cb97b39c82
Fix pr secret event names ( #592 )
...
* Fix pr secret event names
* Add validation for secret events
2021-12-11 02:37:40 +01:00
6543
f1e2f3dcad
Add log-level option to cli ( #584 )
...
* add log-level option to cli
* use app.Before
* rm not needed
2021-12-10 21:49:22 +01:00
Anbraten
e49f2e6061
fix live logging ( #588 )
...
* fix live logging
* add comment
2021-12-10 20:11:29 +01:00
Lukas
f0f70dd3f2
Replace deprecated eslint airbnb typescript config ( #587 )
2021-12-10 03:54:47 +01:00
6543
4ea00f0035
Make cancel pipeline work again ( #585 )
...
* logger: on level debug or trace add caller to logs
* more logging
* fix cancel bug
* ignore error if occur for queue cancel
2021-12-08 23:40:00 +01:00
6543
3ec00140d9
Dont panic, report error back ( #582 )
...
dont panic! return error back
2021-12-08 23:36:23 +01:00
6543
0061edcbe2
Remove gopkg.in/yaml.v2 ( #583 )
...
* rm "gopkg.in/yaml.v2"
* fix UnmarshalYAML for Networks & Ulimits
2021-12-08 23:35:51 +01:00
6543
e7cfa902a6
Another fix for settings field in pipeline config ( #579 )
...
close #578
- adjust to new settings field own pipeline config
- more test coverage
- Fix environment parse of settings
- Fix pipeline schema
2021-12-08 18:17:52 +01:00
Anbraten
fe2f269bce
Show icon and index of a pull request in pipelines triggered by pull requests ( #575 )
...
Co-authored-by: 6543 <6543@obermui.de>
2021-12-08 14:15:24 +01:00
Anbraten
db2fbc699a
Add security hint to secrets configuration ( #574 )
...
`'Please be careful with this option as a bad actor can submit a malicious pull request that exposes your secrets.'`
2021-12-08 14:12:42 +01:00
Anbraten
581f0ecba9
fix back links ( #529 )
...
* fix back links
* disable back navigation for now
2021-12-08 14:01:33 +01:00
Anbraten
56f957b4e6
Improve favicons ( #576 )
...
- dark-mode favicon variants
- favicons based on pipeline state if opened build page
Co-authored-by: 6543 <6543@obermui.de>
2021-12-08 13:58:00 +01:00
Anbraten
ca465cec1a
Update proxy documentation ( #573 )
2021-12-08 13:03:17 +01:00
Anbraten
4642d98f2e
improve tests ( #562 )
2021-12-07 01:13:31 +01:00
6543
1172dc3311
Write own yaml2json func ( #570 )
...
* fix regression of #384
* add more tests
2021-12-07 01:13:02 +01:00
Anbraten
ffed327564
Remove ghodss/yaml ( #384 )
2021-12-06 18:17:31 +00:00
6543
7fb9191cce
Update Documentation (fix diffs and add settings) ( #569 )
...
* Add migration guide for plugin settings
* Update screenshot snippets
* Adjust plugin settings
* Fix diff insertion
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2021-12-06 18:18:53 +01:00
John Olheiser
71b9179078
Move plugin config to root.pipeline.[step].settings ( #464 )
...
* Move Vargs to Settings
* Allow both until deprecation
* Add more tests
* Adjust schema
* Add missing detach option, fix schema tests
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Anbraten <anton@ju60.de>
2021-12-04 16:44:18 +01:00
6543
568dceaccf
fix make test
( #565 )
...
now vet and formatcheck is lint
2021-12-04 13:24:44 +01:00
6543
fc6a2a9975
Remove github.com/kr/pretty in favor of assert.EqualValues() ( #564 )
...
* remove github.com/kr/pretty in favor of assert.EqualValues()
* code format
2021-12-04 13:23:33 +01:00
6543
d3eabbdebc
Update README ( #560 )
...
* Add "Stars over time to README
* Move info from README into docs & link to it
* New CI location
* New screenshot
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2021-12-03 15:36:22 +01:00
Lukas
03a4356764
Add more golangci-lint linters & sort them ( #499 )
...
close #435
Co-authored-by: 6543 <6543@obermui.de>
2021-12-01 14:43:35 +01:00
Lukas
680d003a29
Add linter revive ( #554 )
...
* Add linter revive
* Add underscore to variable name to prevent shadowing
* Remove unnecessary leading underscore
* Revert changes to vendor file
* export ConfigFetcher as interface
* no 'yoda conditions'
* rename envsubst
Co-authored-by: 6543 <6543@obermui.de>
2021-12-01 14:22:06 +01:00
seabass-labrax
494c211910
Add notice of supported YAML versions in docs ( #556 )
...
Co-authored-by: Anbraten <anton@ju60.de>
2021-12-01 12:00:41 +01:00
Anbraten
f32c20b650
Improve ci tests ( #353 )
...
* improve ci tests
* filter store
* improve ci configs
* fix create dir before accessing
2021-11-30 17:46:19 +01:00