Skip to content

Parse main repository license if not available in subdir (#540)#547

Open
marioscrock wants to merge 1 commit intoCLARIAH:devfrom
cefriel:feat-root-license
Open

Parse main repository license if not available in subdir (#540)#547
marioscrock wants to merge 1 commit intoCLARIAH:devfrom
cefriel:feat-root-license

Conversation

@marioscrock
Copy link
Copy Markdown

Root folder is checked if the license file is not found in the provided subdir (see discussion in #540).

"""Returns a list of file items contained on the gitlab repo."""
return self._fetchFilesFromPath(self.subdir)

def _fetchFilesFromPath(self, path):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think variable path will clash with import from os import path.

@c-martinez
Copy link
Copy Markdown
Collaborator

Hi @marioscrock -- thanks for this PR (and sorry for the delayed in reacting to it)

I think it looks fine, but it might be good to add a few tests. Do you think you could implement them (otherwise I can give it a go, but it might take me a while to get to it).

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.

2 participants