更改部分包名

main
liuzhiguo 6 months ago
parent 80f58ef743
commit c5f77383e9

@ -12,8 +12,8 @@ steps:
image: golang:1.14.15
commands:
- go test -race ./...
- go build -o /dev/null github.com/drone/drone/cmd/drone-server
- go build -o /dev/null -tags "oss nolimit" github.com/drone/drone/cmd/drone-server
- go build -o /dev/null git.awesome-for.me/liuzhiguo/drone/cmd/drone-server
- go build -o /dev/null -tags "oss nolimit" git.awesome-for.me/liuzhiguo/drone/cmd/drone-server
- name: build
image: golang:1.14.15

@ -2,7 +2,7 @@
2. Install go 1.11 or later with Go modules enabled
3. Install binaries to $GOPATH/bin
go install github.com/drone/drone/cmd/drone-server
go install git.awesome-for.me/liuzhiguo/drone/cmd/drone-server
4. Start the server at localhost:8080

@ -2,7 +2,7 @@
2. Install go 1.11 or later with Go modules enabled
3. Install binaries to $GOPATH/bin
go install -tags "oss nolimit" github.com/drone/drone/cmd/drone-server
go install -tags "oss nolimit" git.awesome-for.me/liuzhiguo/drone/cmd/drone-server
4. Start the server at localhost:8080

