Skip to content

Commit

Permalink
Remove remote URL from artifact because it is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
peti2001 committed Mar 26, 2021
1 parent d9199c1 commit 01b4823
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ test:
build: test
export CGO_ENABLED=0 export GOOS=linux && go build -a -tags netgo -ldflags '-w' -o repo_info_extractor_linux
export CGO_ENABLED=0 export GOOS=darwin && go build -a -tags netgo -ldflags '-w' -o repo_info_extractor_osx
export CGO_ENABLED=0 export GOOS=windows && go build -a -tags netgo -ldflags '-w' -o repo_info_extractor_windows
export CGO_ENABLED=0 export GOOS=windows && go build -a -tags netgo -ldflags '-w' -o repo_info_extractor_windows.exe
export GOOS=$GOOS_OLD
14 changes: 6 additions & 8 deletions extractor/extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,9 @@ func (r *RepoExtractor) initRepo() error {
repoName = r.GetRepoName(remoteOrigin)

r.repo = &repo{
RepoName: repoName,
Emails: []string{},
SuggestedEmails: []string{}, // TODO implement
PrimaryRemoteURL: remoteOrigin,
RepoName: repoName,
Emails: []string{},
SuggestedEmails: []string{}, // TODO implement
}
return nil
}
Expand Down Expand Up @@ -615,10 +614,9 @@ func (r *RepoExtractor) upload() error {
}

type repo struct {
RepoName string `json:"repo"`
Emails []string `json:"emails"`
SuggestedEmails []string `json:"suggestedEmails"`
PrimaryRemoteURL string `json:"primaryRemoteUrl"`
RepoName string `json:"repo"`
Emails []string `json:"emails"`
SuggestedEmails []string `json:"suggestedEmails"`
}

type req struct {
Expand Down

0 comments on commit 01b4823

Please sign in to comment.