Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

feat: show fork source on GitHub repos page

Adam Eivy2dc3ad6fd897
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index d9c120e855..c798b46775 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -8,6 +8,7 @@
- Manage secrets and push to repos via `gh secret set`
- Archive/unarchive repos directly from the UI
- Private repo visibility badge
+ - Fork source badge linking to upstream repo
- Filter by All / NPM Projects / Has Secrets / Archived
- Search repos by name or description
- Updated CoS github-repo-maintenance job to cross-reference PortOS repo flags
diff --git a/client/src/pages/GitHub.jsx b/client/src/pages/GitHub.jsx
index 9ac9aa536e..e416ba683b 100644
--- a/client/src/pages/GitHub.jsx
+++ b/client/src/pages/GitHub.jsx
@@ -351,6 +351,17 @@ export default function GitHub() {
{repo.isPrivate && (
<span className="text-xs px-1.5 py-0.5 rounded bg-purple-900/50 text-purple-400 border border-purple-800">private</span>
)}
+ {repo.isFork && (
+ <a
+ href={`https://github.com/${repo.forkSource}`}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-xs px-1.5 py-0.5 rounded bg-cyan-900/50 text-cyan-400 border border-cyan-800 hover:bg-cyan-900/70"
+ title={`Forked from ${repo.forkSource}`}
+ >
+ fork: {repo.forkSource}
+ </a>
+ )}
{repo.isArchived && (
<span className="text-xs px-1.5 py-0.5 rounded bg-gray-700 text-gray-400">archived</span>
)}
diff --git a/server/services/github.js b/server/services/github.js
index 00fdb88b45..0e14156599 100644
--- a/server/services/github.js
+++ b/server/services/github.js
@@ -80,7 +80,7 @@ async function runWithConcurrency(tasks, limit) {
export async function syncRepos() {
const raw = await execGh([
'repo', 'list', 'atomantic', '--limit', '200',
- '--json', 'name,nameWithOwner,description,pushedAt,isArchived,isPrivate,licenseInfo'
+ '--json', 'name,nameWithOwner,description,pushedAt,isArchived,isPrivate,isFork,parent,licenseInfo'
]);
const remoteRepos = JSON.parse(raw);
const data = await load();
@@ -94,6 +94,8 @@ export async function syncRepos() {
description: repo.description || '',
isArchived: repo.isArchived,
isPrivate: repo.isPrivate,
+ isFork: repo.isFork,
+ forkSource: repo.parent ? `${repo.parent.owner.login}/${repo.parent.name}` : null,
pushedAt: repo.pushedAt,
license: repo.licenseInfo?.name || null,
flags: existing.flags || {},