feat(gitea-git-clone): add support for creating repositories in Gitea

* Added:
* - Users can now create new repositories in a selected Gitea instance directly from VSCode. Options include:
* - Selecting the Gitea instance (if multiple are configured).
* - Choosing the owner (personal account or organization).
* - Setting the repository visibility (private by default, or public).
* - Selecting a `.gitignore` template (if available via API).
* - The repository is initialized with an MIT license.
* - After creation, the new repository is automatically cloned and opened in VSCode.
* Changed:
* - Updated localization files to include new messages related to repository creation.
*
* Fixed:
* - Improved error handling and messages throughout the extension.
This commit is contained in:
2024-10-31 14:58:36 +01:00
parent 218970e57b
commit e874cbefd6
7 changed files with 296 additions and 5 deletions

View File

@ -36,5 +36,14 @@
"giteaClone.selectPullRequest": "Wählen Sie einen Pull Request zum Anzeigen aus",
"giteaClone.showOpenPullRequestsTooltip": "Offene Pull Requests anzeigen",
"giteaClone.branchStatusTooltip": "Aktueller Branch-Status",
"giteaClone.buildStatusTooltip": "Build-Status des aktuellen Commits"
"giteaClone.buildStatusTooltip": "Build-Status des aktuellen Commits",
"giteaClone.createRepository": "Repository erstellen",
"giteaClone.selectOwner": "Wählen Sie den Besitzer für das Repository aus",
"giteaClone.noOwnerSelected": "Kein Besitzer ausgewählt.",
"giteaClone.enterRepoName": "Geben Sie den Namen des neuen Repositories ein",
"giteaClone.noRepoName": "Kein Repository-Name angegeben.",
"giteaClone.selectVisibility": "Wählen Sie die Sichtbarkeit des Repositories",
"giteaClone.selectGitignore": ".gitignore-Template auswählen (optional)",
"giteaClone.repoCreated": "Repository '{0}' erfolgreich erstellt.",
"giteaClone.createRepoError": "Fehler beim Erstellen des Repositories: {0}"
}

View File

@ -36,5 +36,14 @@
"giteaClone.selectPullRequest": "Select a pull request to view",
"giteaClone.showOpenPullRequestsTooltip": "Show open pull requests",
"giteaClone.branchStatusTooltip": "Current branch status",
"giteaClone.buildStatusTooltip": "Build status of the current commit"
"giteaClone.buildStatusTooltip": "Build status of the current commit",
"giteaClone.createRepository": "Create Repository",
"giteaClone.selectOwner": "Select the owner for the repository",
"giteaClone.noOwnerSelected": "No owner selected.",
"giteaClone.enterRepoName": "Enter the name of the new repository",
"giteaClone.noRepoName": "No repository name provided.",
"giteaClone.selectVisibility": "Select the visibility of the repository",
"giteaClone.selectGitignore": "Select a .gitignore template (optional)",
"giteaClone.repoCreated": "Repository '{0}' created successfully.",
"giteaClone.createRepoError": "Error creating repository: {0}"
}