Commit graph

35 commits

Author SHA1 Message Date
Jacob Floyd 35a45b7961
Reorganize code into server/{api,grpc,shared} packages (#337)
* move api code to server/api
* move grpc server for agent communication to server/grpc
* move server.Config to server/config.go as it is used by both server/api and server/grpc
* move shared code used by server/api and server/grpc to server/shared
2021-09-22 20:48:01 +02:00
Anbraten 894df351ee
Remove push, tag and deployment webhook filters (#281)
- remove `AllowPush`, `AllowTag`,  `AllowDeploy` options.
- keep `AllowPullRequest` option and disable it by default

---
close #265 
close #243
2021-09-18 16:28:35 +02:00
Anbraten 289f0c9ad6
Change pipeline config path resolution (#299)
# Config resolution
- pipeline-config setting empty / not specified (default): `.woodpecker/` => `.woodpecker.yml` => `.drone.yml`
- pipeline-config setting defined by user: try that file / folder and no fallback (if a user sets some special value that is normally done for some reason)

# Changes
- pipeline-config setting will be empty by default
- remove fallback setting for config loading (simplifies config)

---
closes #133

---

* adjust config fetching mechanism

* default path empty

* remove fallback flag from ui and db
2021-09-17 21:40:43 +02:00
Anbraten 1a67fc6e99
Use server-host as source for public links and warn if it is set to localhost (#251)
* Use server-host as source for public links

* use config and rm GetURL()

* fix: solve import cycle

Co-authored-by: 6543 <6543@obermui.de>
2021-08-20 16:32:52 +02:00
Laszlo Fogas c7ebd68232 Relaced laszlocph/woodpecker with woodpecker-ci/woodpecker 2021-05-25 14:08:27 +02:00
Laszlo Fogas 630c383181 Project is renamed to Woodpecker 2019-08-27 13:07:19 +02:00
Laszlo Fogas 8d79f8671e Fallback to default config. Allows incremental rollout of custom-path 2019-06-25 13:45:43 +02:00
Laszlo Fogas f25317599a Unlimited 2019-06-01 09:45:20 +02:00
Laszlo Fogas ca5817ffc2 Renamed package 2019-04-04 20:51:20 +02:00
Thomas Boerger 7f49e69607
Just fixed format with go fmt ./... 2018-03-21 14:02:17 +01:00
Brad Rydzewski 580fe9abb7 add apache license header to files 2018-02-19 14:24:10 -08:00
Jordan Brockopp a844ed53e9 allow repo admin to update build counter 2018-02-01 13:10:00 -06:00
Matt Leung 820d07263b Add server env var to specify .drone.yml location
Allow setting DRONE_REPO_CONFIG to override default location of .drone.yml
2017-09-12 17:06:12 -07:00
Brad Rydzewski 25c9b8050a introduce limiter for planned refactoring 2017-09-11 10:22:45 -07:00
Brad Rydzewski cf549e47c3 repo repair should update private status 2017-08-26 15:52:57 -07:00
Brad Rydzewski 47c1caa7cd Merge pull request #2168 from josmo/rename-repo
Adding the ability to update the repo owner and name via patch with t…
2017-08-26 13:14:03 -07:00
Brad Rydzewski 7d245e7b27 fix route for proc logs 2017-08-24 17:03:11 -07:00
Joachim Hill-Grannec 06bffddf96 remove lingering visibility 2017-08-21 18:52:09 -04:00
Joachim Hill-Grannec f54175de91 Made ResetVisibility and ParseRepo generic.
Validate new from repo has admin rights
2017-08-21 18:49:09 -04:00
Joachim Hill-Grannec cee90e93aa Update to create move endpoint to allow changing the repo name 2017-08-21 17:56:37 -04:00
Joachim Hill-Grannec 6c386b18a6 Update to add visibility and isPrivate from the rename 2017-08-21 15:56:44 -04:00
Joachim Hill-Grannec 4fab997871 Adding the ability to update the repo owner and name via patch with the owner and name props 2017-08-16 16:21:13 -07:00
Joachim Hill-Grannec a848f3e793 allow in a patch update to change the build number if the user is an admin 2017-08-12 17:01:10 -07:00
Brad Rydzewski c3732041d5 refresh repo info on activation 2017-07-21 11:53:11 -04:00
Brad Rydzewski 35e0ee2e5f implement sync logic 2017-07-14 15:58:38 -04:00
Brad Rydzewski 8a62c626bd cleanup visibility verification logic 2017-05-23 00:54:04 +02:00
Brad Rydzewski b1cbe65985 use visibility to alter permissions 2017-05-23 00:44:58 +02:00
Brad Rydzewski 18bee1b84d added repo repair 2017-04-12 15:32:44 +02:00
Brad Rydzewski 5dfc61ca7e ability to update repo settings from cli 2017-04-12 14:12:21 +02:00
Brad Rydzewski f2d4cf7be5 update repo patch logic 2017-04-11 23:51:33 +02:00
Brad Rydzewski 8348c858ba wip enable pluggable secret and registry backends 2017-04-11 19:06:45 +02:00
Brad Rydzewski 6246b32569 ability to customize yaml path 2017-03-19 16:44:57 +08:00
Brad Rydzewski d656b2a75b add chown command to switch repo owner 2016-06-14 14:05:53 -07:00
Brad Rydzewski f930545410 refactoring github package to increase test coverage 2016-05-02 17:47:58 -07:00
Brad Rydzewski 0fb4aeda3f bump to 0.5 in master 2016-05-02 12:21:25 -07:00
Renamed from api/repo.go (Browse further)