Skip to content

Commit

Permalink
Make the CheckExtendedSummaryEntitled API public (#1292)
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalbe4 authored Nov 4, 2024
1 parent 5f175e0 commit d71ae0b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions artifactory/utils/commandsummary/markdownConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package commandsummary
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"

"github.com/jfrog/jfrog-client-go/http/httpclient"
clientUtils "github.com/jfrog/jfrog-client-go/utils"
"github.com/jfrog/jfrog-client-go/utils/errorutils"
"github.com/jfrog/jfrog-client-go/utils/io/httputils"
"net/http"
"net/url"
"strings"
)

// Static struct to hold the Markdown configuration values
Expand Down Expand Up @@ -62,7 +63,7 @@ func (mg *MarkdownConfig) SetScanResultsMapping(resultsMap map[string]ScanResult

// Initializes the command summary values that effect Markdown generation
func InitMarkdownGenerationValues(serverUrl string, platformMajorVersion int) (err error) {
entitled, err := checkExtendedSummaryEntitled(serverUrl)
entitled, err := CheckExtendedSummaryEntitled(serverUrl)
if err != nil {
return
}
Expand All @@ -72,7 +73,7 @@ func InitMarkdownGenerationValues(serverUrl string, platformMajorVersion int) (e
return
}

func checkExtendedSummaryEntitled(serverUrl string) (bool, error) {
func CheckExtendedSummaryEntitled(serverUrl string) (bool, error) {
// Parse and validate the URL
parsedUrl, err := url.Parse(serverUrl)
if err != nil || !parsedUrl.IsAbs() {
Expand Down

0 comments on commit d71ae0b

Please sign in to comment.