Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update connectors' download links to link to our scarf package link #89

Merged
merged 3 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
13 changes: 7 additions & 6 deletions src/connectorgen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ package main

import (
"context"
"encoding/json"
"fmt"
"os"
"slices"
"strings"
"time"

"github.com/goccy/go-json"
maha-hajja marked this conversation as resolved.
Show resolved Hide resolved
"github.com/gofri/go-github-ratelimit/github_ratelimit"
"github.com/google/go-github/v61/github"
"github.com/otiai10/gh-dependents/ghdeps"
Expand Down Expand Up @@ -303,11 +303,12 @@ func fetchReleaseAssets(ctx context.Context, client *github.Client, repo string,
}

assetsList = append(assetsList, Asset{
Name: asset.GetName(),
OS: assetOS,
Arch: assetArch,
ContentType: asset.GetContentType(),
BrowserDownload: asset.GetBrowserDownloadURL(),
Name: asset.GetName(),
OS: assetOS,
Arch: assetArch,
ContentType: asset.GetContentType(),
// use our conduit-connectors-releases scarf package link
BrowserDownload: strings.Replace(asset.GetBrowserDownloadURL(), "github.com", "conduit.gateway.scarf.sh/connector/download", 1),
CreatedAt: asset.GetCreatedAt().Time,
UpdatedAt: asset.GetUpdatedAt().Time,
DownloadCount: asset.GetDownloadCount(),
Expand Down
Loading