fork_project
Create a copy of a Pagure project in your namespace for independent development or experimentation.
Instructions
Fork a Pagure project to your namespace.
Args: project: Project name to fork namespace: Project namespace (default: rpms)
Returns: JSON string with fork creation result
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | ||
| namespace | No | rpms |
Implementation Reference
- src/pagure/client.py:97-117 (handler)The handler implementation for `fork_project` which calls the Pagure API.
async def fork_project( self, project: str, namespace: str = "rpms", ) -> Dict[str, Any]: """Fork a project to your namespace. Args: project: Project name namespace: Project namespace Returns: Fork creation result """ response = await self.client.post( f"{self.api_base}/fork", json={"repo": project, "namespace": namespace}, headers=self._get_headers(), ) response.raise_for_status() return response.json()