sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.12k stars 1.29k forks source link

How to add personal repositories of specific people in Bitbucket Server #16683

Open alecl opened 3 years ago

alecl commented 3 years ago

Question description

https://docs.sourcegraph.com/admin/external_service/bitbucket_server#repository-syncing

I couldn't find a way through a repositoryQuery in the referenced https://docs.atlassian.com/bitbucket-server/rest/5.15.0/bitbucket-rest.html#idm121706013792 style to filter personal repos by user. Is there a way I'm missing. I'd like to be able to search my repos and a few other people without adding every single one individually.

Even worst case it's not totally clear how to add a personal rep indiviually since it seems to be project focused as well.

Using ?name returns personal repos that happen to match a naming convention but that's not what I'm looking for.

unknwon commented 3 years ago

Hi, have you tried "~USER/theirrepo"? (USER is a placeholder here)

vojty commented 3 years ago

I have a similar problem because USER placeholder is in form firstName.lastName (with dot) which fails to pass required '^~?[\w-]+/[\w.-]+$' patter

github-actions[bot] commented 3 years ago

Heads up @tsenart - the "team/cloud" label was applied to this issue.

unknwon commented 3 years ago

Seem changing the regex to '^~?[\w.-]+/[\w.-]+$' would work?

+'^~?[\w.-]+/[\w.-]+$'
-'^~?[\w-]+/[\w.-]+$'