Add Git repository integration for static site export#128
Draft
Add Git repository integration for static site export#128
Conversation
- Create database schema for git_publish_settings table - Add GitPublishSettings domain model and repository - Implement LoadGitPublishSettingsCommand and SaveGitPublishSettingsCommand - Create GitPublishCommand for Git operations (clone, commit, push, PR creation) - Update StaticSiteEndpoint with Git settings endpoints - Update MakeStaticSiteJob to auto-publish to Git after generation - Add Git configuration UI to static-site-modal.jsp - Update static-site-manager.js to handle Git settings - Support for GitHub and GitLab providers Co-authored-by: rajkowski <10373492+rajkowski@users.noreply.github.com>
Co-authored-by: rajkowski <10373492+rajkowski@users.noreply.github.com>
- Use Git credential helper instead of embedding tokens in URLs - Avoid exposing access tokens in logs or error messages - Only require access token validation for new settings - Allow updating settings without re-entering token Co-authored-by: rajkowski <10373492+rajkowski@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add export feature for saving settings and Git integration
Add Git repository integration for static site export
Feb 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends the static site export feature with persistent Git repository publishing. After generating a static site snapshot, the system can automatically commit, push, and optionally create a pull request to a configured GitHub or GitLab repository.
Changes
Database & Persistence
git_publish_settingstable stores repository URL, branch configuration, credentials, and PR templatesGitPublishSettingsRepositoryfor CRUD operationsGit Operations
GitPublishCommandhandles complete workflow: clone → extract static site → commit → push → create PR${timestamp})UI Integration
StaticSiteEndpointfor loading/saving Git settingsAutomation
MakeStaticSiteJobchecks for enabled Git settings after site generationSecurity
Credentials are passed via Git credential helper rather than URL embedding:
Access token validation only required when creating new settings or explicitly updating the token field.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
www.puppycrawl.com/opt/hostedtoolcache/CodeQL/2.24.1/x64/codeql/tools/linux64/java/bin/java /opt/hostedtoolcache/CodeQL/2.24.1/x64/codeql/tools/linux64/java/bin/java -jar /opt/hostedtoolcache/CodeQL/2.24.1/x64/codeql/xml/tools/xml-extractor.jar --fileList=/home/REDACTED/work/cms-platform/.codeql-scratch/dbs/java/working/files-to-index9087151866149303156.list --sourceArchiveDir=/home/REDACTED/work/cms-platform/.codeql-scratch/dbs/java/src --outputDir=/home/REDACTED/work/cms-platform/.codeql-scratch/dbs/java/trap/java(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.