(self, full_name, category, check=True)
Register a repository.
Register a repository.
Register a repository .
async def register_repository(self, full_name, category, check=True):
        """Register a repository."""
        from ..repositories.repository import RERPOSITORY_CLASSES

        if full_name in self.common.skip:
            self.logger.debug(f"Skipping {full_name}")
            return

        if category not in RERPOSITORY_CLASSES:
            self.logger.error(f"{category} is not a valid repository category.")
            return False

        repository = RERPOSITORY_CLASSES[category](full_name)
        if check:
            try:
                await repository.registration()
                if repository.validate.errors:
                    self.common.skip.append(repository.information.full_name)
                    if not self.system.status.startup:
                        self.logger.error(f"Validation for {full_name} failed.")
                    return repository.validate.errors
                repository.logger.info("Registration complete")
            except AIOGitHubException as exception:
                self.logger.debug(self.github.ratelimits.remaining)
                self.logger.debug(self.github.ratelimits.reset_utc)
                self.common.skip.append(repository.information.full_name)
                if not self.system.status.startup:
                    self.logger.error(
                        f"Validation for {full_name} failed with {exception}."
                    )
                return
        self.repositories.append(repository)
async def register_repository ( self , full_name , category , check = True ) : from . . repositories . repository import RERPOSITORY_CLASSES if full_name in self . common . skip : self . logger . debug ( f"Skipping {full_name}" ) return if category not in RERPOSITORY_CLASSES : self . logger . error ( f"{category} is not a valid repository category." ) return False repository = RERPOSITORY_CLASSES [ category ] ( full_name ) if check : try : await repository . registration ( ) if repository . validate . errors : self . common . skip . append ( repository . information . full_name ) if not self . system . status . startup : self . logger . error ( f"Validation for {full_name} failed." ) return repository . validate . errors repository . logger . info ( "Registration complete" ) except AIOGitHubException as exception : self . logger . debug ( self . github . ratelimits . remaining ) self . logger . debug ( self . github . ratelimits . reset_utc ) self . common . skip . append ( repository . information . full_name ) if not self . system . status . startup : self . logger . error ( f"Validation for {full_name} failed with {exception}." ) return self . repositories . append ( repository )