Skip to content

Commit

Permalink
Limit repo to provided one
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshnoronha committed Feb 8, 2025
1 parent dcf7bd4 commit 854e0cf
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 854e0cf

Please sign in to comment.