1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00
This commit is contained in:
Matthias Kretschmann 2018-11-10 19:59:08 +01:00
parent 2cb3a08b7b
commit 3e87a9bb30
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 7 additions and 2 deletions
README.md
src/components/Repositories

View File

@ -92,7 +92,7 @@ You can attach multiple links to a repo like so:
url: https://github.com/oceanprotocol/keeper-contracts/tree/develop/doc
```
The GitHub link is automatically added for every repository name and will always be displayed.
The GitHub link is automatically added for every repository name and will always be displayed. You can add a private repo to prepare for a release, it won't be displayed until it is made public on GitHub.
- [`/data/repositories.yml`](data/repositories.yml)

View File

@ -7,7 +7,7 @@ const queryGithub = graphql`
query GitHubReposInfo {
github {
organization(login: "oceanprotocol") {
repositories(first: 100, isFork: false) {
repositories(first: 100, privacy: PUBLIC, isFork: false) {
edges {
node {
name
@ -37,6 +37,11 @@ const Repository = ({ name, links }) => (
.filter(n => n)
const repo = repoFilteredArray[0]
// safeguard against more empty items,
// e.g. when private repos are referenced in repositories.yml
if (repo === undefined) return null
const { url, description } = repo
return (