This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch release-v0.19
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.19 by this push:
     new acf2822e8 Cherrypick pagerduty fix #6116 in release v0.19 (#6129)
acf2822e8 is described below

commit acf2822e86cb8a2a7d7de8b5df8619ef84d45c4e
Author: Marco-De-Stefani <[email protected]>
AuthorDate: Thu Sep 21 04:21:54 2023 +0200

    Cherrypick pagerduty fix #6116 in release v0.19 (#6129)
    
    * fixing issue 6112
    
    * fix typo
    
    * fix PR comment
---
 backend/Makefile                       | 2 +-
 backend/plugins/pagerduty/impl/impl.go | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/backend/Makefile b/backend/Makefile
index cccecdd88..b86c95348 100644
--- a/backend/Makefile
+++ b/backend/Makefile
@@ -26,7 +26,7 @@ PYTHON_DIR ?= "./python"
 go-dep:
        go install github.com/vektra/mockery/[email protected]
        go install github.com/swaggo/swag/cmd/[email protected]
-       go install github.com/golangci/golangci-lint/cmd/[email protected]
+       go install github.com/golangci/golangci-lint/cmd/[email protected]
        go install github.com/atombender/go-jsonschema/cmd/gojsonschema@latest
 
 python-dep:
diff --git a/backend/plugins/pagerduty/impl/impl.go 
b/backend/plugins/pagerduty/impl/impl.go
index f2293d33a..33d299cc0 100644
--- a/backend/plugins/pagerduty/impl/impl.go
+++ b/backend/plugins/pagerduty/impl/impl.go
@@ -115,9 +115,9 @@ func (p PagerDuty) PrepareTaskData(taskCtx 
plugin.TaskContext, options map[strin
                }
                timeAfter = &convertedTime
        }
-       client, err := helper.NewApiClient(taskCtx.GetContext(), 
connection.Endpoint, map[string]string{
-               "Authorization": fmt.Sprintf("Token %s", connection.Token),
-       }, 0, connection.Proxy, taskCtx)
+
+       client, err := helper.NewApiClientFromConnection(taskCtx.GetContext(), 
taskCtx, connection)
+
        if err != nil {
                return nil, err
        }

Reply via email to