[PR #472] [MERGED] feat: private/custom git repos - GitHub, GitLab, Bitbucket, custom #468

Closed
opened 2026-02-26 12:41:28 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/472
Author: @michelroegl-brunner
Created: 1/29/2026
Status: Merged
Merged: 1/29/2026
Merged by: @michelroegl-brunner

Base: mainHead: feat/406


📝 Commits (1)

  • a56c625 feat: private/custom git repos - GitHub, GitLab, Bitbucket, custom

📊 Changes

17 files changed (+408 additions, -220 deletions)

View changed files

📝 .env.example (+5 -0)
📝 src/app/_components/GeneralSettingsModal.tsx (+4 -3)
📝 src/env.js (+7 -2)
src/server/lib/gitProvider/bitbucket.ts (+55 -0)
src/server/lib/gitProvider/custom.ts (+44 -0)
src/server/lib/gitProvider/github.ts (+60 -0)
src/server/lib/gitProvider/gitlab.ts (+58 -0)
src/server/lib/gitProvider/index.js (+1 -0)
src/server/lib/gitProvider/index.ts (+28 -0)
src/server/lib/gitProvider/types.ts (+14 -0)
src/server/lib/repositoryUrlValidation.js (+37 -0)
src/server/lib/repositoryUrlValidation.ts (+57 -0)
📝 src/server/services/githubJsonService.js (+7 -76)
📝 src/server/services/githubJsonService.ts (+9 -81)
📝 src/server/services/repositoryService.js (+5 -6)
📝 src/server/services/repositoryService.ts (+5 -7)
📝 src/server/services/scriptDownloader.js (+12 -45)

📄 Description

Summary

Add support for private and custom Git repositories: validation accepts GitHub, GitLab, Bitbucket, and custom hosts; sync and script download work for all supported providers via a provider layer.

Changes

  • URL validation: repositoryUrlValidation (GitHub, GitLab, Bitbucket, custom host pattern)
  • Git provider layer: listDirectory and downloadRawFile for GitHub, GitLab, Bitbucket, Gitea-style custom
  • Repository service: Use shared validation in create/update
  • githubJsonService (TS + JS): Use provider for listing JSON and downloading files
  • scriptDownloader: Use provider downloadRawFile for script and install script downloads
  • UI: GeneralSettingsModal placeholder and help text for supported hosts
  • Env: .env.example and env.js for GITLAB_TOKEN, BITBUCKET_APP_PASSWORD / BITBUCKET_TOKEN

Closes #406


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE-Local/pull/472 **Author:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Created:** 1/29/2026 **Status:** ✅ Merged **Merged:** 1/29/2026 **Merged by:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Base:** `main` ← **Head:** `feat/406` --- ### 📝 Commits (1) - [`a56c625`](https://github.com/community-scripts/ProxmoxVE-Local/commit/a56c625b4fae1e93bf05a178973bc8d8a9f27f46) feat: private/custom git repos - GitHub, GitLab, Bitbucket, custom ### 📊 Changes **17 files changed** (+408 additions, -220 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+5 -0) 📝 `src/app/_components/GeneralSettingsModal.tsx` (+4 -3) 📝 `src/env.js` (+7 -2) ➕ `src/server/lib/gitProvider/bitbucket.ts` (+55 -0) ➕ `src/server/lib/gitProvider/custom.ts` (+44 -0) ➕ `src/server/lib/gitProvider/github.ts` (+60 -0) ➕ `src/server/lib/gitProvider/gitlab.ts` (+58 -0) ➕ `src/server/lib/gitProvider/index.js` (+1 -0) ➕ `src/server/lib/gitProvider/index.ts` (+28 -0) ➕ `src/server/lib/gitProvider/types.ts` (+14 -0) ➕ `src/server/lib/repositoryUrlValidation.js` (+37 -0) ➕ `src/server/lib/repositoryUrlValidation.ts` (+57 -0) 📝 `src/server/services/githubJsonService.js` (+7 -76) 📝 `src/server/services/githubJsonService.ts` (+9 -81) 📝 `src/server/services/repositoryService.js` (+5 -6) 📝 `src/server/services/repositoryService.ts` (+5 -7) 📝 `src/server/services/scriptDownloader.js` (+12 -45) </details> ### 📄 Description ## Summary Add support for private and custom Git repositories: validation accepts GitHub, GitLab, Bitbucket, and custom hosts; sync and script download work for all supported providers via a provider layer. ## Changes - **URL validation**: `repositoryUrlValidation` (GitHub, GitLab, Bitbucket, custom host pattern) - **Git provider layer**: `listDirectory` and `downloadRawFile` for GitHub, GitLab, Bitbucket, Gitea-style custom - **Repository service**: Use shared validation in create/update - **githubJsonService** (TS + JS): Use provider for listing JSON and downloading files - **scriptDownloader**: Use provider `downloadRawFile` for script and install script downloads - **UI**: GeneralSettingsModal placeholder and help text for supported hosts - **Env**: `.env.example` and `env.js` for `GITLAB_TOKEN`, `BITBUCKET_APP_PASSWORD` / `BITBUCKET_TOKEN` Closes #406 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 12:41:28 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE-Local#468
No description provided.