예제 #1
0
    def __init__(self, config: ServiceConfig, job_config: JobConfig,
                 event: ReleaseEvent):
        super().__init__(config=config, job_config=job_config, event=event)

        self.project: GitProject = event.get_project()
        self.package_config: PackageConfig = self.get_package_config_from_repo(
            self.project, event.tag_name)
        self.package_config.upstream_project_url = event.project_url
예제 #2
0
    def __init__(self, config: ServiceConfig, job: JobConfig,
                 release_event: ReleaseEvent):
        super().__init__(config=config, job=job, event=release_event)

        self.project: GitProject = release_event.get_project()
        self.package_config: PackageConfig = get_package_config_from_repo(
            self.project, release_event.tag_name)
        if not self.package_config:
            raise ValueError(
                f"No config file found in {self.project.full_repo_name}")
        self.package_config.upstream_project_url = release_event.project_url