Listing a branch content
Closed this issue · 3 comments
radaniba commented
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
campos-ddc commented
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
dwdking commented
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.
tonytamsf commented
please re-opened if still needed.