Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
18 changes: 16 additions & 2 deletions pages/code/core_repos.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,20 @@ sidebar_position: 6

```sql core_repos_table
select
*
name,
description,
gh_created_at,
gh_updated_at,
stargazers_count,
watchers_count,
forks_count,
open_issues_count,
topics,
archived,
default_branch,
'https://github.com/nf-core/' || name as github_url
from nfcore_db.core_repos
where archived = false
```

We have several repositories that are not pipelines, but contain code for everything around nf-core (including this page itself).
Expand All @@ -17,4 +29,6 @@ defaultSort={[{ id: 'stargazers_count', desc: true }]}
search=true
wrapTitles=true
totalRow=true
/>
link=github_url
>
</DataTable>
19 changes: 17 additions & 2 deletions sources/nfcore_db/core_repos.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
USE nf_core_stats_bot;

SELECT * EXCLUDE (last_release_date)
FROM github.nfcore_pipelines WHERE category = 'core';
SELECT
p.name,
p.description,
p.gh_created_at,
p.gh_updated_at,
p.stargazers_count,
p.watchers_count,
p.forks_count,
p.open_issues_count,
LIST(t.value) as topics,
p.default_branch,
p.archived,
FROM github.pipelines p
LEFT JOIN github.pipelines__topics t ON p._dlt_id = t._dlt_parent_id
WHERE p.category = 'core'
GROUP BY ALL
ORDER BY p.stargazers_count DESC;
Loading