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_ListByReposOnly \ to list repos in the config go test -run TestBitbucketServerSource_ListByRepositoryQueryDefault \ to list repos by projectName go test -run TestBitbucketServerSource_ListByRepositoryQueryAll \ query = "" go test -run TestBitbucketServerSource_ListByRepositoryQueryNone \ no query go test -run TestBitbucketServerSource_ListByProjectKey \ to list repos by projectKey

Merge request reports

Loading