Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenFrankel committed Apr 4, 2024
1 parent 1c78160 commit f36c8c0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/templates/Plugins.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,13 @@
:src="
((repo) => {
const url = `https://img.shields.io/${repo.type}/last-commit/${repo.user}/${repo.name}?label=`;
return variant.node.keywords.includes('airbyte_protocol')
? `${url}&path=${repo.url.replace(
'https://github.com/airbytehq/airbyte/tree/master/',
''
)}`
: url;
if (!variant.node.keywords.includes('airbyte_protocol')) {
return url;
}
const [path] = repo.url.match(/airbyte-integrations\S+/);
return path ? `${url}&path=${path}` : url;
})(parsedVariantRepos[variant.node.variant])
"
/>
Expand Down

0 comments on commit f36c8c0

Please sign in to comment.