cosmin/stashy

Listing a branch content

Closed this issue · 3 comments

Hello there,

Is there any example of this API usage to list the content of a specific branch and get listing of files in each directory inside a branch ?

Thanks

Something in the lines of:

paths = stashyinstance.projects['myproject'].repos['myrepo'].browse(at='mybranch')

browse takes parameters path='', at=None, type=False, blame='', noContent='', which are also documented in Stash API docs

I put in code to pull diff information and list associated files within a pull request. Not quite what you need but might be work in the mean time or part of the code is in place.

I have a pull request open so maybe it will be merged or there is the fork I made.

please re-opened if still needed.