Skip to content

bug: speed up the openapi loading #340

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

Merged
merged 1 commit into from
May 13, 2024

Conversation

ibuildthecloud
Copy link
Contributor

No description provided.

@ibuildthecloud ibuildthecloud force-pushed the cache-openapi branch 2 times, most recently from 13acb33 to cb4913c Compare May 10, 2024 21:20
@@ -37,7 +40,14 @@ func getCommitLsRemote(ctx context.Context, account, repo, ref string) (string,
return git.LsRemote(ctx, url, ref)
}

// regexp to match a git commit id
var commitRegexp = regexp.MustCompile("^[a-z0-9]{40}$")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var commitRegexp = regexp.MustCompile("^[a-z0-9]{40}$")
var commitRegexp = regexp.MustCompile("^[a-f0-9]{40}$")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, good catch

@ibuildthecloud ibuildthecloud merged commit f664d57 into gptscript-ai:main May 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants