alexa / ask-toolkit-for-vscode

ASK Toolkit is an extension for Visual Studio Code (VSC) that that makes it easier for developers to develop and deploy Alexa Skills.
https://developer.amazon.com/en-US/docs/alexa/ask-toolkit/get-started-with-the-ask-toolkit-for-visual-studio-code.html
Apache License 2.0
107 stars 52 forks source link

fix: skill creation and clone returns 'no skill repository found' #251

Closed tydonelson closed 1 year ago

tydonelson commented 1 year ago

Fixes #234

Description

The built-in vscode APIs for git management are failing to retrieve repositories in our environment, so for now we will fall back to executing git via the shell (some operations were already running through the shell).

Adds a getCurrentBranch operation to the git terminal helper to facilitate the transition.

Also contains some ESLint corrections in the file src/utils/cloneSkillHelper.ts, mostly around usage before declaration.

Testing

Manually tested, as well as added a unit tests around git helper functions:

image

Screenshots (if appropriate)

Types of changes

Checklist

License