Skip to content

updated get_file_list method for folder support #955

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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.

jaromieee and others added 2 commits March 28, 2022 19:21
Co-authored-by: Arnold Bloemert <abloemert@gmail.com>
Co-authored-by: Arnold Bloemert <abloemert@gmail.com>
@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 <abloemert@gmail.com>

* fix black error

* Update atlassian/bitbucket/__init__.py

Co-authored-by: Arnold Bloemert <abloemert@gmail.com>

Co-authored-by: Arnold Bloemert <abloemert@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants