Skip to content
Snippets Groups Projects
Select Git revision
  • b218400b5edbd2e3a63ce05ddf5738d633bfcf40
  • main default protected
  • experiment-step-sharing
  • experiment-color-coded-graph
  • experiment-separated-graph
5 results

utils.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    utils.py 423 B
    def clean_component_id(prefixed_component_id: str) -> str:
        """
        Cleans the local folder name (repos) from the repository path.
    
        Parameters:
        prefixed_component_id (str): the local relative path of a file in a repository located in the "repos" folder
        
        Returns:
        str: the cleaned relative path of a file
        """
        component_id = prefixed_component_id.removeprefix("repos\\")
        return component_id