创建项目 :param proj_info: dict, 项目信息 :param org_sid: 团队编号 :param team_name: 项目名称 :return: dict, {"project_id": xxx, "project_url": xxx}
(self, proj_info, org_sid, team_name)
| 155 | return rsp_dict["results"] |
| 156 | |
| 157 | def create_proj(self, proj_info, org_sid, team_name): |
| 158 | """ |
| 159 | 创建项目 |
| 160 | :param proj_info: dict, 项目信息 |
| 161 | :param org_sid: 团队编号 |
| 162 | :param team_name: 项目名称 |
| 163 | :return: dict, {"project_id": xxx, "project_url": xxx} |
| 164 | """ |
| 165 | rel_url = f"api/orgs/{org_sid}/teams/{team_name}/projects/" |
| 166 | rsp = CodeDogHttpClient(self._server_url, rel_url, headers=self._headers, json_data=proj_info).post() |
| 167 | return self.get_data_from_result(rsp) |
| 168 | |
| 169 | def get_privete_task(self, org_sid, team_name, repo_id, project_id, job_id): |
| 170 | """ |
no test coverage detected