Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use GitHub actions to sanitize themes & plugins list #2164

Merged
merged 7 commits into from
Apr 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
check isArchived
  • Loading branch information
stevenjoezhang committed Apr 10, 2024
commit aa09f1aec016f3d49dc9a5e7f11038fc123a784e
4 changes: 3 additions & 1 deletion .github/workflows/cleaner.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function buildRepoQuery(owner, repo) {
login
}
url
isArchived
defaultBranchRef {
target {
... on Commit {
Expand Down Expand Up @@ -130,8 +131,9 @@ async function validate(type) {
if (result[repoKey]) {
const entry = result[repoKey];
const stars = entry.stargazers.totalCount;
const isArchived = entry.isArchived;
const lastCommitDate = entry.defaultBranchRef.target.history.edges[0].node.committedDate;
console.log(`Repo: ${owner}/${repo}, Stars: ${stars}, Last Commit Date: ${lastCommitDate}`);
console.log(`Repo: ${owner}/${repo}, Stars: ${stars}, Archived: ${isArchived}, Last Commit Date: ${lastCommitDate}`);
const newOwner = entry.owner.login;
const newRepo = entry.name;
if (owner !== newOwner || repo !== newRepo) {
Expand Down