Skip to content

Commit

Permalink
cleanup implementation metadata (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszkuc authored Jul 18, 2023
1 parent 4887b51 commit 8c09333
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 9 deletions.
3 changes: 2 additions & 1 deletion implementations/absinthe-federation/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"link": "https://github.com/absinthe-graphql/absinthe"
},
"federationlibrary": {
"name": "Absinthe.Federation",
"name": "absinthe_federation",
"owner": "DivvyPayHQ",
"link": "https://github.com/DivvyPayHQ/absinthe_federation"
}
}
3 changes: 2 additions & 1 deletion implementations/dgs/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"link": "https://github.com/graphql-java/graphql-java"
},
"federationlibrary": {
"name": "Federation JVM",
"name": "federation-jvm",
"owner": "apollographql",
"link": "https://github.com/apollographql/federation-jvm"
}
}
3 changes: 2 additions & 1 deletion implementations/graphene/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"federationlibrary": {
"name": "graphene-federation",
"link": "https: //github.com/graphql-python/graphene-federation"
"owner": "graphql-python",
"link": "https://github.com/graphql-python/graphene-federation"
}
}
3 changes: 2 additions & 1 deletion implementations/graphql-java-kickstart/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"link": "https://github.com/graphql-java/graphql-java"
},
"federationlibrary": {
"name": "Federation JVM",
"name": "federation-jvm",
"owner": "apollographql",
"link": "https://github.com/apollographql/federation-jvm"
}
}
1 change: 1 addition & 0 deletions implementations/lighthouse/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"coreLibrary": {
"name": "graphql-php",
"owner": "webonyx",
"link": "https://github.com/webonyx/graphql-php"
}
}
3 changes: 2 additions & 1 deletion implementations/php/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"link": "https://github.com/webonyx/graphql-php"
},
"federationlibrary": {
"name": "Apollo Federation PHP",
"name": "apollo-federation-php",
"owner": "Skillshare",
"link": "https://github.com/Skillshare/apollo-federation-php"
}
}
3 changes: 2 additions & 1 deletion implementations/sangria/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"link": "https://github.com/sangria-graphql/sangria"
},
"federationlibrary": {
"name": "Sangria Federated",
"name": "sangria-federated",
"owner": "sangria-graphql",
"link": "https://github.com/sangria-graphql/sangria-federated"
}
}
3 changes: 2 additions & 1 deletion implementations/spring-graphql/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"link": "https://github.com/graphql-java/graphql-java"
},
"federationlibrary": {
"name": "Federation JVM",
"name": "federation-jvm",
"owner": "apollographql",
"link": "https://github.com/apollographql/federation-jvm"
}
}
10 changes: 8 additions & 2 deletions packages/compatibility/src/utils/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,17 @@ Last Release: ${lastReleaseDate}</br></br>`;
}

if (result.coreLibrary?.link) {
content += `Core Library: <a href="${result.coreLibrary.link}">${result.coreLibrary.name}</a></br>`;
const coreLibraryName = result.coreLibrary.owner
? `${result.coreLibrary.owner}/${result.coreLibrary.name}`
: result.coreLibrary.name;
content += `Core Library: <a href="${result.coreLibrary.link}">${coreLibraryName}</a></br>`;
}

if (result.federationlibrary?.link) {
content += `Federation Library: <a href="${result.federationlibrary.link}">${result.federationlibrary.name}</a></br>`;
const fedLibraryName = result.federationlibrary.owner
? `${result.federationlibrary.owner}/${result.federationlibrary.name}`
: result.federationlibrary.name;
content += `Federation Library: <a href="${result.federationlibrary.link}">${fedLibraryName}</a></br>`;
}

return content;
Expand Down

0 comments on commit 8c09333

Please sign in to comment.