Skip to content

Commit

Permalink
moved diffurl back into main
Browse files Browse the repository at this point in the history
  • Loading branch information
folarin oyenuga committed Jun 19, 2024
1 parent 7d41c9d commit 129d7ee
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cmd/annotations-checker/validate/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package validate
import (
"errors"
"io"
"log"
"net/http"
"regexp"
"strings"
Expand All @@ -16,14 +15,7 @@ type Annotations struct {
TeamName string
}

func Parse(client *github.Client, org, diffUrl string) (*Annotations, error) {
// TODO: check that the diff is a add or a update not deletion
diff, getDiffErr := GetDiff(diffUrl)
log.Println("Diff URL here", diffUrl)
if getDiffErr != nil {
return nil, getDiffErr
}

func Parse(client *github.Client, org, diff string) (*Annotations, error) {
isNs := isNamespace(diff)

if !isNs {
Expand Down

0 comments on commit 129d7ee

Please sign in to comment.