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
I believe I managed to fix it locally by wrapping an extra parse check in, however I'm having some trouble understanding the context of the code so I'm not sure that's the right approach:
I recently made this change but didn't account for this. I think the code I added here should not have returned the first commit since it isn't a tag. Undefined makes more sense, [https://github.com/intuit/auto/blob/9a3c6561453b881773316974f6adb0ed0df347d3/packages/core/src/auto.ts#L1247] this is where it should have fallen back to the first commit instead.
I'm pretty sure that won't fix the problem though. the determineNextVersion should accept string | undefined for last and currentVersion and default to 0.0.0 if not present.
Would you like to try to get this in as a PR? If not I can probably look at it in the next day or two
The
npm
plugin is callinggetLastTagNotInBaseBranch
, however that code falls off to the first Git commit if it can't find a tag. This value is passed ascurrentVersion
togetLastTagNotInBaseBranch
, which is throwing when it attempts to calllte
on the commit hash.I believe I managed to fix it locally by wrapping an extra parse check in, however I'm having some trouble understanding the context of the code so I'm not sure that's the right approach:
auto/packages/core/src/auto.ts
Line 275 in 9a3c656
The text was updated successfully, but these errors were encountered: