File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,16 @@ import { getTemplatesFromGitHub } from './utils.js'
11
11
export const fetchTemplates = async ( token : string ) : Promise < Template [ ] > => {
12
12
const templatesFromGitHubOrg : GitHubRepo [ ] = await getTemplatesFromGitHub ( token )
13
13
14
- return templatesFromGitHubOrg
15
- . filter ( ( repo : GitHubRepo ) => ! repo . archived && ! repo . disabled )
16
- . map ( ( template : GitHubRepo ) => ( {
17
- name : template . name ,
18
- sourceCodeUrl : template . html_url ,
19
- slug : template . full_name ,
20
- } ) )
14
+ return (
15
+ templatesFromGitHubOrg
16
+ // adding this filter because the react-based-templates has multiple templates in one repo so doesn't work for this command
17
+ . filter ( ( repo : GitHubRepo ) => ! repo . archived && ! repo . disabled && repo . name !== 'react-based-templates' )
18
+ . map ( ( template : GitHubRepo ) => ( {
19
+ name : template . name ,
20
+ sourceCodeUrl : template . html_url ,
21
+ slug : template . full_name ,
22
+ } ) )
23
+ )
21
24
}
22
25
23
26
export const getTemplateName = async ( {
You can’t perform that action at this time.
0 commit comments