Skip to content

Commit

Permalink
fix: remove react-based-templates because it doesn't work (#6993)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahetter authored Jan 9, 2025
1 parent 9b8a0c9 commit 3441c58
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/utils/sites/create-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ import { getTemplatesFromGitHub } from './utils.js'
export const fetchTemplates = async (token: string): Promise<Template[]> => {
const templatesFromGitHubOrg: GitHubRepo[] = await getTemplatesFromGitHub(token)

return templatesFromGitHubOrg
.filter((repo: GitHubRepo) => !repo.archived && !repo.disabled)
.map((template: GitHubRepo) => ({
name: template.name,
sourceCodeUrl: template.html_url,
slug: template.full_name,
}))
return (
templatesFromGitHubOrg
// adding this filter because the react-based-templates has multiple templates in one repo so doesn't work for this command
.filter((repo: GitHubRepo) => !repo.archived && !repo.disabled && repo.name !== 'react-based-templates')
.map((template: GitHubRepo) => ({
name: template.name,
sourceCodeUrl: template.html_url,
slug: template.full_name,
}))
)
}

export const getTemplateName = async ({
Expand Down

2 comments on commit 3441c58

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,201
  • Package size: 316 MB
  • Number of ts-expect-error directives: 830

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,201
  • Package size: 316 MB
  • Number of ts-expect-error directives: 830

Please sign in to comment.