Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reading files from repo that should not be included #99

Merged
merged 3 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Ref: https://keepachangelog.com/en/1.0.0/

# Changelog

- (fix): [fse-906] read the expected files when trying to read tokens

## Unreleased

- (fix) [fse-900] Fix failing convertCoin and convertERC20 endpoints
Expand Down
2 changes: 1 addition & 1 deletion internal/v1/requester/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func GetJsonsFromFolder(url string, folder string) ([]File, error) {
for _, t := range m.Tree {
if t.Mode == "100644" {
// Is file
if strings.Contains(t.Path, folder) {
if strings.HasPrefix(t.Path, folder+"/") {
fileResponse, err := QueryGithubWithCache(t.URL)
if err != nil {
return []File{}, err
Expand Down
Loading