| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 882fe7a commit e598762
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -186,6 +186,16 @@ class Project(RefreshMixin, SaveMixin, ObjectDeleteMixin, RepositoryMixin, RESTO | |||
| 186 | 186 | variables: ProjectVariableManager | |
| 187 | 187 | wikis: ProjectWikiManager | |
| 188 | 188 | ||
| 189 | + def __repr__(self) -> str: | ||
| 190 | + project_repr = super().__repr__() | ||
| 191 | + | ||
| 192 | + if hasattr(self, "name_with_namespace"): | ||
| 193 | + return ( | ||
| 194 | + f'{project_repr[:-1]} name_with_namespace:"{self.name_with_namespace}">' | ||
| 195 | + ) | ||
| 196 | + else: | ||
| 197 | + return project_repr | ||
| 198 | + | ||
| 189 | 199 | @cli.register_custom_action("Project", ("forked_from_id",)) | |
| 190 | 200 | @exc.on_http_error(exc.GitlabCreateError) | |
| 191 | 201 | def create_fork_relation(self, forked_from_id: int, **kwargs: Any) -> None: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments