Gitea-Workflow/gitea-git-clone
Peter d49abb060d * chore(gitea-git-clone): update CHANGELOG.md and package.json for version 1.1.0
* fix(gitea-git-clone): add `git clone` functionality again, after it got "lost on the way"
* feat(gitea-git-clone): add localization for English and German
* feat(gitea-git-clone): if working in PR show different Icon with hint
* fix(gitea-git-clone): fix progress bar in notification
2024-10-21 10:22:56 +02:00
..
.vscode initialize Plugin 2024-10-20 15:42:47 +02:00
i18n * feat(extension.ts): add support for localization in Gitea Git Clone extension 2024-10-21 10:17:08 +02:00
media * chore(license): remove LICENSE file 2024-10-21 02:59:24 +02:00
src * feat(extension.ts): add support for localization in Gitea Git Clone extension 2024-10-21 10:17:08 +02:00
.vscode-test.mjs initialize Plugin 2024-10-20 15:42:47 +02:00
.vscodeignore initialize Plugin 2024-10-20 15:42:47 +02:00
CHANGELOG.md * chore(gitea-git-clone): update CHANGELOG.md and package.json for version 1.1.0 2024-10-21 10:22:56 +02:00
eslint.config.mjs initialize Plugin 2024-10-20 15:42:47 +02:00
gitea-workflow-1.0.0.vsix * chore(license): remove LICENSE file 2024-10-21 02:59:24 +02:00
gitea-workflow-1.0.1.vsix * feat(gitea-git-clone): add gitea-workflow-1.0.1.vsix file 2024-10-21 03:02:03 +02:00
gitea-workflow-1.0.2.vsix * chore(gitea-git-clone): update changelog and package.json for version 1.0.2 2024-10-21 03:18:15 +02:00
LICENSE * chore(license): remove LICENSE file 2024-10-21 02:59:24 +02:00
package-lock.json * feat(extension.ts): add support for localization in Gitea Git Clone extension 2024-10-21 10:17:08 +02:00
package.json * chore(gitea-git-clone): update CHANGELOG.md and package.json for version 1.1.0 2024-10-21 10:22:56 +02:00
README.md * chore(license): remove LICENSE file 2024-10-21 02:59:24 +02:00
tsconfig.json initialize Plugin 2024-10-20 15:42:47 +02:00
vsc-extension-quickstart.md initialize Plugin 2024-10-20 15:42:47 +02:00
webpack.config.js initialize Plugin 2024-10-20 15:42:47 +02:00

A Visual Studio Code extension that allows you to clone repositories from your Gitea instance via SSH, manage Gitea authentication using a Personal Access Token (PAT), and create Pull Requests (PRs) directly from your workspace. Features

Gitea Authentication:

  • Authenticate with your Gitea instance using a Personal Access Token.

Clone via SSH:

  • Clone repositories from Gitea using SSH URLs.

Auto-Open Repository:

  • After cloning, the repository will be automatically opened in the workspace.

Create Pull Requests:

  • Create Pull Requests directly from your workspace without leaving VSCode. Automatically set the title, body, and branch for the PR.

Commands

Gitea: Authenticate Authenticate with your Gitea instance using your Personal Access Token (PAT).
Gitea: Configure Set the URL of your Gitea instance and your PAT.
Gitea: Clone Repository Clone a repository from Gitea via SSH.
Gitea: Create Pull Request Create a Pull Request for the current repository.

Requirements

A Gitea instance with SSH access.
A Personal Access Token (PAT) from your Gitea instance for authentication.

Configuration

You can configure the Gitea instance URL and your Personal Access Token in your VSCode settings:


{
  "gitea.instanceUrl": "https://your-gitea-instance.com",
  "gitea.personalAccessToken": "your-personal-access-token"
}

Usage

Authentication

Run <Gitea: Authenticate> to authenticate with your Gitea instance.
You can set or update your Gitea instance URL and Personal Access Token by running <Gitea: Configure>

Cloning a Repository

Run <Gitea: Clone Repository> to clone a repository from your Gitea account.
Choose the repository you want to clone and select the folder where you want to clone it.
The repository will be cloned via SSH and automatically opened in VSCode.

Creating a Pull Request

Ensure that you are on the branch for which you want to create a Pull Request.
Run <Gitea: Create Pull Request> from the command palette.
The PR title will be automatically set to the latest commit message, and the body will include the commit description (if any).
The current branch will be used as the source (head), and the base branch will be automatically fetched from the repository's default branch (e.g., main or master).
Once the Pull Request is created, the Gitea web interface will open in your browser for further review.

Issues

If you encounter any issues or have feature requests, please feel free to submit them in the issues section.