This PR modifies the index.js file to avoid unnecessary commits when there are no changed files. It adds a conditional check before calling the createCommit function to verify if the list of changed files is empty or null. If the list of changed files is empty or null, the createCommit function call is skipped.
Summary of Changes
Modified index.js to include a conditional check for empty or null list of changed files
Skipped the createCommit function call if the list of changed files is empty or null
Please review and merge this PR. Thank you!
Fixes #13.
🎉 Latest improvements to Sweep:
Getting Sweep to run linters before committing! Check out Sweep Sandbox Configs to set it up.
Added support for self-hosting! Check out Self-hosting Sweep to get started.
[Self Hosting] Multiple options to compute vector embeddings, configure your .env file using VECTOR_EMBEDDING_SOURCE
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
PR Feedback: 👍
Description
This PR modifies the
index.js
file to avoid unnecessary commits when there are no changed files. It adds a conditional check before calling thecreateCommit
function to verify if the list of changed files is empty or null. If the list of changed files is empty or null, thecreateCommit
function call is skipped.Summary of Changes
index.js
to include a conditional check for empty or null list of changed filescreateCommit
function call if the list of changed files is empty or nullPlease review and merge this PR. Thank you!
Fixes #13.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: