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

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

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

tydonelson
Copy link
Contributor

@tydonelson tydonelson commented Apr 3, 2023

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed
  • My commit message follows Conventional Commit Guideline

License

  • By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tydonelson tydonelson requested review from doiron, LucioMS and CamdenFoucht and removed request for doiron, LucioMS and CamdenFoucht April 3, 2023 23:59
@tydonelson tydonelson changed the title Corrections 2023 03 Skill clone correction Apr 4, 2023
@tydonelson tydonelson changed the title Skill clone correction fix: skill creation and clone returns 'no skill repository found' Apr 4, 2023
Comment on lines +48 to +49
gitHelper.checkoutBranch("prod")
gitHelper.checkoutBranch("master");
Copy link
Contributor

Choose a reason for hiding this comment

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

huh?

Copy link
Contributor

Choose a reason for hiding this comment

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

I see it was doing the same as well before. I just don't understand why it's doing this branch change twice. some hack to pull both down locally I presume?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, I believe the purpose is to pull both down locally and have the upstream set

@tydonelson tydonelson merged commit a223216 into development Apr 4, 2023
3 checks passed
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.

Various operations result in a Git error "No skill repository found"
2 participants