synapsecns/sanguine

View on GitHub
contrib/git-changes-action/detector/git/ref.go

Summary

Maintainability
A
40 mins
Test Coverage

Function getChangedFilesFromAPI has 6 return statements (exceeds 4 allowed).
Open

func getChangedFilesFromAPI(ctx context.Context, ghContext *actionscore.Context, client *github.Client) (ct tree.Tree, err error) {
    var gpe github.PullRequestEvent
    // TODO: should rap into context
    f, err := os.Open(os.Getenv("GITHUB_EVENT_PATH"))
    if err != nil {
Severity: Major
Found in contrib/git-changes-action/detector/git/ref.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status