1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-02-16 18:34:28 +02:00

3838 Commits

Author SHA1 Message Date
6543
3ec00140d9
Dont panic, report error back ()
dont panic! return error back
2021-12-08 23:36:23 +01:00
6543
0061edcbe2
Remove gopkg.in/yaml.v2 ()
* 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 ()
close 

- 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 ()
Co-authored-by: 6543 <6543@obermui.de>
2021-12-08 14:15:24 +01:00
Anbraten
db2fbc699a
Add security hint to secrets configuration ()
`'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 ()
* fix back links

* disable back navigation for now
2021-12-08 14:01:33 +01:00
Anbraten
56f957b4e6
Improve favicons ()
- 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 () 2021-12-08 13:03:17 +01:00
Anbraten
4642d98f2e
improve tests () 2021-12-07 01:13:31 +01:00
6543
1172dc3311
Write own yaml2json func ()
* fix regression of  
 * add more tests
2021-12-07 01:13:02 +01:00
Anbraten
ffed327564
Remove ghodss/yaml () 2021-12-06 18:17:31 +00:00
6543
7fb9191cce
Update Documentation (fix diffs and add settings) ()
* 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 ()
* 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 ()
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() ()
* remove github.com/kr/pretty in favor of assert.EqualValues()

* code format
2021-12-04 13:23:33 +01:00
6543
d3eabbdebc
Update README ()
* 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 ()
close 

Co-authored-by: 6543 <6543@obermui.de>
2021-12-01 14:43:35 +01:00
Lukas
680d003a29
Add linter revive ()
* 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 ()
Co-authored-by: Anbraten <anton@ju60.de>
2021-12-01 12:00:41 +01:00
Anbraten
f32c20b650
Improve ci tests ()
* improve ci tests

* filter store

* improve ci configs

* fix create dir before accessing
2021-11-30 17:46:19 +01:00
6543
7931bc78eb
Let normal repo admins change timeout to lower values ()
fix 
fix 

Co-authored-by: Anbraten <anton@ju60.de>
2021-11-27 16:06:00 +01:00
Lukas
2c75a299e2
Add linter unused () 2021-11-27 15:29:37 +01:00
Anbraten
c4700e9693
Update docs dependencies () 2021-11-27 15:13:00 +01:00
Lukas
eb134a2e27
Add linter ineffassign () 2021-11-27 13:17:03 +01:00
6543
34a17f8219
Postgress can exec Sync2 after migration only in own transactions ()
(postgress do not allow us to use sync2 twice in one transaction at all)
2021-11-27 12:02:52 +01:00
6543
88236d8d59
godotenv use autoload everywhere () 2021-11-27 03:01:06 +01:00
6543
e072e4cce7
Fix pipeline backend autodetect ()
* refactor:
 - rename IsAvivable -> IsAvailable
 - drop depricated Kill
 - make sure backends implement interface
 - rename backend struct for ide (better info)

* docker backend fix autodetect
2021-11-27 02:29:14 +01:00
6543
5e6b38e0e7
Server obtain remote from glob config not from context () 2021-11-26 13:01:54 +01:00
6543
8b476e7722
Simplify web router code () 2021-11-26 09:50:56 +01:00
Anbraten
c1a8884d62
Add backend selection for agent ()
- add backend selection option
- by default it will auto-detect a backend
2021-11-26 03:34:48 +01:00
Anbraten
65e10d46b3
Serve index.html directly without template ()
Remove not needed template functions
2021-11-26 01:12:44 +01:00
Lukas
fb333a3b1b
Add linter structcheck () 2021-11-26 00:27:43 +01:00
Lukas
71485a8a3f
Add linter varcheck () 2021-11-26 00:03:19 +01:00
Anbraten
f2b6a5c9c5
Fix passing of netrc credentials to clone step ()
closes 
2021-11-25 21:30:03 +01:00
Anbraten
063d0bb32a
Replace DRONE_ with CI_ variables in pipeline steps ()
Dropped support for `DRONE_*` environment variables in pipeline steps. Pipeline meta-data can be accessed with `CI_*` variables.
  - `CI_*` prefix replaces `DRONE_*`
  - `CI` value is now `woodpecker`
  - `DRONE=true` has been removed
2021-11-25 20:43:31 +01:00
6543
ff8ad5bb83
Fix registry delete ()
- Make make it possible to delete `"§4fda`
- Reject non urls for registry-address
- Fix 
2021-11-25 19:04:36 +01:00
Lukas
fac0e16996
Add linter staticcheck ()
* Add linter staticcheck

Co-authored-by: 6543 <6543@obermui.de>
2021-11-25 17:15:36 +01:00
Lukas
116c310820
Add linter misspell ()
* Add linter misspell

* Fix spelling

Co-authored-by: Anbraten <anton@ju60.de>
2021-11-24 02:01:12 +01:00
Lukas
25bf91bd37
Add linter whitespace () 2021-11-24 01:31:11 +01:00
Anbraten
57db3227ab
Fix overflowing commit messages () 2021-11-23 17:15:50 +01:00
6543
fe31fb1e06
Drop error only on purpose or else report back or log ()
- Remove Deadcode
- Simplify Code
- Drop error only on purpose
2021-11-23 15:36:52 +01:00
6543
f454371e56
store migrations: cache migrations and add note ()
* Cache migrations instead of query each time
* Add a note of migration execute order 

Co-authored-by: Anbraten <anton@ju60.de>
2021-11-23 05:06:46 +01:00
Nulo
34ff30010e
Show environ in every BuildProc ()
* Show environ in every BuildProc

* show environ next to build proc

Co-authored-by: Anbraten <anton@ju60.de>
2021-11-23 04:51:19 +01:00
Galen Abell
ee67e9adb4
Use monospace font for build logs () 2021-11-22 20:15:14 +01:00
6543
51617e7f86
Rename struct field and add new types into server/model's ()
Resolve some todos in server/model:
 * Move persistent queue into its own package
 * Create Types: StatusValue, SCMKind, RepoVisibly
 * Rename struct Repo fields: SCMKind, IsSCMPrivate
2021-11-22 12:55:13 +01:00
Isuru Fernando
d02dfe993f
Update docs about selecting agent based on platform ()
Update docs about selecting agent based on platform for global pipeline config
2021-11-21 02:18:34 +01:00
Tim Coombs
745090b3af
Update Agent and Pipeline syntax documentation ()
- Creates `Agent Config` with examples of agents and configuration options
- Updates `Pipeline Syntax`
  - About the different types of conditionals
  - Sort Order (Global -> Step -> Advanced)
- Move Conditional Steps to own page

Co-authored-by: 6543 <6543@obermui.de>
2021-11-20 20:45:59 +01:00
6543
07b32fa0fe
Update database in one transaction on syncing user repositorys ()
* userSyncer Sync commit changes in one transaction
* cover new cases with unit tests
2021-11-18 15:42:18 +01:00
6543
82fd65665f
Add linter bidichk to prevent malicios utf8 chars ()
bidichk checks for dangerous unicode character sequences

(https://github.com/golangci/golangci-lint/pull/2330)
2021-11-16 21:07:53 +01:00
6543
4891f104f0
Update only relevant cols on repo sync ()
close 
2021-11-15 00:55:37 +01:00