From 2a27f2494853174d7a0fcfa84f5dc2617f00b908 Mon Sep 17 00:00:00 2001 From: yoshinorin Date: Fri, 7 Nov 2025 01:06:17 +0900 Subject: [PATCH 1/4] feat: detect and mark archived repositories in plugin and theme --- .github/workflows/cleaner.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/cleaner.js b/.github/workflows/cleaner.js index e5a3b688f3..c554c022e4 100644 --- a/.github/workflows/cleaner.js +++ b/.github/workflows/cleaner.js @@ -156,9 +156,19 @@ async function validate(type) { console.log(`Repo: ${owner}/${repo}, Stars: ${stars}, Archived: ${isArchived}, Last Commit Date: ${lastCommitDate}`); const newOwner = entry.owner.login; const newRepo = entry.name; + + let requireUpdate = false; if (owner !== newOwner || repo !== newRepo) { console.log(`Repo: ${owner}/${repo} has been renamed to ${newOwner}/${newRepo}`); content.link = `https://github.com/${newOwner}/${newRepo}`; + requireUpdate = true; + } + // Always update is_archived field + if (content.is_archived !== isArchived) { + content.is_archived = isArchived; + requireUpdate = true; + } + if (requireUpdate) { fs.writeFileSync(file, yaml.dump(content)); } } else { From fc50034e538ccf717b22e6ee88095e2e3a8178e7 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 31 Dec 2025 23:42:13 +0800 Subject: [PATCH 2/4] Update .github/workflows/cleaner.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Mimi --- .github/workflows/cleaner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cleaner.js b/.github/workflows/cleaner.js index c554c022e4..ce22fe6863 100644 --- a/.github/workflows/cleaner.js +++ b/.github/workflows/cleaner.js @@ -163,7 +163,7 @@ async function validate(type) { content.link = `https://github.com/${newOwner}/${newRepo}`; requireUpdate = true; } - // Always update is_archived field + // Update is_archived field if it has changed if (content.is_archived !== isArchived) { content.is_archived = isArchived; requireUpdate = true; From 5627673bf30c54fb74efef2fb7727c85b9a6a6b7 Mon Sep 17 00:00:00 2001 From: yoshinorin Date: Thu, 15 Jan 2026 00:34:59 +0900 Subject: [PATCH 3/4] feat: add repository status to theme and plugin data --- .github/workflows/cleaner.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cleaner.js b/.github/workflows/cleaner.js index ce22fe6863..af31653f94 100644 --- a/.github/workflows/cleaner.js +++ b/.github/workflows/cleaner.js @@ -157,20 +157,24 @@ async function validate(type) { const newOwner = entry.owner.login; const newRepo = entry.name; - let requireUpdate = false; + // Update link if repository has been renamed if (owner !== newOwner || repo !== newRepo) { console.log(`Repo: ${owner}/${repo} has been renamed to ${newOwner}/${newRepo}`); content.link = `https://github.com/${newOwner}/${newRepo}`; - requireUpdate = true; } - // Update is_archived field if it has changed - if (content.is_archived !== isArchived) { - content.is_archived = isArchived; - requireUpdate = true; - } - if (requireUpdate) { - fs.writeFileSync(file, yaml.dump(content)); + + // Initialize repository object if it doesn't exist + if (!content.repository) { + content.repository = {}; } + + // Update repository information + content.repository = { + is_archived: isArchived, + stars: stars, + last_commit_date: lastCommitDate + }; + fs.writeFileSync(file, yaml.dump(content)); } else { console.log(`Repo: ${owner}/${repo} does not exist or is private.`); console.log(`Remove: ${file}`); From fcdef6b37c1a51262ba93aeaad738ae96a0833cb Mon Sep 17 00:00:00 2001 From: yoshinorin Date: Thu, 15 Jan 2026 00:37:35 +0900 Subject: [PATCH 4/4] refactor: rename from `cleaner.js` to `updater.js` --- .github/workflows/{cleaner.js => updater.js} | 0 .github/workflows/{cleaner.yml => updater.yml} | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{cleaner.js => updater.js} (100%) rename .github/workflows/{cleaner.yml => updater.yml} (96%) diff --git a/.github/workflows/cleaner.js b/.github/workflows/updater.js similarity index 100% rename from .github/workflows/cleaner.js rename to .github/workflows/updater.js diff --git a/.github/workflows/cleaner.yml b/.github/workflows/updater.yml similarity index 96% rename from .github/workflows/cleaner.yml rename to .github/workflows/updater.yml index 1441ab2075..3d924b2675 100644 --- a/.github/workflows/cleaner.yml +++ b/.github/workflows/updater.yml @@ -1,4 +1,4 @@ -name: Cleaner +name: Updater on: schedule: @@ -23,7 +23,7 @@ jobs: - name: Install Dependencies run: npm install - name: Cleanup - run: node .github/workflows/cleaner.js + run: node .github/workflows/updater.js env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Config