Skip to content

Add ability for Bitbucket clients to specify repos by projectKey

Warren Gifford requested to merge bitbucket-projectkey into main

Created by: susantoscott

Previously Bitbucket clients could only specify repos by projectName. Now, if projectKeys are specified in s.config.ProjectKeys, then those repos would be returned as well.

Test plan

go test -run TestBitbucketServerSource_ListRepos \\ to list all repos go test -run TestBitbucketServerSource_ListByRepos only \\ to list repos in the config go test -run TestBitbucketServerSource_ListByRepositoryQueryDefault \\ to list repos by projectName go test -run TestBitbucketServerSource_ListByRepositoryQueryAll \\ using all as the query go test -run TestBitbucketServerSource_ListByRepositoryQueryNone \\ using none as the query go test -run TestBitbucketServerSource_ListByProjectKey \\ to list repos by projectKey

Merge request reports

Loading