Skip to content

Commit

Permalink
Merge pull request #26 from interlynk-io/fixes/more-testing
Browse files Browse the repository at this point in the history
Limit repo to provided one
  • Loading branch information
riteshnoronha authored Feb 8, 2025
2 parents dcf7bd4 + 854e0cf commit 69fdd91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/source/github/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,10 @@ func (c *Client) updateRepo(repo string) {
func (c *Client) GetAllRepositories(ctx *tcontext.TransferMetadata) ([]string, error) {
logger.LogDebug(ctx.Context, "Fetching all repositories for an organization", "name", c.Owner)

if c.Repo != "" {
return []string{c.Repo}, nil
}

apiURL := fmt.Sprintf("https://api.github.com/orgs/%s/repos", c.Owner)

logger.LogDebug(ctx.Context, "Constructed API URL for repositories", "value", apiURL)
Expand Down

0 comments on commit 69fdd91

Please sign in to comment.