Commit graph

56 commits

Author SHA1 Message Date
Jacob Floyd 780c902a6b
Refactor: move remote/ to server/remote/ (#344) 2021-09-23 18:25:51 +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 e2b76ac449 Fixing infinite loop :o 2019-07-17 13:58:47 +02:00
Laszlo Fogas ace264fe2f Persist intended URL through the OAuth flow 2019-06-27 08:25:00 +02:00
Laszlo Fogas 1d47ba8a32 Status line for each pipeline on Github 2019-06-17 10:48:40 +02:00
Laszlo Fogas 435083db9e Handling channel close 2019-06-05 10:08:49 +02:00
Laszlo Fogas 5cc4dca56f Fetching multiple pipelines from Github, skipping some logic for now 2019-06-04 15:04:18 +02:00
Laszlo Fogas 75d30dea09 Function to fetch a folder from the remote 2019-06-03 09:22:14 +02:00
Laszlo Fogas 67cdbd2509 Simplified the interface 2019-06-03 08:49:11 +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
Brad Rydzewski 35e0ee2e5f implement sync logic 2017-07-14 15:58:38 -04:00
Brad Rydzewski 130c623a35 compare yaml files 2017-03-18 19:25:53 +08:00
Alexey Palazhchenko b230afe7f5 Add AuthError type, use it. 2016-12-19 19:22:11 +03:00
Alexey Palazhchenko e259c64bac Expose OAuth2 errors, avoid redirect loop.
Closes #1775.
2016-12-19 08:42:56 +03:00
Jacob McCann 820e0ab158 Check remote for org secrets access
Fully implemented for github remote
2016-11-18 22:12:28 -06:00
Brendan Gaulin 5b58768d63 OAuth2 GHE Always Register BustedURL
When going through the oauth2 module in go, there is a list of "busted" URLs which don't implement OAuth2 properly.

Github is on that list, however Github Enterprise(GHE) uses different URLs for each instance. Instead of adding all of these to the global list in the oauth module, we can simply flag all of our tokens as broken until github updates their API.
2016-08-25 18:27:17 -04:00
Fabio Rapposelli 837446825d
Add modifiable context for Github status API 2016-05-27 20:22:32 +02:00
jdamick 577dfbab27 fix for issue #1502 2016-05-12 13:09:52 -04:00
jdamick d9c369bdc7 added scopes to the oauth2 config 2016-05-11 10:32:11 -04:00
Brad Rydzewski 4040dfceb8 significant improvement to GitHub remote coverage (from 5% to 50%) 2016-05-03 13:01:16 -07:00
Brad Rydzewski f930545410 refactoring github package to increase test coverage 2016-05-02 17:47:58 -07:00
Brad Rydzewski ebd547deac refactoring remotes to remove deprecated variables, adding tests 2016-05-01 16:30:00 -07:00
Brad Rydzewski 082570fb5b refactoring input and configuration 2016-04-29 12:39:56 -07:00
Brad Rydzewski 9b306a1bc8 load all things via middleware 2016-04-12 13:08:17 -07:00
Jeff Storey 79dc866f43 getting rid of string split and using the regex match 2016-03-30 07:59:06 -04:00
Jeff Storey 3e4b871991 adding check for github link 2016-03-29 20:05:28 -04:00
Jeff Storey 6ddc2abf47 #1550 deployment status hooks for github 2016-03-29 14:10:33 -04:00
Kirill Zaitsev d7b066b308 Use GetUserRepos instead GetAllRepos 2016-03-26 18:48:35 +03:00
Fabio Rapposelli e5131fd76e Add tuneable build file parameter BUILD_CONFIG_FILE 2016-03-25 00:08:27 +01:00
alex c2f3cf06ad Parameterize GitHub OAuth2 scopes.
If no scope provided, default will be used:
scope=repo,repo:status,user:email.
2016-03-10 19:30:14 +00:00
Brad Rydzewski 3dd0260b69 improve and simplify repository caching 2016-03-04 21:15:50 -08:00
Fabio Rapposelli 9eb4161750
Make GitHub status API context congruous
Signed-off-by: Fabio Rapposelli <fabio@vmware.com>
2015-12-22 14:10:39 +01:00
alex 5ca67d304c Do not ignore refs/heads/gh-pages 2015-12-18 10:57:38 +00:00
Adam Stepinski 1c9cfcd376 pull build author from pull request user 2015-11-11 13:41:45 -08:00
Brad Rydzewski 7c2764f8eb SkipVerify oauth code as needed 2015-10-30 14:47:46 -07:00
Brad Rydzewski 4a0deff5a5 implements Stringer for store and remotes 2015-10-27 16:48:05 -07:00
Brad Rydzewski fc02d38b4a updates the github deployment hook parser to work with older payloads 2015-10-27 14:53:55 -07:00
Brad Rydzewski 37a8a6d4e9 add github deployment environment to build.Deploy 2015-10-27 13:09:13 -07:00
Brad Rydzewski 25fa705511 added scm and deploy fields. plan to support hg, github deploys 2015-10-27 13:03:37 -07:00
Brad Rydzewski e71905273d parses github hooks 2015-10-26 17:31:26 -07:00
Brad Rydzewski 13aa6fda3d properly label tag events for GitHub 2015-10-26 13:10:46 -07:00
Brad Rydzewski aa8e0347d0 github author fallback for old GitHub enterprise 2015-10-06 18:31:01 -07:00
Brad Rydzewski 4435d7f2f6 added ssh param to force git+ssh cloning 2015-10-02 16:02:37 -07:00
Brad Rydzewski dfea14c7e5 updated vendor files and paths 2015-09-29 18:21:17 -07:00
Brad Rydzewski 40a9543c0c moving remote pkg per new multi-binary structure 2015-05-17 11:45:09 -07:00
Brad Rydzewski 1ef6dc0bc6 persist self url in repo field 2015-05-12 23:58:30 -07:00