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

Arihan/mar 31 summarize and upsert code snippets from reposplitter #57

Conversation

arihanv
Copy link
Contributor

@arihanv arihanv commented Dec 6, 2023

  • Automatically write and upsert short summaries of code chunks

Copy link

vercel bot commented Dec 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
maige ✅ Ready (Inspect) Visit Preview Dec 13, 2023 5:37pm

@tedspare
Copy link
Collaborator

tedspare commented Dec 8, 2023

maige could you review this?

@tedspare
Copy link
Collaborator

tedspare commented Dec 8, 2023

maige test

@tedspare
Copy link
Collaborator

tedspare commented Dec 8, 2023

maige comment

@@ -42,16 +43,17 @@ export default async function addRepo(
process.env.GITHUB_ACCESS_TOKEN || ''
)

const docs = repo.map(doc => {
const docs = Promise.all(repo.map(async doc => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

.map(async () => { await someFunc() } might not actually wait

I believe the only JS for loop that respects async-await is for (const doc or repo) { await someFunc() }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

.map(async () => { await someFunc() } -> Why does it not?

Copy link
Collaborator

@tedspare tedspare left a comment

Choose a reason for hiding this comment

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

LGTM 🚢

after the map(async... issue is resolved we're good to go

Copy link
Collaborator

@tedspare tedspare left a comment

Choose a reason for hiding this comment

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

LGTM

@tedspare tedspare merged commit 21e16f2 into staging Dec 13, 2023
@tedspare tedspare deleted the arihan/mar-31-summarize-and-upsert-code-snippets-from-reposplitter branch January 30, 2024 20:35
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.

2 participants