Commit Graph

122 Commits

Author SHA1 Message Date
Don
156b01377d Move commit message parsing to drone library 2020-09-14 13:28:34 -07:00
Don
0ce4bf8655
Add CalVer support (#18) 2020-09-11 06:36:36 -07:00
Don
5113109fd1
Add String() implementations for some structs (#20) 2020-09-11 06:36:07 -07:00
Don
be2c206c20
Add missing fields for Build (#19)
Both DRONE_BUILD_LINK and DRONE_DEPLOY_ID were missing from the list of environment
variables in the drone-runner library.
2020-09-11 06:35:41 -07:00
Don
1f4e8862b8 Remove obsolete fields from Commit 2020-09-10 14:16:39 -07:00
Don
34686a8639 Fix documentation typo 2020-09-10 13:19:39 -07:00
Don
1304e6261a Format code 2020-09-10 13:06:29 -07:00
Don
c5ec06ee53 Split Author and Message from Commit
The drone-slack plugin has structs for Author and Message. Since this is the most
popular notification plugin it makes sense to follow along with it.
2020-09-10 11:58:01 -07:00
Don
a8409c1215 Remove deprecated field usage 2020-09-10 11:17:05 -07:00
Renovate Bot
d58d602210 Update golang Docker tag to v1.15 2020-09-10 11:17:05 -07:00
Thomas Boerger
29db00764f
Merge pull request #15 from drone-plugins/exitmessagef
Add errors.ExitMessagef
2020-06-01 22:37:37 +02:00
Don
e4701dca7e Add errors.ExitMessagef 2020-06-01 12:40:28 -07:00
Thomas Boerger
d945fc6a48
Merge pull request #14 from drone-plugins/renovate/github.com-sirupsen-logrus-1.x
Update module sirupsen/logrus to v1.6.0
2020-05-18 09:27:18 +02:00
Renovate Bot
d5deba5115
Update module sirupsen/logrus to v1.6.0 2020-05-02 13:30:46 +00:00
renovate[bot]
5a0679f63b
Update module sirupsen/logrus to v1.5.0 (#13)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-24 08:58:27 -07:00
Thomas Boerger
2fa2b198ab
Merge pull request #12 from drone-plugins/renovate/github.com-urfave-cli-v2-2.x
Update module urfave/cli/v2 to v2.2.0
2020-03-12 10:53:20 +01:00
Renovate Bot
acef46d661
Update module urfave/cli/v2 to v2.2.0 2020-03-10 22:28:31 +00:00
Thomas Boerger
30ce1c10b2
Merge pull request #11 from drone-plugins/renovate/docker-golang-1.x
Update golang Docker tag to v1.14
2020-02-26 09:42:15 +01:00
Renovate Bot
a8f5728aa4
Update golang Docker tag to v1.14 2020-02-26 00:48:00 +00:00
Thomas Boerger
243861c706
Merge pull request #10 from drone-plugins/errors-pkg
Add errors package for exit code handling
2020-01-22 11:49:15 +01:00
Thomas Boerger
5f7190189d
Add errors package for exit code handling
To get a better exit code handling including logrus logging I have
defined a custom errors package which uses logrus to log error messages.
2020-01-22 11:46:49 +01:00
Thomas Boerger
7d346ea6f4
Merge pull request #9 from drone-plugins/better-separation
Better separation of network, logging and pipeline
2020-01-20 23:05:43 +01:00
Thomas Boerger
c46cfdde19
Better separation of network, logging and pipeline
I have reverted some last changes to get logging and network extraction
from context separated from the pipeline again as it has been before.
Feels much better to have it separated within the generated plugins.
2020-01-20 22:58:54 +01:00
renovate[bot]
ffc6705536 Update module urfave/cli/v2 to v2.1.1 (#8)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-03 12:49:21 -08:00
Thomas Boerger
f1d2fec0db
Merge pull request #7 from drone-plugins/restructure
Restructure the code accross more files
2019-12-21 23:36:02 +01:00
Thomas Boerger
54216f2c6a
Add description and badges to readme 2019-12-21 22:01:33 +01:00
Thomas Boerger
a20f13fdb0
Restructure the code accross more files
I have split the code into various files and beside that I have also
used more flat package structure. I have removed the whole constants for
flag names and environment variables, since nobody got to write these
flags manually anyway as all these variables are assigned to structs
all can benefit form code completion while this lib stays more readable.

Signed-off-by: Thomas Boerger <thomas@webhippie.de>
2019-12-21 21:55:01 +01:00
Don
b771a2a224 Expose whether SSL verification is skipped 2019-12-18 15:37:07 -08:00
renovate[bot]
8fb8284d71 chore(deps): add renovate.json (#2) 2019-12-17 12:54:59 -08:00
Thomas Boerger
1735ee431c
Merge pull request #6 from appleboy/cli
chore: upgrade urfave/cli to v2 version
2019-12-17 21:15:53 +01:00
Bo-Yi Wu
d1409d8531 chore: upgrade urfave/cli to v2 version 2019-11-23 11:56:16 +08:00
Don
a8475a3999 Add env var for log level 2019-10-29 15:16:36 -07:00
Don
049cce9e39 Skip should be regular bool flag 2019-10-29 14:37:15 -07:00
Don
f59267804f Downgrade to go 1.12 2019-10-11 16:56:51 -07:00
Don
60574b42f0 Remove golang 1.13 only value 2019-10-11 16:56:15 -07:00
Don
4914fdebc7 Just expose a single Flags function 2019-10-11 16:21:11 -07:00
Don
0324ae7edb Add SSL skip verify flag 2019-10-11 16:20:53 -07:00
Don
537cb2c489 Dont hard code trace level name 2019-10-11 15:50:57 -07:00
Don
c4d3e25a63 Remove timeout on client otherwise large files won't download 2019-10-11 15:27:55 -07:00
Don
0efd1b3902 Add opinionated Plugin interface 2019-10-11 11:38:22 -07:00
Don
d893f6373c Start fleshing out network helpers 2019-10-11 11:37:45 -07:00
Don
8ff841fbeb Add httptrace facility 2019-10-11 11:36:49 -07:00
Don
b693e76822 Add logging for urfave 2019-10-11 11:34:47 -07:00
Don
5c771365c5 Update urfave package docs 2019-10-10 13:42:02 -07:00
Don
e8e8ddcb17 Simplify exported urfave flags 2019-10-10 13:36:20 -07:00
Don
294ca8c890 Add Pipeline type 2019-10-10 13:05:11 -07:00
Don
99e18f9a03 Move environment variable definitions to an internal lib 2019-10-10 12:59:12 -07:00
Thomas Boerger
6b33d765ac
Merge pull request #1 from drone-plugins/start
Initial fleshing out of lib
2019-09-16 22:45:27 +02:00
Don
2955306f8d Add Transport to urfave 2019-09-09 18:04:09 -07:00
Don
3a8710d533 Cleanup pkg/plugin 2019-09-09 17:48:26 -07:00