Commit graph

247 commits

Author SHA1 Message Date
Brad Rydzewski
08739aaed9 update bb client 2018-10-19 13:18:11 -07:00
Brad Rydzewski
3d6bd58be8 ensure stash responses closed 2018-10-19 13:03:46 -07:00
Mura Li
63fba676b1 Fix out-of-bounds error when a push doesn't contain commits 2018-06-11 16:47:25 +08:00
folex
0f737fd82c Fix fmt.ErrorF usage 2018-04-30 11:50:49 +03:00
folex
b1dfa4a5a9 Fix PR comments
full_name   -> fullName
"%s"        -> %q
errors.New  -> fmt.Errorf
2018-04-28 10:25:30 +03:00
folex
0b73e5489b Add tests:
- read access
- write access
- admin access
2018-04-27 20:48:54 +03:00
folex
764c36f736 Use user/permissions bitbucket API instead of hooks 2018-04-27 19:01:15 +03:00
Vincent Lequertier
23f215df0e Remove labels deserialization for gogs and gitea PRs
This fixes #2154
2018-04-10 11:24:05 +02:00
Brad Rydzewski
641afd9273
Merge pull request #2350 from filoozom/fix-gitea-sync [ci skip]
Fix gitea `actionSync`
2018-04-01 11:51:34 -07:00
Brad Rydzewski
897eb95bcd
Merge pull request #2369 from JonasFranzDEV/master
Add context to Gitea status
2018-03-30 09:32:09 -07:00
Thomas Boerger
7f49e69607
Just fixed format with go fmt ./... 2018-03-21 14:02:17 +01:00
Jonas Franz
6a32935011
Add context to gitea status
Signed-off-by: Jonas Franz <info@jonasfranz.software>
2018-03-10 20:11:34 +01:00
Philippe Schommers
487f6c9501 Fix gitea actionSync 2018-02-20 18:53:03 +01:00
Brad Rydzewski
580fe9abb7 add apache license header to files 2018-02-19 14:24:10 -08:00
Brad Rydzewski
9a76ab5bbb
Merge pull request #2315 from favadi/gitea-pull-sender
uses email from Sender field of push event
2018-02-19 12:25:34 -08:00
Yuki Yoshida
100f44c615 Fix typos 2018-02-16 17:21:01 +09:00
Diep Pham
e3a5376d01 uses email from Sender field of push event
Gitea/Gogs [set repository owner](d644e88107/models/pull.go (L469)) information as Pusher in webhook.

For example, if we have a repository: git.example.com/org1/repo1, owner
of repository will be `org1` and the email field will be empty. This PR
changes gitea/gogs helpers to use the email in Sender field, which is
the user that click the merge button.
2018-02-06 15:15:24 +07:00
Michael de Wit
e4a77e5346 Fix Gitea remote pull-request webhook parsing 2018-01-29 13:20:02 +01:00
Brad Rydzewski
970080e444 use a backoff when fetching the yaml 2017-12-01 09:22:30 -08:00
Brad Rydzewski
6397395570
Use 5s backoff with 1m timeout fetching .drone.yml 2017-11-28 11:36:22 -08:00
Bo-Yi Wu
837ed7b84c Add testing.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-04 23:19:01 +08:00
Bo-Yi Wu
2a2ff0550c fix missing commit sha and wrong tag link.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-04 23:06:37 +08:00
Brad Rydzewski
578e8847cf Merge pull request #2241 from tboerger/fix-gitea
Urgent fix for changed auth behavior on Gitea
2017-10-13 07:59:47 -07:00
Thomas Boerger
517c003af2
Urgent fix for changed auth behavior on Gitea
Within the PR https://github.com/go-gitea/gitea/pull/2184 on Gitea the
project dropped the standard behavior to use x-auth-basic personal
access token. So we should use a proper username and the token from now
on to support Gitea >= 1.2.0. Since this driver anyway only supports
Gitea >= 1.2.0 this won't be a breaking change on Drone side, the only
breaking change is on side of Gitea!
2017-10-13 07:56:24 +02:00
Pavlo Kerestey
96734122b9 Fix typo of gogs pull request synchronized action 2017-10-12 12:32:17 +02:00
marcin.suterski
96af18993a
Use 'base_ref' as branch name for github tag events.
This chnage adds ability to filter builds by the source branch name for tag
events from Github.
2017-09-14 20:16:58 -04:00
Brad Rydzewski
913d8701f2 add gitlab v3 option for backward compat 2017-09-14 07:50:07 -07:00
Ivan Chernov
6074a0164e Update gitlab API to version v4 2017-09-07 21:05:26 +03:00
Brad Rydzewski
7826888729 update listing 2017-08-26 15:59:57 -07:00
mingshun
eb94dc0419 Added integration for coding.net 2017-07-22 17:12:09 +08:00
Brad Rydzewski
0b1a60fabc update gerrit implementation 2017-07-16 14:29:10 -04:00
Brad Rydzewski
35e0ee2e5f implement sync logic 2017-07-14 15:58:38 -04:00
Chris Fordham
76950da64d use of ProxyFromEnvironment for bitbucketserver
Similar to https://github.com/drone/drone/pull/1724. Currently it looks like drone only supports this with github and gitlab. This PR will add the proxy support for bitbucketserver.
2017-07-11 19:35:45 +10:00
Bo-Yi Wu
b833b16f32 add missing Email from Hook Event in gitea. (#2080)
* add missing Email from Hook Event in gitea.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix field.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix avatar path

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix testing

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-06-21 06:53:47 +02:00
Bo-Yi Wu
f2b63b634f
update hook event
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
25ddaf858b
support deactivate method and refactor file method
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
7f072e331a
fix gitea file testing.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
f186d4c898
Gitea return a sha with the pull request
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
8e58099c51
fix typo
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
1417948d3d
fix import
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
fefbf9f06b
fix typo
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
c018f1a475
fix: comment 2017-05-24 10:16:32 +08:00
Bo-Yi Wu
568e8f85d2
fix: update 2017-05-24 10:16:32 +08:00
Bo-Yi Wu
0f95c504a2
fix: [ci skip] update comment. 2017-05-24 10:16:32 +08:00
Bo-Yi Wu
4f256bfd5c
refactor: update vendor. 2017-05-24 10:16:32 +08:00
Bo-Yi Wu
2263ba2a8d
fix: rename Gogs to Gitea 2017-05-24 10:16:31 +08:00
Bo-Yi Wu
70072321e9
fix: remove username json field. 2017-05-24 10:16:31 +08:00
Bo-Yi Wu
4329268ee1
fix: add commit status testing. 2017-05-24 10:16:31 +08:00
Bo-Yi Wu
82548c4587
fix: testing 2017-05-24 10:16:31 +08:00
Bo-Yi Wu
35b1e1d386
feat: add gitea remote driver. 2017-05-24 10:16:31 +08:00