atlassian-api / atlassian-python-api

Atlassian Python REST API wrapper
https://atlassian-python-api.readthedocs.io
Apache License 2.0
1.36k stars 664 forks source link

Request for support of user-centric repositories (Bitbucket api) #520

Open aregier opened 4 years ago

aregier commented 4 years ago

First of all, I really like this project. It is both audacious and very useful to have a one stop API library for several of Atlassian's products, including both their cloud and on-premise product versions.

One thing that would be very nice would be the ability to interact with both project repositories and user repositories. In the documentation for Bitbucket, they will often note "This API can also be invoked via a user-centric URL when addressing repositories in personal projects." (e.g. https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html#idm8287111424)

At current, APIs such as set_pull_request_settings are hardcoded to target project repositories only.

See also https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html#personal-repositories for more information about personal repositories.

aregier commented 4 years ago

Please add the Feature label to this issue.

gonchik commented 4 years ago

Hm, interesting. For the personal repo just need to validate and add the tilda for repoSlug . like gonchik.tsymzhitov -> ~gonchik.tsymzhitov