From 71f527833a69e1ed77be0cc895318ca53276b429 Mon Sep 17 00:00:00 2001 From: Gary Henderson <26419401+Gary-H9@users.noreply.github.com> Date: Mon, 17 Jan 2022 11:29:26 +0000 Subject: [PATCH 1/3] :wrench: Add GitHubUrl to JSON struct --- datasource.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datasource.go b/datasource.go index f4d3d4dc..cd4cd2c8 100644 --- a/datasource.go +++ b/datasource.go @@ -73,6 +73,9 @@ type JSONData struct { TLSSkipVerify bool `json:"tlsSkipVerify,omitempty"` httpHeaderNames []string + // Used by Github + GitHubUrl string `json:"githubUrl,omitempty"` + // Used by Graphite GraphiteVersion string `json:"graphiteVersion,omitempty"` From d75860cf89e91a35a5205fd916e4d316ed61be26 Mon Sep 17 00:00:00 2001 From: Gary Henderson <26419401+Gary-H9@users.noreply.github.com> Date: Mon, 17 Jan 2022 11:30:41 +0000 Subject: [PATCH 2/3] :wrench: Add AccessToken to SecureJSONData struct --- datasource.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datasource.go b/datasource.go index cd4cd2c8..971b51ce 100644 --- a/datasource.go +++ b/datasource.go @@ -212,6 +212,9 @@ type SecureJSONData struct { // Used by Prometheus and Elasticsearch SigV4AccessKey string `json:"sigV4AccessKey,omitempty"` SigV4SecretKey string `json:"sigV4SecretKey,omitempty"` + + // Used by GitHub + AccessToken string `json:"accessToken,omitempty"` } // Required to avoid recursion during unmarshal From bd9579e3321a4b08e227e4f6dda3f58d2b9bbbb2 Mon Sep 17 00:00:00 2001 From: Gary Henderson <26419401+Gary-H9@users.noreply.github.com> Date: Mon, 17 Jan 2022 11:37:35 +0000 Subject: [PATCH 3/3] :recycle: Update style of GitHubUrl to GitHubURL --- datasource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datasource.go b/datasource.go index 971b51ce..df0433df 100644 --- a/datasource.go +++ b/datasource.go @@ -74,7 +74,7 @@ type JSONData struct { httpHeaderNames []string // Used by Github - GitHubUrl string `json:"githubUrl,omitempty"` + GitHubURL string `json:"githubUrl,omitempty"` // Used by Graphite GraphiteVersion string `json:"graphiteVersion,omitempty"`