You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @s0 👋 Thanks for this working on this, I've been super excited to use the new commitMode API!
I'm running into an error (see here) that only happens when using commitMode: "github-api" and does not happen when using the default commitMode, and I think the error is coming from this line. The error is:
NotFoundError: Could not find 56f9a0bba782dac4d4fc8bd85b013694451fee8c.
The commit does exist though, so I'm thinking it has to do with that call to git.log. Have you seen this error? I also tried adding fetch-depth: 0 to my checkout step, but the same error occurs. LMK if there's more info I can provide, or is there's a way to enable debug logging. Thank you!
Yep that looks like the culprit. Probably makes sense to implement some type of automatic parent directory traversal that can be used when the repository directory is not specified to search for .git, which would match what the git CLI does. I'll look into it shortly.
@0xRAG The fix is used in the action now, but I'd wait util changesets/action#473 lands, as it will run, but add all changes in your repo and not just the ones in your subdirectory, which is a change in behaviour.
Activity
0xRAG commentedon May 6, 2025
The problem might be this line. My TypeScript project does not live at the root of the repo, so I think this line is causing the issue
s0 commentedon May 6, 2025
Hi @0xRAG thanks for the bug report.
Yep that looks like the culprit. Probably makes sense to implement some type of automatic parent directory traversal that can be used when the repository directory is not specified to search for
.git, which would match what the git CLI does. I'll look into it shortly.Allow for easier committing from subdirectories
s0 commentedon May 6, 2025
Drafted a PR here: #33, will work on test coverage later this week before merging
Allow for easier committing from subdirectories
Allow for easier committing from subdirectories
s0 commentedon May 8, 2025
@0xRAG The fix is used in the action now, but I'd wait util changesets/action#473 lands, as it will run, but add all changes in your repo and not just the ones in your subdirectory, which is a change in behaviour.
0xRAG commentedon May 8, 2025
Ah cool, thanks @s0!