Skip to content

Conversation

@jaromieee
Copy link
Contributor

To only list files from a specific folder in the target repository, you can add it to the URL like so:
`.../projects/{project_key}/repos/{repository_slug}/files/{folder}

I added an extra parameter to the method, which will add the folder to the URL if given.

@abloemert
Copy link
Contributor

abloemert commented Mar 30, 2022

I see that the black command fails, but I don't fully understand why. @gonchik, can you help us out here?

black run-test: commands[0] | black --check --diff atlassian/ examples/ tests/
Traceback (most recent call last):
  File "/atlassian-python-api/.tox/black/bin/black", line 8, in <module>
    sys.exit(patched_main())
  File "/atlassian-python-api/.tox/black/lib/python3.7/site-packages/black/__init__.py", line 1372, in patched_main
    patch_click()
  File "/atlassian-python-api/.tox/black/lib/python3.7/site-packages/black/__init__.py", line 1358, in patch_click
    from click import _unicodefun
ImportError: cannot import name '_unicodefun' from 'click' (/atlassian-python-api/.tox/black/lib/python3.7/site-packages/click/__init__.py)
ERROR: InvocationError for command /atlassian-python-api/.tox/black/bin/black --check --diff atlassian/ examples/ tests/ (exited with code 1)

@gonchik gonchik merged commit 2acca31 into atlassian-api:master Apr 12, 2022
@jaromieee jaromieee deleted the add-support-for-listing-files-from-folder branch June 16, 2022 08:44
@jaromieee jaromieee restored the add-support-for-listing-files-from-folder branch June 16, 2022 08:44
gonchik pushed a commit that referenced this pull request Sep 3, 2022
* updated get_file_list method for folder support

* Update atlassian/bitbucket/__init__.py

Co-authored-by: Arnold Bloemert <[email protected]>

* fix black error

* Update atlassian/bitbucket/__init__.py

Co-authored-by: Arnold Bloemert <[email protected]>

Co-authored-by: Arnold Bloemert <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants