Make repository URL configurable via REPO_URL env var#31
Merged
Conversation
Replace hardcoded GitHub owner/repo with a full REPO_URL that works with any git forge (GitHub, GitLab, Gitea, Codeberg, Forgejo). The update checker auto-detects GitHub URLs and hides gracefully for other hosts. Links card and update button are hidden when no URL is configured. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dockerfile defaults are sufficient; no need to duplicate in compose files. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR makes the repository URL configurable via a REPO_URL environment variable, updates the About page links accordingly, and gates the update checker to GitHub repositories only.
Changes:
- Inject
REPO_URLinto the frontend build (__REPO_URL__) and add container/build wiring for it (Dockerfiles + compose). - Update About page to build links from
REPO_URL, rename i18n key (githubRepo→sourceCode), and hide the update checker for non-GitHub URLs. - Remove the license link from the Links card and update translations.
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/vite.config.ts | Defines __REPO_URL__ at build time from process.env.REPO_URL. |
| frontend/src/views/AboutView.vue | Builds links from REPO_URL, detects GitHub repos for update checks, hides UI sections based on configuration. |
| frontend/src/i18n/locales/en.json | Renames “GitHub Repository” label to “Source Code”; removes license label. |
| frontend/src/i18n/locales/de.json | German translation updates for renamed/removed keys. |
| frontend/env.d.ts | Adds TypeScript global declaration for __REPO_URL__. |
| frontend/Dockerfile.prod | Adds REPO_URL build arg/env for frontend build. |
| frontend/Dockerfile | Adds REPO_URL build arg/env for frontend container. |
| docker-compose.yaml | Passes .env into the frontend dev container. |
| docker-compose.prod.yaml | Passes REPO_URL into the production image build args. |
| Dockerfile.prod | Adds REPO_URL build arg/env in root production build. |
| .env.example | Documents REPO_URL configuration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Summary
owner/repowith aREPO_URLenv var that accepts a full URL, making it work with any git forge (GitHub, GitLab, Gitea, Codeberg, Forgejo)REPO_URLis empty/unsetgithubRepo→sourceCode, replaced GitHub logo with generic code iconTest plan
REPO_URL=https://github.com/Xitee1/package-tracker→ links and update checker work as beforeREPO_URL=https://codeberg.org/user/repo→ links show, update checker hiddenREPO_URL→ defaults to upstream GitHub URLREPO_URLfrom.enventirely → links card and update checker hidden gracefully🤖 Generated with Claude Code