@ -480,33 +480,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [2.0.3]
### Fixed
- DONE-91 handle extra slashes in url. [#3009](https://github.com/drone/drone/pull/3099).
- DONE-91 handle extra slashes in url. [#3009](https://git.awesome-for.me/liuzhiguo/drone/pull/3099).
## [2.0.2]
### Added
- Merge remote-tracking branch 'origin/master'
- prevent repository list short circuit in UI
- remove deprecated steps from building file [#3097](https://github.com/drone/drone/pull/3097)
- adding depends_on, image and detached fields to step [#3072](https://github.com/drone/drone/pull/3072)
- Add ctx.build.debug boolean [#3082](https://github.com/drone/drone/pull/3082)
- Bump github.com/google/go-jsonnet to v0.17.0 [#3084](https://github.com/drone/drone/pull/3084)
- bump go-scm v1.15.1 [#3096](https://github.com/drone/drone/pull/3096)
- bitbucket server build issue [#3092](https://github.com/drone/drone/pull/3092)
- update scm version [#3091](https://github.com/drone/drone/pull/3091)
- Limit graceful shutdown duration [#3093](https://github.com/drone/drone/pull/3093)
- remove deprecated steps from building file [#3097](https://git.awesome-for.me/liuzhiguo/drone/pull/3097)
- adding depends_on, image and detached fields to step [#3072](https://git.awesome-for.me/liuzhiguo/drone/pull/3072)
- Add ctx.build.debug boolean [#3082](https://git.awesome-for.me/liuzhiguo/drone/pull/3082)
- Bump github.com/google/go-jsonnet to v0.17.0 [#3084](https://git.awesome-for.me/liuzhiguo/drone/pull/3084)
- bump go-scm v1.15.1 [#3096](https://git.awesome-for.me/liuzhiguo/drone/pull/3096)
- bitbucket server build issue [#3092](https://git.awesome-for.me/liuzhiguo/drone/pull/3092)
- update scm version [#3091](https://git.awesome-for.me/liuzhiguo/drone/pull/3091)
- Limit graceful shutdown duration [#3093](https://git.awesome-for.me/liuzhiguo/drone/pull/3093)
- bump user interface
- bump ui version
- ignore skip directive for promote and rollback events
- new feature: maximum open DB connections is configurable[#3089](https://github.com/drone/drone/pull/3089)
- jsonnet additional parameters [#3087](https://github.com/drone/drone/pull/3087)
- new feature: maximum open DB connections is configurable[#3089](https://git.awesome-for.me/liuzhiguo/drone/pull/3089)
- jsonnet additional parameters [#3087](https://git.awesome-for.me/liuzhiguo/drone/pull/3087)
- hide login button if user already authenticated
- new feature: configuration templates [#3081](https://github.com/drone/drone/pull/3081)
- new feature: configuration templates [#3081](https://git.awesome-for.me/liuzhiguo/drone/pull/3081)
### Fixed
- various typos [#3088](https://github.com/drone/drone/pull/3088)
- handle error properly if template doesn't exist [#3095](https://github.com/drone/drone/pull/3093)
- oss build issue [#3086](https://github.com/drone/drone/pull/3086)
- graceful shutdown [#3083](https://github.com/drone/drone/pull/3083)
- various typos [#3088](https://git.awesome-for.me/liuzhiguo/drone/pull/3088)
- handle error properly if template doesn't exist [#3095](https://git.awesome-for.me/liuzhiguo/drone/pull/3093)
- oss build issue [#3086](https://git.awesome-for.me/liuzhiguo/drone/pull/3086)
- graceful shutdown [#3083](https://git.awesome-for.me/liuzhiguo/drone/pull/3083)
## [2.0.1]
### Added
@ -542,7 +542,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.9.1]
### Added
- support for increasing the http request timeout for extensions. [#2998](https://github.com/drone/drone/pull/2998).
- support for increasing the http request timeout for extensions. [#2998](https://git.awesome-for.me/liuzhiguo/drone/pull/2998).
- support for skipping a pipeline if the validation extension returns an ErrSkip.
- support for blocking a pipeline if the validation extension returns an ErrBlock.
@ -587,20 +587,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.7.0] - 2020-03-27
### Added
- endpoint to display the latest build by branch. [#2940](https://github.com/drone/drone/pull/2940).
- endpoint to display the latest build by pull request. [#2940](https://github.com/drone/drone/pull/2940).
- endpoint to display the latest build by environment. [#2940](https://github.com/drone/drone/pull/2940).
- endpoint to delete a branch from the index. [#2940](https://github.com/drone/drone/pull/2940).
- endpoint to delete a pull request from the index. [#2940](https://github.com/drone/drone/pull/2940).
- endpoint to delete an environment from the index. [#2940](https://github.com/drone/drone/pull/2940).
- endpoint to display the latest build by branch. [#2940](https://git.awesome-for.me/liuzhiguo/drone/pull/2940).
- endpoint to display the latest build by pull request. [#2940](https://git.awesome-for.me/liuzhiguo/drone/pull/2940).
- endpoint to display the latest build by environment. [#2940](https://git.awesome-for.me/liuzhiguo/drone/pull/2940).
- endpoint to delete a branch from the index. [#2940](https://git.awesome-for.me/liuzhiguo/drone/pull/2940).
- endpoint to delete a pull request from the index. [#2940](https://git.awesome-for.me/liuzhiguo/drone/pull/2940).
- endpoint to delete an environment from the index. [#2940](https://git.awesome-for.me/liuzhiguo/drone/pull/2940).
- page to view the latest build per branch.
### Fixed
- sync routine not executing asynchronously, being cancelled by http context.
- sync routine should ignore gitlab subrepositories
- convert deploy events in 0.8 yaml to promote events.
- do not execute cron job for disabled repositories. [#2931](https://github.com/drone/drone/issues/2931).
- remove trailing slash from gitea url to prevent oauth2 token refresh errors, by [@cmj0121](https://github.com/cmj0121). [#2920](https://github.com/drone/drone/issues/2920).
- do not execute cron job for disabled repositories. [#2931](https://git.awesome-for.me/liuzhiguo/drone/issues/2931).
- remove trailing slash from gitea url to prevent oauth2 token refresh errors, by [@cmj0121](https://github.com/cmj0121). [#2920](https://git.awesome-for.me/liuzhiguo/drone/issues/2920).
- disable font ligatures in build log output. [drone/drone-ui#322](https://github.com/drone/drone-ui/pull/322).
- missing am/pm in timestamps
@ -639,27 +639,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.6.0] - 2019-10-04
### Added
- added nsswitch to docker images
- option to auto-cancel pending builds when newer build enqueued, by [@bradrydzewski](https://github.com/bradrydzewski). [#1980](https://github.com/drone/drone/issues/1980).
- endpoint to list all repositories in the database, by [@bradrydzewski](https://github.com/bradrydzewski). [#2785](https://github.com/drone/drone/issues/2785).
- option to auto-cancel pending builds when newer build enqueued, by [@bradrydzewski](https://github.com/bradrydzewski). [#1980](https://git.awesome-for.me/liuzhiguo/drone/issues/1980).
- endpoint to list all repositories in the database, by [@bradrydzewski](https://github.com/bradrydzewski). [#2785](https://git.awesome-for.me/liuzhiguo/drone/issues/2785).
### Fixed
- improve sync to handle duplicate repository names with different unique identifiers, by [@bradrydzewski](https://github.com/bradrydzewski). [#2658](https://github.com/drone/drone/issues/2658). _You can revert to the previous sync logic with DRONE_DATABASE_LEGACY_BATCH=true_.
- improve sync to handle duplicate repository names with different unique identifiers, by [@bradrydzewski](https://github.com/bradrydzewski). [#2658](https://git.awesome-for.me/liuzhiguo/drone/issues/2658). _You can revert to the previous sync logic with DRONE_DATABASE_LEGACY_BATCH=true_.
## [1.5.1] - 2019-09-30
### Added
- allow organization admins access to organization secret endpoints, by [@bradrydzewski](https://github.com/bradrydzewski). [#2838](https://github.com/drone/drone/issues/2838).
- allow organization admins access to organization secret endpoints, by [@bradrydzewski](https://github.com/bradrydzewski). [#2838](https://git.awesome-for.me/liuzhiguo/drone/issues/2838).
### Fixed
- fix invalid deep links in UI for github enterprise, by [@bradrydzewski](https://github.com/bradrydzewski).
- ensure correct casing when manually adding user, by [@bradrydzewski](https://github.com/bradrydzewski). [#2766](https://github.com/drone/drone/issues/2766).
- ensure correct casing when manually adding user, by [@bradrydzewski](https://github.com/bradrydzewski). [#2766](https://git.awesome-for.me/liuzhiguo/drone/issues/2766).
## [1.5.0] - 2019-09-28
### Added
- endpoint to execute a cron pipeline on-demand, by [@bradrydzewski](https://github.com/bradrydzewski). [#2781](https://github.com/drone/drone/issues/2781).
- endpoint to list builds by branch, by [@bradrydzewski](https://github.com/bradrydzewski). [#1495](https://github.com/drone/drone/issues/1495).
- ignore skip comments when cron event, by [@bradrydzewski](https://github.com/bradrydzewski). [#2835](https://github.com/drone/drone/issues/2835).
- support for admission extensions, by [@bradrydzewski](https://github.com/bradrydzewski). [#2043](https://github.com/drone/drone/issues/2043).
- endpoint to provide link to git resources, by [@bradrydzewski](https://github.com/bradrydzewski). [#2843](https://github.com/drone/drone/issues/2843).
- endpoint to execute a cron pipeline on-demand, by [@bradrydzewski](https://github.com/bradrydzewski). [#2781](https://git.awesome-for.me/liuzhiguo/drone/issues/2781).
- endpoint to list builds by branch, by [@bradrydzewski](https://github.com/bradrydzewski). [#1495](https://git.awesome-for.me/liuzhiguo/drone/issues/1495).
- ignore skip comments when cron event, by [@bradrydzewski](https://github.com/bradrydzewski). [#2835](https://git.awesome-for.me/liuzhiguo/drone/issues/2835).
- support for admission extensions, by [@bradrydzewski](https://github.com/bradrydzewski). [#2043](https://git.awesome-for.me/liuzhiguo/drone/issues/2043).
- endpoint to provide link to git resources, by [@bradrydzewski](https://github.com/bradrydzewski). [#2843](https://git.awesome-for.me/liuzhiguo/drone/issues/2843).
- improve bitbucket status display text on new pull request screen, by [@bradrydzewski](https://github.com/bradrydzewski).
### Fixed
@ -672,20 +672,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.4.0] - 2019-09-12
### Added
- upgrade to Go 1.13 to resolve arm segfault, by [@KN4CK3R](https://github.com/KN4CK3R). [#2823](https://github.com/drone/drone/issues/2823).
- configure default visibility, by [@JordanSussman](https://github.com/JordanSussman). [#2824](https://github.com/drone/drone/issues/2824).
- upgrade to Go 1.13 to resolve arm segfault, by [@KN4CK3R](https://github.com/KN4CK3R). [#2823](https://git.awesome-for.me/liuzhiguo/drone/issues/2823).
- configure default visibility, by [@JordanSussman](https://github.com/JordanSussman). [#2824](https://git.awesome-for.me/liuzhiguo/drone/issues/2824).
- configure default trusted flag, by [@vyckou](https://github.com/vyckou).
- support for validation plugins, by [@bradrydzewski](https://github.com/bradrydzewski). [#2266](https://github.com/drone/drone/issues/2266).
- support for validation plugins, by [@bradrydzewski](https://github.com/bradrydzewski). [#2266](https://git.awesome-for.me/liuzhiguo/drone/issues/2266).
- support for conversion plugins, by [@bradrydzewski](https://github.com/bradrydzewski).
- support for cron event type, by [@bradrydzewski](https://github.com/bradrydzewski). [#2705](https://github.com/drone/drone/issues/2705).
- support for rollback event, by [@bradrydzewski](https://github.com/bradrydzewski). [#2695](https://github.com/drone/drone/issues/2695).
- support for lets encrypt email, by [@bradrydzewski](https://github.com/bradrydzewski). [#2505](https://github.com/drone/drone/issues/2505).
- support for cron event type, by [@bradrydzewski](https://github.com/bradrydzewski). [#2705](https://git.awesome-for.me/liuzhiguo/drone/issues/2705).
- support for rollback event, by [@bradrydzewski](https://github.com/bradrydzewski). [#2695](https://git.awesome-for.me/liuzhiguo/drone/issues/2695).
- support for lets encrypt email, by [@bradrydzewski](https://github.com/bradrydzewski). [#2505](https://git.awesome-for.me/liuzhiguo/drone/issues/2505).
### Removed
- Support for basic auth as an option for Gitea, by [@techknowlogick](https://giteahub.com/techknowlogick). [#2721](https://github.com/drone/drone/issues/2721)
- Support for basic auth as an option for Gitea, by [@techknowlogick](https://giteahub.com/techknowlogick). [#2721](https://git.awesome-for.me/liuzhiguo/drone/issues/2721)
### Fixed
- copy cron job name when restarting a cron job, by [@bradrydzewski](https://github.com/bradrydzewski). [#2760](https://github.com/drone/drone/issues/2760).
- copy cron job name when restarting a cron job, by [@bradrydzewski](https://github.com/bradrydzewski). [#2760](https://git.awesome-for.me/liuzhiguo/drone/issues/2760).
## [1.3.1] - 2019-08-26
### Added
@ -693,13 +693,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.3.0] - 2019-08-20
### Added
- support for storing logs in Azure Cloud Storage, by [@Lucretius](https://github.com/Lucretius). [#2788](https://github.com/drone/drone/pull/2788)
- support for storing logs in Azure Cloud Storage, by [@Lucretius](https://github.com/Lucretius). [#2788](https://git.awesome-for.me/liuzhiguo/drone/pull/2788)
- support for windows server 1903, by [@bradrydzewski](https://github.com/bradrydzewski).
- button to view the full log file, by [@dramich](https://github.com/dramich). [drone/drone-ui#287](https://github.com/drone/drone-ui/pull/287).
### Fixed
- read gogs sha from webhook, by [@marcotuna](https://github.com/marcotuna).
- create bind volume on host if not exists, by [@bradrydzewski](https://github.com/bradrydzewski). [#2725](https://github.com/drone/drone/issues/2725).
- create bind volume on host if not exists, by [@bradrydzewski](https://github.com/bradrydzewski). [#2725](https://git.awesome-for.me/liuzhiguo/drone/issues/2725).
- preserve whitespace in build logs, by [@geek1011](https://github.com/geek1011). [drone/drone-ui#294](https://github.com/drone/drone-ui/pull/294).
- enable log file download on firefox, by [@bobmanary](https://github.com/bobmanary). [drone/drone-ui#303](https://github.com/drone/drone-ui/pull/303)
@ -710,13 +710,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- disable github status for cron jobs
- support for action in conditionals, by [@bradrydzewski](https://github.com/bradrydzewski). [#2685](https://github.com/drone/drone/issues/2685).
- support for action in conditionals, by [@bradrydzewski](https://github.com/bradrydzewski). [#2685](https://git.awesome-for.me/liuzhiguo/drone/issues/2685).
### Fixed
- improve cancel logic for dangling stages, by [@bradrydzewski](https://github.com/bradrydzewski).
- improve error when kubernetes malforms the port configuration, by [@bradrydzewski](https://github.com/bradrydzewski). [#2742](https://github.com/drone/drone/issues/2742).
- copy parameters from parent build when promoting, by [@bradrydzewski](https://github.com/bradrydzewski). [#2748](https://github.com/drone/drone/issues/2748).
- improve error when kubernetes malforms the port configuration, by [@bradrydzewski](https://github.com/bradrydzewski). [#2742](https://git.awesome-for.me/liuzhiguo/drone/issues/2742).
- copy parameters from parent build when promoting, by [@bradrydzewski](https://github.com/bradrydzewski). [#2748](https://git.awesome-for.me/liuzhiguo/drone/issues/2748).
## [1.2.2] - 2019-07-29
### Added
@ -731,12 +731,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- error when manually creating an empty user, by [@bradrydzewski](https://github.com/bradrydzewski). [#2738](https://github.com/drone/drone/issues/2738).
- error when manually creating an empty user, by [@bradrydzewski](https://github.com/bradrydzewski). [#2738](https://git.awesome-for.me/liuzhiguo/drone/issues/2738).
## [1.2.1] - 2019-06-11
### Added
- support for legacy tokens to ease upgrade path, by [@bradrydzewski](https://github.com/bradrydzewski). [#2713](https://github.com/drone/drone/issues/2713).
- support for legacy tokens to ease upgrade path, by [@bradrydzewski](https://github.com/bradrydzewski). [#2713](https://git.awesome-for.me/liuzhiguo/drone/issues/2713).
- include repository name and id in batch update error message, by [@bradrydzewski](https://github.com/bradrydzewski).
### Fixed
@ -748,28 +748,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.2.0] - 2019-05-30
### Added
- endpoint to trigger new build for default branch, by [@bradrydzewski](https://github.com/bradrydzewski). [#2679](https://github.com/drone/drone/issues/2679).
- endpoint to trigger new build for branch, by [@bradrydzewski](https://github.com/bradrydzewski). [#2679](https://github.com/drone/drone/issues/2679).
- endpoint to trigger new build for branch and sha, by [@bradrydzewski](https://github.com/bradrydzewski). [#2679](https://github.com/drone/drone/issues/2679).
- endpoint to trigger new build for default branch, by [@bradrydzewski](https://github.com/bradrydzewski). [#2679](https://git.awesome-for.me/liuzhiguo/drone/issues/2679).
- endpoint to trigger new build for branch, by [@bradrydzewski](https://github.com/bradrydzewski). [#2679](https://git.awesome-for.me/liuzhiguo/drone/issues/2679).
- endpoint to trigger new build for branch and sha, by [@bradrydzewski](https://github.com/bradrydzewski). [#2679](https://git.awesome-for.me/liuzhiguo/drone/issues/2679).
- enable optional prometheus metrics guest access, by [@janberktold](https://github.com/janberktold)
- fallback to database when logs not found in s3, by [@bradrydzewski](https://github.com/bradrydzewski). [#2689](https://github.com/drone/drone/issues/2689).
- support for custom stage definitions and runners, by [@bradrydzewski](https://github.com/bradrydzewski). [#2680](https://github.com/drone/drone/issues/2680).
- fallback to database when logs not found in s3, by [@bradrydzewski](https://github.com/bradrydzewski). [#2689](https://git.awesome-for.me/liuzhiguo/drone/issues/2689).
- support for custom stage definitions and runners, by [@bradrydzewski](https://github.com/bradrydzewski). [#2680](https://git.awesome-for.me/liuzhiguo/drone/issues/2680).
- update drone-yaml to version 1.1.0
### Fixed
- retrieve latest build by branch, by [@tboerger](https://github.com/tboerger).
- copy the fork value when restarting a build, by [@bradrydzewski](https://github.com/bradrydzewski). [#2708](https://github.com/drone/drone/issues/2708).
- make healthz available without redirect, by [@bradrydzewski](https://github.com/bradrydzewski). [#2706](https://github.com/drone/drone/issues/2706).
- copy the fork value when restarting a build, by [@bradrydzewski](https://github.com/bradrydzewski). [#2708](https://git.awesome-for.me/liuzhiguo/drone/issues/2708).
- make healthz available without redirect, by [@bradrydzewski](https://github.com/bradrydzewski). [#2706](https://git.awesome-for.me/liuzhiguo/drone/issues/2706).
## [1.1.0] - 2019-04-23
### Added
- specify a user for the pipeline step, by [@bradrydzewski](https://github.com/bradrydzewski). [#2651](https://github.com/drone/drone/issues/2651).
- support for Gitea oauth2, by [@techknowlogick](https://github.com/techknowlogick). [#2622](https://github.com/drone/drone/pull/2622).
- ping the docker daemon before starting the agent, by [@bradrydzewski](https://github.com/bradrydzewski). [#2495](https://github.com/drone/drone/issues/2495).
- support for Cron job name in Yaml trigger block, by [@bradrydzewski](https://github.com/bradrydzewski). [#2628](https://github.com/drone/drone/issues/2628).
- support for Cron job name in Yaml when block, by [@bradrydzewski](https://github.com/bradrydzewski). [#2628](https://github.com/drone/drone/issues/2628).
- specify a user for the pipeline step, by [@bradrydzewski](https://github.com/bradrydzewski). [#2651](https://git.awesome-for.me/liuzhiguo/drone/issues/2651).
- support for Gitea oauth2, by [@techknowlogick](https://github.com/techknowlogick). [#2622](https://git.awesome-for.me/liuzhiguo/drone/pull/2622).
- ping the docker daemon before starting the agent, by [@bradrydzewski](https://github.com/bradrydzewski). [#2495](https://git.awesome-for.me/liuzhiguo/drone/issues/2495).
- support for Cron job name in Yaml trigger block, by [@bradrydzewski](https://github.com/bradrydzewski). [#2628](https://git.awesome-for.me/liuzhiguo/drone/issues/2628).
- support for Cron job name in Yaml when block, by [@bradrydzewski](https://github.com/bradrydzewski). [#2628](https://git.awesome-for.me/liuzhiguo/drone/issues/2628).
- sqlite username column changed to case-insensitive, by [@bradrydzewski](https://github.com/bradrydzewski).
- endpoint to purge repository from database, by [@bradrydzewski](https://github.com/bradrydzewski).
- support for per-organization secrets, by [@bradrydzewski](https://github.com/bradrydzewski).
@ -781,9 +781,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- fixed error in mysql table creation syntax, from [@xuyang2](https://github.com/xuyang2). [#2677](https://github.com/drone/drone/pull/2677).
- fixed stuck builds when upstream dependency is skipped, from [@bradrydzewski](https://github.com/bradrydzewski). [#2634](https://github.com/drone/drone/issues/2634).
- fixed issue running steps with dependencies on failure, from [@bradrydzewski](https://github.com/bradrydzewski). [#2667](https://github.com/drone/drone/issues/2667).
- fixed error in mysql table creation syntax, from [@xuyang2](https://github.com/xuyang2). [#2677](https://git.awesome-for.me/liuzhiguo/drone/pull/2677).
- fixed stuck builds when upstream dependency is skipped, from [@bradrydzewski](https://github.com/bradrydzewski). [#2634](https://git.awesome-for.me/liuzhiguo/drone/issues/2634).
- fixed issue running steps with dependencies on failure, from [@bradrydzewski](https://github.com/bradrydzewski). [#2667](https://git.awesome-for.me/liuzhiguo/drone/issues/2667).
## [1.0.1] - 2019-04-10
### Added

@ -12,33 +12,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [2.0.3]
### Fixed
- DONE-91 handle extra slashes in url. [#3009](https://github.com/drone/drone/pull/3099).
- DONE-91 handle extra slashes in url. [#3009](https://git.awesome-for.me/liuzhiguo/drone/pull/3099).
## [2.0.2]
### Added
- Merge remote-tracking branch 'origin/master'
- prevent repository list short circuit in UI
- remove deprecated steps from building file [#3097](https://github.com/drone/drone/pull/3097)
- adding depends_on, image and detached fields to step [#3072](https://github.com/drone/drone/pull/3072)
- Add ctx.build.debug boolean [#3082](https://github.com/drone/drone/pull/3082)
- Bump github.com/google/go-jsonnet to v0.17.0 [#3084](https://github.com/drone/drone/pull/3084)
- bump go-scm v1.15.1 [#3096](https://github.com/drone/drone/pull/3096)
- bitbucket server build issue [#3092](https://github.com/drone/drone/pull/3092)
- update scm version [#3091](https://github.com/drone/drone/pull/3091)
- Limit graceful shutdown duration [#3093](https://github.com/drone/drone/pull/3093)
- remove deprecated steps from building file [#3097](https://git.awesome-for.me/liuzhiguo/drone/pull/3097)
- adding depends_on, image and detached fields to step [#3072](https://git.awesome-for.me/liuzhiguo/drone/pull/3072)
- Add ctx.build.debug boolean [#3082](https://git.awesome-for.me/liuzhiguo/drone/pull/3082)
- Bump github.com/google/go-jsonnet to v0.17.0 [#3084](https://git.awesome-for.me/liuzhiguo/drone/pull/3084)
- bump go-scm v1.15.1 [#3096](https://git.awesome-for.me/liuzhiguo/drone/pull/3096)
- bitbucket server build issue [#3092](https://git.awesome-for.me/liuzhiguo/drone/pull/3092)
- update scm version [#3091](https://git.awesome-for.me/liuzhiguo/drone/pull/3091)
- Limit graceful shutdown duration [#3093](https://git.awesome-for.me/liuzhiguo/drone/pull/3093)
- bump user interface
- bump ui version
- ignore skip directive for promote and rollback events
- new feature: maximum open DB connections is configurable[#3089](https://github.com/drone/drone/pull/3089)
- jsonnet additional parameters [#3087](https://github.com/drone/drone/pull/3087)
- new feature: maximum open DB connections is configurable[#3089](https://git.awesome-for.me/liuzhiguo/drone/pull/3089)
- jsonnet additional parameters [#3087](https://git.awesome-for.me/liuzhiguo/drone/pull/3087)
- hide login button if user already authenticated
- new feature: configuration templates [#3081](https://github.com/drone/drone/pull/3081)
- new feature: configuration templates [#3081](https://git.awesome-for.me/liuzhiguo/drone/pull/3081)
### Fixed
- various typos [#3088](https://github.com/drone/drone/pull/3088)
- handle error properly if template doesn't exist [#3095](https://github.com/drone/drone/pull/3093)
- oss build issue [#3086](https://github.com/drone/drone/pull/3086)
- graceful shutdown [#3083](https://github.com/drone/drone/pull/3083)
- various typos [#3088](https://git.awesome-for.me/liuzhiguo/drone/pull/3088)
- handle error properly if template doesn't exist [#3095](https://git.awesome-for.me/liuzhiguo/drone/pull/3093)
- oss build issue [#3086](https://git.awesome-for.me/liuzhiguo/drone/pull/3086)
- graceful shutdown [#3083](https://git.awesome-for.me/liuzhiguo/drone/pull/3083)
## [2.0.1]
### Added
@ -74,7 +74,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.9.1]
### Added
- support for increasing the http request timeout for extensions. [#2998](https://github.com/drone/drone/pull/2998).
- support for increasing the http request timeout for extensions. [#2998](https://git.awesome-for.me/liuzhiguo/drone/pull/2998).
- support for skipping a pipeline if the validation extension returns an ErrSkip.
- support for blocking a pipeline if the validation extension returns an ErrBlock.
@ -119,20 +119,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.7.0] - 2020-03-27
### Added
- endpoint to display the latest build by branch. [#2940](https://github.com/drone/drone/pull/2940).
- endpoint to display the latest build by pull request. [#2940](https://github.com/drone/drone/pull/2940).
- endpoint to display the latest build by environment. [#2940](https://github.com/drone/drone/pull/2940).
- endpoint to delete a branch from the index. [#2940](https://github.com/drone/drone/pull/2940).
- endpoint to delete a pull request from the index. [#2940](https://github.com/drone/drone/pull/2940).
- endpoint to delete an environment from the index. [#2940](https://github.com/drone/drone/pull/2940).
- endpoint to display the latest build by branch. [#2940](https://git.awesome-for.me/liuzhiguo/drone/pull/2940).
- endpoint to display the latest build by pull request. [#2940](https://git.awesome-for.me/liuzhiguo/drone/pull/2940).
- endpoint to display the latest build by environment. [#2940](https://git.awesome-for.me/liuzhiguo/drone/pull/2940).
- endpoint to delete a branch from the index. [#2940](https://git.awesome-for.me/liuzhiguo/drone/pull/2940).
- endpoint to delete a pull request from the index. [#2940](https://git.awesome-for.me/liuzhiguo/drone/pull/2940).
- endpoint to delete an environment from the index. [#2940](https://git.awesome-for.me/liuzhiguo/drone/pull/2940).
- page to view the latest build per branch.
### Fixed
- sync routine not executing asynchronously, being cancelled by http context.
- sync routine should ignore gitlab subrepositories
- convert deploy events in 0.8 yaml to promote events.
- do not execute cron job for disabled repositories. [#2931](https://github.com/drone/drone/issues/2931).
- remove trailing slash from gitea url to prevent oauth2 token refresh errors, by [@cmj0121](https://github.com/cmj0121). [#2920](https://github.com/drone/drone/issues/2920).
- do not execute cron job for disabled repositories. [#2931](https://git.awesome-for.me/liuzhiguo/drone/issues/2931).
- remove trailing slash from gitea url to prevent oauth2 token refresh errors, by [@cmj0121](https://github.com/cmj0121). [#2920](https://git.awesome-for.me/liuzhiguo/drone/issues/2920).
- disable font ligatures in build log output. [drone/drone-ui#322](https://github.com/drone/drone-ui/pull/322).
- missing am/pm in timestamps
@ -171,27 +171,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.6.0] - 2019-10-04
### Added
- added nsswitch to docker images
- option to auto-cancel pending builds when newer build enqueued, by [@bradrydzewski](https://github.com/bradrydzewski). [#1980](https://github.com/drone/drone/issues/1980).
- endpoint to list all repositories in the database, by [@bradrydzewski](https://github.com/bradrydzewski). [#2785](https://github.com/drone/drone/issues/2785).
- option to auto-cancel pending builds when newer build enqueued, by [@bradrydzewski](https://github.com/bradrydzewski). [#1980](https://git.awesome-for.me/liuzhiguo/drone/issues/1980).
- endpoint to list all repositories in the database, by [@bradrydzewski](https://github.com/bradrydzewski). [#2785](https://git.awesome-for.me/liuzhiguo/drone/issues/2785).
### Fixed
- improve sync to handle duplicate repository names with different unique identifiers, by [@bradrydzewski](https://github.com/bradrydzewski). [#2658](https://github.com/drone/drone/issues/2658). _You can revert to the previous sync logic with DRONE_DATABASE_LEGACY_BATCH=true_.
- improve sync to handle duplicate repository names with different unique identifiers, by [@bradrydzewski](https://github.com/bradrydzewski). [#2658](https://git.awesome-for.me/liuzhiguo/drone/issues/2658). _You can revert to the previous sync logic with DRONE_DATABASE_LEGACY_BATCH=true_.
## [1.5.1] - 2019-09-30
### Added
- allow organization admins access to organization secret endpoints, by [@bradrydzewski](https://github.com/bradrydzewski). [#2838](https://github.com/drone/drone/issues/2838).
- allow organization admins access to organization secret endpoints, by [@bradrydzewski](https://github.com/bradrydzewski). [#2838](https://git.awesome-for.me/liuzhiguo/drone/issues/2838).
### Fixed
- fix invalid deep links in UI for github enterprise, by [@bradrydzewski](https://github.com/bradrydzewski).
- ensure correct casing when manually adding user, by [@bradrydzewski](https://github.com/bradrydzewski). [#2766](https://github.com/drone/drone/issues/2766).
- ensure correct casing when manually adding user, by [@bradrydzewski](https://github.com/bradrydzewski). [#2766](https://git.awesome-for.me/liuzhiguo/drone/issues/2766).
## [1.5.0] - 2019-09-28
### Added
- endpoint to execute a cron pipeline on-demand, by [@bradrydzewski](https://github.com/bradrydzewski). [#2781](https://github.com/drone/drone/issues/2781).
- endpoint to list builds by branch, by [@bradrydzewski](https://github.com/bradrydzewski). [#1495](https://github.com/drone/drone/issues/1495).
- ignore skip comments when cron event, by [@bradrydzewski](https://github.com/bradrydzewski). [#2835](https://github.com/drone/drone/issues/2835).
- support for admission extensions, by [@bradrydzewski](https://github.com/bradrydzewski). [#2043](https://github.com/drone/drone/issues/2043).
- endpoint to provide link to git resources, by [@bradrydzewski](https://github.com/bradrydzewski). [#2843](https://github.com/drone/drone/issues/2843).
- endpoint to execute a cron pipeline on-demand, by [@bradrydzewski](https://github.com/bradrydzewski). [#2781](https://git.awesome-for.me/liuzhiguo/drone/issues/2781).
- endpoint to list builds by branch, by [@bradrydzewski](https://github.com/bradrydzewski). [#1495](https://git.awesome-for.me/liuzhiguo/drone/issues/1495).
- ignore skip comments when cron event, by [@bradrydzewski](https://github.com/bradrydzewski). [#2835](https://git.awesome-for.me/liuzhiguo/drone/issues/2835).
- support for admission extensions, by [@bradrydzewski](https://github.com/bradrydzewski). [#2043](https://git.awesome-for.me/liuzhiguo/drone/issues/2043).
- endpoint to provide link to git resources, by [@bradrydzewski](https://github.com/bradrydzewski). [#2843](https://git.awesome-for.me/liuzhiguo/drone/issues/2843).
- improve bitbucket status display text on new pull request screen, by [@bradrydzewski](https://github.com/bradrydzewski).
### Fixed
@ -204,20 +204,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.4.0] - 2019-09-12
### Added
- upgrade to Go 1.13 to resolve arm segfault, by [@KN4CK3R](https://github.com/KN4CK3R). [#2823](https://github.com/drone/drone/issues/2823).
- configure default visibility, by [@JordanSussman](https://github.com/JordanSussman). [#2824](https://github.com/drone/drone/issues/2824).
- upgrade to Go 1.13 to resolve arm segfault, by [@KN4CK3R](https://github.com/KN4CK3R). [#2823](https://git.awesome-for.me/liuzhiguo/drone/issues/2823).
- configure default visibility, by [@JordanSussman](https://github.com/JordanSussman). [#2824](https://git.awesome-for.me/liuzhiguo/drone/issues/2824).
- configure default trusted flag, by [@vyckou](https://github.com/vyckou).
- support for validation plugins, by [@bradrydzewski](https://github.com/bradrydzewski). [#2266](https://github.com/drone/drone/issues/2266).
- support for validation plugins, by [@bradrydzewski](https://github.com/bradrydzewski). [#2266](https://git.awesome-for.me/liuzhiguo/drone/issues/2266).
- support for conversion plugins, by [@bradrydzewski](https://github.com/bradrydzewski).
- support for cron event type, by [@bradrydzewski](https://github.com/bradrydzewski). [#2705](https://github.com/drone/drone/issues/2705).
- support for rollback event, by [@bradrydzewski](https://github.com/bradrydzewski). [#2695](https://github.com/drone/drone/issues/2695).
- support for lets encrypt email, by [@bradrydzewski](https://github.com/bradrydzewski). [#2505](https://github.com/drone/drone/issues/2505).
- support for cron event type, by [@bradrydzewski](https://github.com/bradrydzewski). [#2705](https://git.awesome-for.me/liuzhiguo/drone/issues/2705).
- support for rollback event, by [@bradrydzewski](https://github.com/bradrydzewski). [#2695](https://git.awesome-for.me/liuzhiguo/drone/issues/2695).
- support for lets encrypt email, by [@bradrydzewski](https://github.com/bradrydzewski). [#2505](https://git.awesome-for.me/liuzhiguo/drone/issues/2505).
### Removed
- Support for basic auth as an option for Gitea, by [@techknowlogick](https://giteahub.com/techknowlogick). [#2721](https://github.com/drone/drone/issues/2721)
- Support for basic auth as an option for Gitea, by [@techknowlogick](https://giteahub.com/techknowlogick). [#2721](https://git.awesome-for.me/liuzhiguo/drone/issues/2721)
### Fixed
- copy cron job name when restarting a cron job, by [@bradrydzewski](https://github.com/bradrydzewski). [#2760](https://github.com/drone/drone/issues/2760).
- copy cron job name when restarting a cron job, by [@bradrydzewski](https://github.com/bradrydzewski). [#2760](https://git.awesome-for.me/liuzhiguo/drone/issues/2760).
## [1.3.1] - 2019-08-26
### Added
@ -225,13 +225,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.3.0] - 2019-08-20
### Added
- support for storing logs in Azure Cloud Storage, by [@Lucretius](https://github.com/Lucretius). [#2788](https://github.com/drone/drone/pull/2788)
- support for storing logs in Azure Cloud Storage, by [@Lucretius](https://github.com/Lucretius). [#2788](https://git.awesome-for.me/liuzhiguo/drone/pull/2788)
- support for windows server 1903, by [@bradrydzewski](https://github.com/bradrydzewski).
- button to view the full log file, by [@dramich](https://github.com/dramich). [drone/drone-ui#287](https://github.com/drone/drone-ui/pull/287).
### Fixed
- read gogs sha from webhook, by [@marcotuna](https://github.com/marcotuna).
- create bind volume on host if not exists, by [@bradrydzewski](https://github.com/bradrydzewski). [#2725](https://github.com/drone/drone/issues/2725).
- create bind volume on host if not exists, by [@bradrydzewski](https://github.com/bradrydzewski). [#2725](https://git.awesome-for.me/liuzhiguo/drone/issues/2725).
- preserve whitespace in build logs, by [@geek1011](https://github.com/geek1011). [drone/drone-ui#294](https://github.com/drone/drone-ui/pull/294).
- enable log file download on firefox, by [@bobmanary](https://github.com/bobmanary). [drone/drone-ui#303](https://github.com/drone/drone-ui/pull/303)
@ -242,13 +242,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- disable github status for cron jobs
- support for action in conditionals, by [@bradrydzewski](https://github.com/bradrydzewski). [#2685](https://github.com/drone/drone/issues/2685).
- support for action in conditionals, by [@bradrydzewski](https://github.com/bradrydzewski). [#2685](https://git.awesome-for.me/liuzhiguo/drone/issues/2685).
### Fixed
- improve cancel logic for dangling stages, by [@bradrydzewski](https://github.com/bradrydzewski).
- improve error when kubernetes malforms the port configuration, by [@bradrydzewski](https://github.com/bradrydzewski). [#2742](https://github.com/drone/drone/issues/2742).
- copy parameters from parent build when promoting, by [@bradrydzewski](https://github.com/bradrydzewski). [#2748](https://github.com/drone/drone/issues/2748).
- improve error when kubernetes malforms the port configuration, by [@bradrydzewski](https://github.com/bradrydzewski). [#2742](https://git.awesome-for.me/liuzhiguo/drone/issues/2742).
- copy parameters from parent build when promoting, by [@bradrydzewski](https://github.com/bradrydzewski). [#2748](https://git.awesome-for.me/liuzhiguo/drone/issues/2748).
## [1.2.2] - 2019-07-29
### Added
@ -263,12 +263,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- error when manually creating an empty user, by [@bradrydzewski](https://github.com/bradrydzewski). [#2738](https://github.com/drone/drone/issues/2738).
- error when manually creating an empty user, by [@bradrydzewski](https://github.com/bradrydzewski). [#2738](https://git.awesome-for.me/liuzhiguo/drone/issues/2738).
## [1.2.1] - 2019-06-11
### Added
- support for legacy tokens to ease upgrade path, by [@bradrydzewski](https://github.com/bradrydzewski). [#2713](https://github.com/drone/drone/issues/2713).
- support for legacy tokens to ease upgrade path, by [@bradrydzewski](https://github.com/bradrydzewski). [#2713](https://git.awesome-for.me/liuzhiguo/drone/issues/2713).
- include repository name and id in batch update error message, by [@bradrydzewski](https://github.com/bradrydzewski).
### Fixed
@ -280,28 +280,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.2.0] - 2019-05-30
### Added
- endpoint to trigger new build for default branch, by [@bradrydzewski](https://github.com/bradrydzewski). [#2679](https://github.com/drone/drone/issues/2679).
- endpoint to trigger new build for branch, by [@bradrydzewski](https://github.com/bradrydzewski). [#2679](https://github.com/drone/drone/issues/2679).
- endpoint to trigger new build for branch and sha, by [@bradrydzewski](https://github.com/bradrydzewski). [#2679](https://github.com/drone/drone/issues/2679).
- endpoint to trigger new build for default branch, by [@bradrydzewski](https://github.com/bradrydzewski). [#2679](https://git.awesome-for.me/liuzhiguo/drone/issues/2679).
- endpoint to trigger new build for branch, by [@bradrydzewski](https://github.com/bradrydzewski). [#2679](https://git.awesome-for.me/liuzhiguo/drone/issues/2679).
- endpoint to trigger new build for branch and sha, by [@bradrydzewski](https://github.com/bradrydzewski). [#2679](https://git.awesome-for.me/liuzhiguo/drone/issues/2679).
- enable optional prometheus metrics guest access, by [@janberktold](https://github.com/janberktold)
- fallback to database when logs not found in s3, by [@bradrydzewski](https://github.com/bradrydzewski). [#2689](https://github.com/drone/drone/issues/2689).
- support for custom stage definitions and runners, by [@bradrydzewski](https://github.com/bradrydzewski). [#2680](https://github.com/drone/drone/issues/2680).
- fallback to database when logs not found in s3, by [@bradrydzewski](https://github.com/bradrydzewski). [#2689](https://git.awesome-for.me/liuzhiguo/drone/issues/2689).
- support for custom stage definitions and runners, by [@bradrydzewski](https://github.com/bradrydzewski). [#2680](https://git.awesome-for.me/liuzhiguo/drone/issues/2680).
- update drone-yaml to version 1.1.0
### Fixed
- retrieve latest build by branch, by [@tboerger](https://github.com/tboerger).
- copy the fork value when restarting a build, by [@bradrydzewski](https://github.com/bradrydzewski). [#2708](https://github.com/drone/drone/issues/2708).
- make healthz available without redirect, by [@bradrydzewski](https://github.com/bradrydzewski). [#2706](https://github.com/drone/drone/issues/2706).
- copy the fork value when restarting a build, by [@bradrydzewski](https://github.com/bradrydzewski). [#2708](https://git.awesome-for.me/liuzhiguo/drone/issues/2708).
- make healthz available without redirect, by [@bradrydzewski](https://github.com/bradrydzewski). [#2706](https://git.awesome-for.me/liuzhiguo/drone/issues/2706).
## [1.1.0] - 2019-04-23
### Added
- specify a user for the pipeline step, by [@bradrydzewski](https://github.com/bradrydzewski). [#2651](https://github.com/drone/drone/issues/2651).
- support for Gitea oauth2, by [@techknowlogick](https://github.com/techknowlogick). [#2622](https://github.com/drone/drone/pull/2622).
- ping the docker daemon before starting the agent, by [@bradrydzewski](https://github.com/bradrydzewski). [#2495](https://github.com/drone/drone/issues/2495).
- support for Cron job name in Yaml trigger block, by [@bradrydzewski](https://github.com/bradrydzewski). [#2628](https://github.com/drone/drone/issues/2628).
- support for Cron job name in Yaml when block, by [@bradrydzewski](https://github.com/bradrydzewski). [#2628](https://github.com/drone/drone/issues/2628).
- specify a user for the pipeline step, by [@bradrydzewski](https://github.com/bradrydzewski). [#2651](https://git.awesome-for.me/liuzhiguo/drone/issues/2651).
- support for Gitea oauth2, by [@techknowlogick](https://github.com/techknowlogick). [#2622](https://git.awesome-for.me/liuzhiguo/drone/pull/2622).
- ping the docker daemon before starting the agent, by [@bradrydzewski](https://github.com/bradrydzewski). [#2495](https://git.awesome-for.me/liuzhiguo/drone/issues/2495).
- support for Cron job name in Yaml trigger block, by [@bradrydzewski](https://github.com/bradrydzewski). [#2628](https://git.awesome-for.me/liuzhiguo/drone/issues/2628).
- support for Cron job name in Yaml when block, by [@bradrydzewski](https://github.com/bradrydzewski). [#2628](https://git.awesome-for.me/liuzhiguo/drone/issues/2628).
- sqlite username column changed to case-insensitive, by [@bradrydzewski](https://github.com/bradrydzewski).
- endpoint to purge repository from database, by [@bradrydzewski](https://github.com/bradrydzewski).
- support for per-organization secrets, by [@bradrydzewski](https://github.com/bradrydzewski).
@ -313,9 +313,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- fixed error in mysql table creation syntax, from [@xuyang2](https://github.com/xuyang2). [#2677](https://github.com/drone/drone/pull/2677).
- fixed stuck builds when upstream dependency is skipped, from [@bradrydzewski](https://github.com/bradrydzewski). [#2634](https://github.com/drone/drone/issues/2634).
- fixed issue running steps with dependencies on failure, from [@bradrydzewski](https://github.com/bradrydzewski). [#2667](https://github.com/drone/drone/issues/2667).
- fixed error in mysql table creation syntax, from [@xuyang2](https://github.com/xuyang2). [#2677](https://git.awesome-for.me/liuzhiguo/drone/pull/2677).
- fixed stuck builds when upstream dependency is skipped, from [@bradrydzewski](https://github.com/bradrydzewski). [#2634](https://git.awesome-for.me/liuzhiguo/drone/issues/2634).
- fixed issue running steps with dependencies on failure, from [@bradrydzewski](https://github.com/bradrydzewski). [#2667](https://git.awesome-for.me/liuzhiguo/drone/issues/2667).
## [1.0.1] - 2019-04-10
### Added

@ -23,7 +23,7 @@ tasks:
cmds:
- cmd: >
go build -o release/linux/amd64/drone-{{.name}}
github.com/drone/drone/cmd/drone-{{.name}}
git.awesome-for.me/liuzhiguo/drone/cmd/drone-{{.name}}
cleanup:
cmds:
@ -76,20 +76,20 @@ tasks:
mysql:5.7
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
- cmd: go test -count=1 github.com/drone/drone/store/batch
- cmd: go test -count=1 github.com/drone/drone/store/batch2
- cmd: go test -count=1 github.com/drone/drone/store/build
- cmd: go test -count=1 github.com/drone/drone/store/card
- cmd: go test -count=1 github.com/drone/drone/store/cron
- cmd: go test -count=1 github.com/drone/drone/store/logs
- cmd: go test -count=1 github.com/drone/drone/store/perm
- cmd: go test -count=1 github.com/drone/drone/store/repos
- cmd: go test -count=1 github.com/drone/drone/store/secret
- cmd: go test -count=1 github.com/drone/drone/store/secret/global
- cmd: go test -count=1 github.com/drone/drone/store/stage
- cmd: go test -count=1 github.com/drone/drone/store/step
- cmd: go test -count=1 github.com/drone/drone/store/template
- cmd: go test -count=1 github.com/drone/drone/store/user
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/batch
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/batch2
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/build
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/card
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/cron
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/logs
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/perm
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/repos
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/secret
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/secret/global
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/stage
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/step
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/template
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/user
- cmd: docker kill mysql
test-postgres:
@ -111,19 +111,19 @@ tasks:
--detach
--rm
postgres:9-alpine
- cmd: go test -count=1 github.com/drone/drone/store/batch
- cmd: go test -count=1 github.com/drone/drone/store/batch2
- cmd: go test -count=1 github.com/drone/drone/store/build
- cmd: go test -count=1 github.com/drone/drone/store/card
- cmd: go test -count=1 github.com/drone/drone/store/cron
- cmd: go test -count=1 github.com/drone/drone/store/logs
- cmd: go test -count=1 github.com/drone/drone/store/perm
- cmd: go test -count=1 github.com/drone/drone/store/repos
- cmd: go test -count=1 github.com/drone/drone/store/secret
- cmd: go test -count=1 github.com/drone/drone/store/secret/global
- cmd: go test -count=1 github.com/drone/drone/store/stage
- cmd: go test -count=1 github.com/drone/drone/store/step
- cmd: go test -count=1 github.com/drone/drone/store/template
- cmd: go test -count=1 github.com/drone/drone/store/user
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/batch
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/batch2
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/build
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/card
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/cron
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/logs
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/perm
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/repos
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/secret
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/secret/global
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/stage
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/step
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/template
- cmd: go test -count=1 git.awesome-for.me/liuzhiguo/drone/store/user
- cmd: docker kill postgres
silent: true

@ -19,9 +19,9 @@ import (
"errors"
"time"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/dchest/uniuri"
"github.com/drone/drone/core"
"github.com/drone/drone/logger"
"github.com/sirupsen/logrus"
)

@ -10,8 +10,8 @@ import (
"io/ioutil"
"testing"
"github.com/drone/drone/core"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/dchest/uniuri"
"github.com/golang/mock/gomock"

@ -24,7 +24,7 @@ import (
"net/http/httputil"
"strings"
"github.com/drone/drone/cmd/drone-server/config"
"git.awesome-for.me/liuzhiguo/drone/cmd/drone-server/config"
"github.com/drone/go-scm/scm"
"github.com/drone/go-scm/scm/driver/bitbucket"
"github.com/drone/go-scm/scm/driver/gitea"
@ -187,7 +187,7 @@ func provideGitlabClient(config config.Config) *scm.Client {
Endpoint: strings.TrimSuffix(config.GitLab.Server, "/") + "/oauth/token",
Source: oauth2.ContextTokenSource(),
},
Base: defaultTransport(config.GitLab.SkipVerify),
Base: defaultTransport(config.GitLab.SkipVerify),
},
}
return client

@ -15,8 +15,8 @@
package main
import (
"github.com/drone/drone/cmd/drone-server/config"
"github.com/drone/drone/service/redisdb"
"git.awesome-for.me/liuzhiguo/drone/cmd/drone-server/config"
"git.awesome-for.me/liuzhiguo/drone/service/redisdb"
"github.com/google/wire"
)

@ -15,9 +15,9 @@
package main
import (
"github.com/drone/drone/cmd/drone-server/config"
"github.com/drone/drone/core"
"github.com/drone/drone/service/license"
"git.awesome-for.me/liuzhiguo/drone/cmd/drone-server/config"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/service/license"
"github.com/drone/go-scm/scm"
"github.com/google/wire"

@ -15,7 +15,7 @@
package main
import (
"github.com/drone/drone/cmd/drone-server/config"
"git.awesome-for.me/liuzhiguo/drone/cmd/drone-server/config"
"github.com/drone/go-login/login"
"github.com/drone/go-login/login/bitbucket"
"github.com/drone/go-login/login/gitea"

@ -15,15 +15,15 @@
package main
import (
spec "github.com/drone/drone/cmd/drone-server/config"
"github.com/drone/drone/core"
"github.com/drone/drone/plugin/admission"
"github.com/drone/drone/plugin/config"
"github.com/drone/drone/plugin/converter"
"github.com/drone/drone/plugin/registry"
"github.com/drone/drone/plugin/secret"
"github.com/drone/drone/plugin/validator"
"github.com/drone/drone/plugin/webhook"
spec "git.awesome-for.me/liuzhiguo/drone/cmd/drone-server/config"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/plugin/admission"
"git.awesome-for.me/liuzhiguo/drone/plugin/config"
"git.awesome-for.me/liuzhiguo/drone/plugin/converter"
"git.awesome-for.me/liuzhiguo/drone/plugin/registry"
"git.awesome-for.me/liuzhiguo/drone/plugin/secret"
"git.awesome-for.me/liuzhiguo/drone/plugin/validator"
"git.awesome-for.me/liuzhiguo/drone/plugin/webhook"
"github.com/drone/go-scm/scm"
"github.com/google/wire"

@ -15,11 +15,11 @@
package main
import (
"github.com/drone/drone-runtime/engine/docker"
"github.com/drone/drone/cmd/drone-server/config"
"github.com/drone/drone/core"
"github.com/drone/drone/operator/manager"
"github.com/drone/drone/operator/runner"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine/docker"
"git.awesome-for.me/liuzhiguo/drone/cmd/drone-server/config"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/operator/manager"
"git.awesome-for.me/liuzhiguo/drone/operator/runner"
"github.com/google/wire"
"github.com/sirupsen/logrus"

@ -15,9 +15,9 @@
package main
import (
"github.com/drone/drone/core"
"github.com/drone/drone/scheduler/queue"
"github.com/drone/drone/service/redisdb"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/scheduler/queue"
"git.awesome-for.me/liuzhiguo/drone/service/redisdb"
"github.com/google/wire"
)

@ -17,16 +17,16 @@ package main
import (
"net/http"
"github.com/drone/drone/cmd/drone-server/config"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api"
"github.com/drone/drone/handler/health"
"github.com/drone/drone/handler/web"
"github.com/drone/drone/metric"
"github.com/drone/drone/operator/manager"
"github.com/drone/drone/operator/manager/rpc"
"github.com/drone/drone/operator/manager/rpc2"
"github.com/drone/drone/server"
"git.awesome-for.me/liuzhiguo/drone/cmd/drone-server/config"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api"
"git.awesome-for.me/liuzhiguo/drone/handler/health"
"git.awesome-for.me/liuzhiguo/drone/handler/web"
"git.awesome-for.me/liuzhiguo/drone/metric"
"git.awesome-for.me/liuzhiguo/drone/operator/manager"
"git.awesome-for.me/liuzhiguo/drone/operator/manager/rpc"
"git.awesome-for.me/liuzhiguo/drone/operator/manager/rpc2"
"git.awesome-for.me/liuzhiguo/drone/server"
"github.com/google/wire"
"github.com/go-chi/chi"

@ -17,31 +17,31 @@ package main
import (
"time"
"github.com/drone/drone/cmd/drone-server/config"
"github.com/drone/drone/core"
"github.com/drone/drone/livelog"
"github.com/drone/drone/metric/sink"
"github.com/drone/drone/pubsub"
"github.com/drone/drone/service/canceler"
"github.com/drone/drone/service/canceler/reaper"
"github.com/drone/drone/service/commit"
contents "github.com/drone/drone/service/content"
"github.com/drone/drone/service/content/cache"
"github.com/drone/drone/service/hook"
"github.com/drone/drone/service/hook/parser"
"github.com/drone/drone/service/linker"
"github.com/drone/drone/service/netrc"
orgs "github.com/drone/drone/service/org"
"github.com/drone/drone/service/repo"
"github.com/drone/drone/service/status"
"github.com/drone/drone/service/syncer"
"github.com/drone/drone/service/token"
"github.com/drone/drone/service/transfer"
"github.com/drone/drone/service/user"
"github.com/drone/drone/session"
"github.com/drone/drone/trigger"
"github.com/drone/drone/trigger/cron"
"github.com/drone/drone/version"
"git.awesome-for.me/liuzhiguo/drone/cmd/drone-server/config"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/livelog"
"git.awesome-for.me/liuzhiguo/drone/metric/sink"
"git.awesome-for.me/liuzhiguo/drone/pubsub"
"git.awesome-for.me/liuzhiguo/drone/service/canceler"
"git.awesome-for.me/liuzhiguo/drone/service/canceler/reaper"
"git.awesome-for.me/liuzhiguo/drone/service/commit"
contents "git.awesome-for.me/liuzhiguo/drone/service/content"
"git.awesome-for.me/liuzhiguo/drone/service/content/cache"
"git.awesome-for.me/liuzhiguo/drone/service/hook"
"git.awesome-for.me/liuzhiguo/drone/service/hook/parser"
"git.awesome-for.me/liuzhiguo/drone/service/linker"
"git.awesome-for.me/liuzhiguo/drone/service/netrc"
orgs "git.awesome-for.me/liuzhiguo/drone/service/org"
"git.awesome-for.me/liuzhiguo/drone/service/repo"
"git.awesome-for.me/liuzhiguo/drone/service/status"
"git.awesome-for.me/liuzhiguo/drone/service/syncer"
"git.awesome-for.me/liuzhiguo/drone/service/token"
"git.awesome-for.me/liuzhiguo/drone/service/transfer"
"git.awesome-for.me/liuzhiguo/drone/service/user"
"git.awesome-for.me/liuzhiguo/drone/session"
"git.awesome-for.me/liuzhiguo/drone/trigger"
"git.awesome-for.me/liuzhiguo/drone/trigger/cron"
"git.awesome-for.me/liuzhiguo/drone/version"
"github.com/drone/go-scm/scm"
"github.com/google/wire"

@ -15,25 +15,25 @@
package main
import (
"github.com/drone/drone/cmd/drone-server/config"
"github.com/drone/drone/core"
"github.com/drone/drone/metric"
"github.com/drone/drone/store/batch"
"github.com/drone/drone/store/batch2"
"github.com/drone/drone/store/build"
"github.com/drone/drone/store/card"
"github.com/drone/drone/store/cron"
"github.com/drone/drone/store/logs"
"github.com/drone/drone/store/perm"
"github.com/drone/drone/store/repos"
"github.com/drone/drone/store/secret"
"github.com/drone/drone/store/secret/global"
"github.com/drone/drone/store/shared/db"
"github.com/drone/drone/store/shared/encrypt"
"github.com/drone/drone/store/stage"
"github.com/drone/drone/store/step"
"github.com/drone/drone/store/template"
"github.com/drone/drone/store/user"
"git.awesome-for.me/liuzhiguo/drone/cmd/drone-server/config"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/metric"
"git.awesome-for.me/liuzhiguo/drone/store/batch"
"git.awesome-for.me/liuzhiguo/drone/store/batch2"
"git.awesome-for.me/liuzhiguo/drone/store/build"
"git.awesome-for.me/liuzhiguo/drone/store/card"
"git.awesome-for.me/liuzhiguo/drone/store/cron"
"git.awesome-for.me/liuzhiguo/drone/store/logs"
"git.awesome-for.me/liuzhiguo/drone/store/perm"
"git.awesome-for.me/liuzhiguo/drone/store/repos"
"git.awesome-for.me/liuzhiguo/drone/store/secret"
"git.awesome-for.me/liuzhiguo/drone/store/secret/global"
"git.awesome-for.me/liuzhiguo/drone/store/shared/db"
"git.awesome-for.me/liuzhiguo/drone/store/shared/encrypt"
"git.awesome-for.me/liuzhiguo/drone/store/stage"
"git.awesome-for.me/liuzhiguo/drone/store/step"
"git.awesome-for.me/liuzhiguo/drone/store/template"
"git.awesome-for.me/liuzhiguo/drone/store/user"
"github.com/google/wire"
"github.com/sirupsen/logrus"

@ -19,14 +19,14 @@ import (
"flag"
"fmt"
"github.com/drone/drone/cmd/drone-server/bootstrap"
"github.com/drone/drone/cmd/drone-server/config"
"github.com/drone/drone/core"
"github.com/drone/drone/metric/sink"
"github.com/drone/drone/operator/runner"
"github.com/drone/drone/service/canceler/reaper"
"github.com/drone/drone/server"
"github.com/drone/drone/trigger/cron"
"git.awesome-for.me/liuzhiguo/drone/cmd/drone-server/bootstrap"
"git.awesome-for.me/liuzhiguo/drone/cmd/drone-server/config"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/metric/sink"
"git.awesome-for.me/liuzhiguo/drone/operator/runner"
"git.awesome-for.me/liuzhiguo/drone/server"
"git.awesome-for.me/liuzhiguo/drone/service/canceler/reaper"
"git.awesome-for.me/liuzhiguo/drone/trigger/cron"
"github.com/drone/signal"
"github.com/joho/godotenv"

@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
import (
"github.com/drone/drone/cmd/drone-server/config"
"git.awesome-for.me/liuzhiguo/drone/cmd/drone-server/config"
"github.com/google/wire"
)

@ -6,29 +6,29 @@
package main
import (
"github.com/drone/drone/cmd/drone-server/config"
"github.com/drone/drone/handler/api"
"github.com/drone/drone/handler/web"
"github.com/drone/drone/livelog"
"github.com/drone/drone/operator/manager"
"github.com/drone/drone/pubsub"
"github.com/drone/drone/service/canceler"
"github.com/drone/drone/service/commit"
"github.com/drone/drone/service/hook/parser"
"github.com/drone/drone/service/license"
"github.com/drone/drone/service/linker"
"github.com/drone/drone/service/token"
"github.com/drone/drone/service/transfer"
"github.com/drone/drone/service/user"
"github.com/drone/drone/store/card"
"github.com/drone/drone/store/cron"
"github.com/drone/drone/store/perm"
"github.com/drone/drone/store/secret"
"github.com/drone/drone/store/secret/global"
"github.com/drone/drone/store/step"
"github.com/drone/drone/store/template"
"github.com/drone/drone/trigger"
cron2 "github.com/drone/drone/trigger/cron"
"git.awesome-for.me/liuzhiguo/drone/cmd/drone-server/config"
"git.awesome-for.me/liuzhiguo/drone/handler/api"
"git.awesome-for.me/liuzhiguo/drone/handler/web"
"git.awesome-for.me/liuzhiguo/drone/livelog"
"git.awesome-for.me/liuzhiguo/drone/operator/manager"
"git.awesome-for.me/liuzhiguo/drone/pubsub"
"git.awesome-for.me/liuzhiguo/drone/service/canceler"
"git.awesome-for.me/liuzhiguo/drone/service/commit"
"git.awesome-for.me/liuzhiguo/drone/service/hook/parser"
"git.awesome-for.me/liuzhiguo/drone/service/license"
"git.awesome-for.me/liuzhiguo/drone/service/linker"
"git.awesome-for.me/liuzhiguo/drone/service/token"
"git.awesome-for.me/liuzhiguo/drone/service/transfer"
"git.awesome-for.me/liuzhiguo/drone/service/user"
"git.awesome-for.me/liuzhiguo/drone/store/card"
"git.awesome-for.me/liuzhiguo/drone/store/cron"
"git.awesome-for.me/liuzhiguo/drone/store/perm"
"git.awesome-for.me/liuzhiguo/drone/store/secret"
"git.awesome-for.me/liuzhiguo/drone/store/secret/global"
"git.awesome-for.me/liuzhiguo/drone/store/step"
"git.awesome-for.me/liuzhiguo/drone/store/template"
"git.awesome-for.me/liuzhiguo/drone/trigger"
cron2 "git.awesome-for.me/liuzhiguo/drone/trigger/cron"
)
import (

@ -17,7 +17,7 @@ package core
import (
"context"
"github.com/drone/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
)
var (

Binary file not shown.

@ -1,8 +1,10 @@
module github.com/drone/drone
module git.awesome-for.me/liuzhiguo/drone
replace github.com/docker/docker => github.com/docker/engine v17.12.0-ce-rc1.0.20200309214505-aa6a9891b09c+incompatible
require (
git.awesome-for.me/liuzhiguo/drone-go v1.7.2
git.awesome-for.me/liuzhiguo/drone-runtime v1.1.1
github.com/99designs/httpsignatures-go v0.0.0-20170731043157-88528bf4ca7e
github.com/Azure/azure-storage-blob-go v0.7.0
github.com/Azure/go-autorest/autorest/adal v0.8.3 // indirect
@ -12,8 +14,6 @@ require (
github.com/coreos/go-semver v0.2.0
github.com/dchest/authcookie v0.0.0-20120917135355-fbdef6e99866
github.com/dchest/uniuri v0.0.0-20160212164326-8902c56451e9
github.com/drone/drone-go v1.7.2-0.20220308165842-f9e4fe31c2af
github.com/drone/drone-runtime v1.1.1-0.20200623162453-61e33e2cab5d
github.com/drone/drone-ui v2.11.5+incompatible
github.com/drone/drone-yaml v1.2.4-0.20220204000225-01fb17858c9b
github.com/drone/envsubst v1.0.3-0.20200709231038-aa43e1c1a629

@ -1,5 +1,10 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
docker.io/go-docker v1.0.0/go.mod h1:7tiAn5a0LFmjbPDbyTPOaTTOuG1ZRNXdPA6RvKY+fpY=
git.awesome-for.me/liuzhiguo/drone-go v1.7.2 h1:2M1s+K3g0STdBKcShHutjKo7PcsAuq1Y69o7kGb+i38=
git.awesome-for.me/liuzhiguo/drone-go v1.7.2/go.mod h1:hWG3cjzzHjMoxFs7GR0DzqKER2cUCRW4ClHdcs/SHeM=
git.awesome-for.me/liuzhiguo/drone-runtime v1.1.1 h1:lOrNqBe8YdXE/iHSB7zitM1n0adLf4+m/3/JueiyQvo=
git.awesome-for.me/liuzhiguo/drone-runtime v1.1.1/go.mod h1:jav/R/Sufv4m3NwgdroBPSNXOroRB8GWHT94VIKesrM=
git.awesome-for.me/liuzhiguo/signal v1.0.1/go.mod h1:Vc38edEqTrY9+u6G37itWMxCWUuwuUn1fFKl2HBBvd8=
github.com/99designs/httpsignatures-go v0.0.0-20170731043157-88528bf4ca7e h1:rl2Aq4ZODqTDkeSqQBy+fzpZPamacO1Srp8zq7jf2Sc=
github.com/99designs/httpsignatures-go v0.0.0-20170731043157-88528bf4ca7e/go.mod h1:Xa6lInWHNQnuWoF0YPSsx+INFA9qk7/7pTjwb3PInkY=
github.com/Azure/azure-pipeline-go v0.2.1 h1:OLBdZJ3yvOn2MezlWvbrBMTEUQC72zAftRZOMdj5HYo=
@ -73,11 +78,8 @@ github.com/docker/go-connections v0.3.0 h1:3lOnM9cSzgGwx8VfK/NGOW5fLQ0GjIlCkaktF
github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
github.com/docker/go-units v0.3.3 h1:Xk8S3Xj5sLGlG5g67hJmYMmUgXv5N4PhkjJHHqrwnTk=
github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/drone/drone-go v1.7.2-0.20220308165842-f9e4fe31c2af h1:I+xfWPZLMaskFvfFO5fEJ6tVI1Q9bWR9tuORZeaCTPo=
github.com/drone/drone-go v1.7.2-0.20220308165842-f9e4fe31c2af/go.mod h1:fxCf9jAnXDZV1yDr0ckTuWd1intvcQwfJmTRpTZ1mXg=
github.com/drone/drone-runtime v1.0.7-0.20190729202838-87c84080f4a1 h1:9xaZM1rM1/0FqFEijgnFcvWd0vRqOw+iO1YR7pBgPCw=
github.com/drone/drone-runtime v1.0.7-0.20190729202838-87c84080f4a1/go.mod h1:+osgwGADc/nyl40J0fdsf8Z09bgcBZXvXXnLOY48zYs=
github.com/drone/drone-runtime v1.1.1-0.20200623162453-61e33e2cab5d h1:P5HI/Y9hARTZ3F3EKs0kYijhjXZWQRQHYn1neTi0pWM=
github.com/drone/drone-runtime v1.1.1-0.20200623162453-61e33e2cab5d/go.mod h1:4/2QToW5+HGD0y1sTw7X35W1f7YINS14UfDY4isggT8=
github.com/drone/drone-ui v2.11.5+incompatible h1:e+OmpCuxfCS1V8Szx+4OzCMXiM80ZJkV05/BuY8pVv8=
github.com/drone/drone-ui v2.11.5+incompatible/go.mod h1:NBtVWW7NNJpD9+huMD/5TAE1db2nrEh0i35/9Rf1MPI=
github.com/drone/drone-yaml v1.2.4-0.20220204000225-01fb17858c9b h1:NU8JZ2Py6dLa5kktIvcsQ5sokdDbvjL8GUOYEU53Wfk=

@ -17,10 +17,10 @@ package acl
import (
"net/http"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/logger"
)
// AuthorizeUser returns an http.Handler middleware that authorizes only

@ -10,8 +10,8 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"github.com/sirupsen/logrus"
)

@ -17,11 +17,11 @@ package acl
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
"github.com/sirupsen/logrus"

@ -12,9 +12,9 @@ import (
"testing"
"time"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"github.com/google/go-cmp/cmp"
"github.com/go-chi/chi"

@ -17,11 +17,11 @@ package acl
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
)

@ -10,8 +10,8 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -18,11 +18,11 @@ import (
"net/http"
"time"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
"github.com/sirupsen/logrus"

@ -12,9 +12,9 @@ import (
"testing"
"time"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/mock"
"github.com/drone/drone/core"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -18,34 +18,34 @@ import (
"net/http"
"os"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/acl"
"github.com/drone/drone/handler/api/auth"
"github.com/drone/drone/handler/api/badge"
globalbuilds "github.com/drone/drone/handler/api/builds"
"github.com/drone/drone/handler/api/card"
"github.com/drone/drone/handler/api/ccmenu"
"github.com/drone/drone/handler/api/events"
"github.com/drone/drone/handler/api/queue"
"github.com/drone/drone/handler/api/repos"
"github.com/drone/drone/handler/api/repos/builds"
"github.com/drone/drone/handler/api/repos/builds/branches"
"github.com/drone/drone/handler/api/repos/builds/deploys"
"github.com/drone/drone/handler/api/repos/builds/logs"
"github.com/drone/drone/handler/api/repos/builds/pulls"
"github.com/drone/drone/handler/api/repos/builds/stages"
"github.com/drone/drone/handler/api/repos/collabs"
"github.com/drone/drone/handler/api/repos/crons"
"github.com/drone/drone/handler/api/repos/encrypt"
"github.com/drone/drone/handler/api/repos/secrets"
"github.com/drone/drone/handler/api/repos/sign"
globalsecrets "github.com/drone/drone/handler/api/secrets"
"github.com/drone/drone/handler/api/system"
"github.com/drone/drone/handler/api/template"
"github.com/drone/drone/handler/api/user"
"github.com/drone/drone/handler/api/user/remote"
"github.com/drone/drone/handler/api/users"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/acl"
"git.awesome-for.me/liuzhiguo/drone/handler/api/auth"
"git.awesome-for.me/liuzhiguo/drone/handler/api/badge"
globalbuilds "git.awesome-for.me/liuzhiguo/drone/handler/api/builds"
"git.awesome-for.me/liuzhiguo/drone/handler/api/card"
"git.awesome-for.me/liuzhiguo/drone/handler/api/ccmenu"
"git.awesome-for.me/liuzhiguo/drone/handler/api/events"
"git.awesome-for.me/liuzhiguo/drone/handler/api/queue"
"git.awesome-for.me/liuzhiguo/drone/handler/api/repos"
"git.awesome-for.me/liuzhiguo/drone/handler/api/repos/builds"
"git.awesome-for.me/liuzhiguo/drone/handler/api/repos/builds/branches"
"git.awesome-for.me/liuzhiguo/drone/handler/api/repos/builds/deploys"
"git.awesome-for.me/liuzhiguo/drone/handler/api/repos/builds/logs"
"git.awesome-for.me/liuzhiguo/drone/handler/api/repos/builds/pulls"
"git.awesome-for.me/liuzhiguo/drone/handler/api/repos/builds/stages"
"git.awesome-for.me/liuzhiguo/drone/handler/api/repos/collabs"
"git.awesome-for.me/liuzhiguo/drone/handler/api/repos/crons"
"git.awesome-for.me/liuzhiguo/drone/handler/api/repos/encrypt"
"git.awesome-for.me/liuzhiguo/drone/handler/api/repos/secrets"
"git.awesome-for.me/liuzhiguo/drone/handler/api/repos/sign"
globalsecrets "git.awesome-for.me/liuzhiguo/drone/handler/api/secrets"
"git.awesome-for.me/liuzhiguo/drone/handler/api/system"
"git.awesome-for.me/liuzhiguo/drone/handler/api/template"
"git.awesome-for.me/liuzhiguo/drone/handler/api/user"
"git.awesome-for.me/liuzhiguo/drone/handler/api/user/remote"
"git.awesome-for.me/liuzhiguo/drone/handler/api/users"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
"github.com/go-chi/chi/middleware"

@ -17,9 +17,9 @@ package auth
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/logger"
)
// HandleAuthentication returns an http.HandlerFunc middleware that authenticates

@ -11,9 +11,9 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/sirupsen/logrus"
"github.com/golang/mock/gomock"

@ -20,7 +20,7 @@ import (
"net/http"
"time"
"github.com/drone/drone/core"
"git.awesome-for.me/liuzhiguo/drone/core"
"github.com/go-chi/chi"
)

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package badge
@ -12,8 +13,8 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/core"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package builds
@ -9,9 +10,9 @@ package builds
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
)
// HandleIncomplete returns an http.HandlerFunc that writes a

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build oss
// +build oss
package builds
@ -19,8 +20,8 @@ package builds
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
)
var notImplemented = func(w http.ResponseWriter, r *http.Request) {

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package builds
@ -12,9 +13,9 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/golang/mock/gomock"
"github.com/google/go-cmp/cmp"

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package card
@ -13,8 +14,8 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"github.com/go-chi/chi"
)

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package card
@ -14,9 +15,9 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package card
@ -9,8 +10,8 @@ package card
import (
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"net/http"

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package card
@ -15,8 +16,8 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package card
@ -11,8 +12,8 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"github.com/go-chi/chi"
)

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package card
@ -15,8 +16,8 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build oss
// +build oss
package card
@ -19,8 +20,8 @@ package card
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
)
var notImplemented = func(w http.ResponseWriter, r *http.Request) {

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package ccmenu
@ -11,7 +12,7 @@ import (
"fmt"
"time"
"github.com/drone/drone/core"
"git.awesome-for.me/liuzhiguo/drone/core"
)
type CCProjects struct {

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package ccmenu
@ -10,7 +11,7 @@ import (
"encoding/xml"
"testing"
"github.com/drone/drone/core"
"git.awesome-for.me/liuzhiguo/drone/core"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
)

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package ccmenu
@ -11,7 +12,7 @@ import (
"fmt"
"net/http"
"github.com/drone/drone/core"
"git.awesome-for.me/liuzhiguo/drone/core"
"github.com/go-chi/chi"
)

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build oss
// +build oss
package ccmenu
@ -19,8 +20,8 @@ package ccmenu
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
)
// Handler returns a no-op http.HandlerFunc.

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package ccmenu
@ -13,8 +14,8 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/core"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -20,9 +20,9 @@ import (
"net/http"
"time"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/sirupsen/logrus"
"github.com/go-chi/chi"

@ -20,9 +20,9 @@ import (
"net/http"
"time"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/logger"
)
// HandleGlobal creates an http.HandlerFunc that streams builds events

@ -22,8 +22,8 @@ import (
"strconv"
"time"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"github.com/go-chi/chi"
)

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package queue
@ -9,9 +10,9 @@ package queue
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
)
// HandleItems returns an http.HandlerFunc that writes a

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build oss
// +build oss
package queue
@ -19,8 +20,8 @@ package queue
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
)
var notImplemented = func(w http.ResponseWriter, r *http.Request) {

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package queue
@ -9,9 +10,9 @@ package queue
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
)
// HandlePause returns an http.HandlerFunc that processes

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package queue
@ -9,9 +10,9 @@ package queue
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
)
// HandleResume returns an http.HandlerFunc that processes

@ -21,7 +21,7 @@ import (
"os"
"strconv"
"github.com/drone/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
)
// indent the json-encoded API responses

@ -10,7 +10,7 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
)
func TestWriteError(t *testing.T) {

@ -18,9 +18,9 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
)
// HandleAll returns an http.HandlerFunc that processes http

@ -17,9 +17,9 @@ package branches
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
)

@ -17,9 +17,9 @@ package branches
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
)

@ -20,9 +20,9 @@ import (
"strconv"
"time"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
)

@ -9,8 +9,8 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/core"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -17,9 +17,9 @@ package builds
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"github.com/drone/go-scm/scm"
"github.com/go-chi/chi"

@ -11,9 +11,9 @@ import (
"net/url"
"testing"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -17,9 +17,9 @@ package deploys
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
)

@ -17,9 +17,9 @@ package deploys
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
)

@ -18,8 +18,8 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"github.com/go-chi/chi"
)

@ -10,8 +10,8 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -18,8 +18,8 @@ import (
"fmt"
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"github.com/go-chi/chi"
)

@ -10,8 +10,8 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/mock"
"github.com/drone/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -19,9 +19,9 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
)

@ -11,9 +11,9 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -18,8 +18,8 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"github.com/go-chi/chi"
)

@ -19,8 +19,8 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"github.com/go-chi/chi"
)

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package builds
@ -10,9 +11,9 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"github.com/go-chi/chi"
)

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build oss
// +build oss
package builds
@ -19,8 +20,8 @@ package builds
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
)
var notImplemented = func(w http.ResponseWriter, r *http.Request) {

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package builds
@ -12,10 +13,10 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -18,9 +18,9 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
)

@ -17,9 +17,9 @@ package pulls
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
)

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package builds
@ -10,8 +11,8 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"github.com/go-chi/chi"
)

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build oss
// +build oss
package builds
@ -19,7 +20,7 @@ package builds
import (
"net/http"
"github.com/drone/drone/core"
"git.awesome-for.me/liuzhiguo/drone/core"
)
// HandlePurge returns a non-op http.HandlerFunc.

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package builds
@ -13,9 +14,9 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"
"github.com/google/go-cmp/cmp"

@ -18,9 +18,9 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"github.com/go-chi/chi"
)

@ -10,10 +10,10 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/mock"
"github.com/drone/drone/core"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package builds
@ -10,9 +11,9 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"github.com/go-chi/chi"
)

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build oss
// +build oss
package builds
@ -19,8 +20,8 @@ package builds
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
)
var rollbackNotImplemented = func(w http.ResponseWriter, r *http.Request) {

@ -19,8 +19,8 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"github.com/go-chi/chi"
)

@ -12,9 +12,9 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -19,8 +19,8 @@ import (
"net/http"
"strconv"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"github.com/go-chi/chi"
)

@ -11,9 +11,9 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/mock"
"github.com/drone/drone/core"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -17,10 +17,10 @@ package repos
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
)

@ -10,10 +10,10 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/handler/api/request"
"github.com/drone/drone/mock"
"github.com/drone/drone/core"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/handler/api/request"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/go-chi/chi"
"github.com/golang/mock/gomock"

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package collabs
@ -9,9 +10,9 @@ package collabs
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
)

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package collabs
@ -14,9 +15,9 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/errors"
"github.com/drone/drone/mock"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/errors"
"git.awesome-for.me/liuzhiguo/drone/mock"
"github.com/sirupsen/logrus"
"github.com/go-chi/chi"

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package collabs
@ -9,9 +10,9 @@ package collabs
import (
"net/http"
"github.com/drone/drone/core"
"github.com/drone/drone/handler/api/render"
"github.com/drone/drone/logger"
"git.awesome-for.me/liuzhiguo/drone/core"
"git.awesome-for.me/liuzhiguo/drone/handler/api/render"
"git.awesome-for.me/liuzhiguo/drone/logger"
"github.com/go-chi/chi"
)

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save