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

Move from git-mob cli to api #67

Merged
merged 28 commits into from
Aug 29, 2021
Merged

Move from git-mob cli to api #67

merged 28 commits into from
Aug 29, 2021

Conversation

rkotze
Copy link
Owner

@rkotze rkotze commented Jul 25, 2021

Reading from the CLI can fail because it's not accessible using npx.

I think the best approach might be to build Git Mob API and remove the need to install git-mob. It will still work with the CLI by keeping the same behaviour.

API improvments

  • Simplifies the extension and not needing to check if installed and which version is installed.
  • Performance, UI responds faster when adding, selecting and listing co-authors.
  • Still keeps in sync with the CLI because it's changing the same files.

Task list

  • read .git-co-author file
  • list all co-authors
  • select and deselect co-authors
  • migrate git-author tests to Jest
  • solo
  • migrate git-message tests to Jest
  • show main author
  • selected co-authors
  • change main author
  • Add new co-author
  • Install .git-co-authors
  • remove reference to git-mob cli
  • Update readme/documentation
  • Update change log
  • Update contributing file

Should fix PR #49

rkotze added 10 commits August 7, 2021 22:17
Doing this will prevent the need to install the cli to use vs code version.

- convert git-author tests from AVA to Jest
Had to change for get accessors to async methods to handle promises.
Still need to update the template file.
silentRun no longer catchs errors and that is for handleResponse to take care of.
list all authors in a Map, make it easy to access and iterate through authors.
rkotze added 16 commits August 9, 2021 19:21
Array methods provide a more common way to access authors.
Improve naming repoAuthorList function
Check co-authors is formatted and passed to append function.
Remove unused commands for fetch co authors from git config.
remove unused cli function to change primary authors.
Add via Git local repo, GitHub and manual input
Removed add co-author cli command
Removed manage features edit-co-author and remove-co-author.
Not needed for the vs-code.
File only added if it does not exist.
Removed check for cli version and install commands.
@rkotze rkotze added the Code improvements Better code quality, standards, testing, maintenance label Aug 27, 2021
@rkotze rkotze added the enhancement New feature or request label Aug 27, 2021
@rkotze rkotze merged commit cfc78c0 into master Aug 29, 2021
@rkotze rkotze deleted the git-mob-api branch August 29, 2021 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code improvements Better code quality, standards, testing, maintenance enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant