Actions56
- Repository Actions
- Issue Actions
- Pull Request Actions
- Organization Actions
- User Actions
- Comment Actions
- Label Actions
- Milestone Actions
- Release Actions
- Branch Actions
- File Actions
Repository → Fork
AI-generatedSummary
Fork a specified repository under the authenticated user's account or an organization.
Inputs
- Authentication — Select the authentication method: Access Token or OAuth2.
- Owner (required) — The owner of the source repository to fork.
- Repository Name (required) — The name of the source repository to fork.
- Organization — (Optional) The organization under which to create the fork.
Output shape
a single JSON object representing the newly forked repository.
Returns the full details of the forked repository as JSON. The 'Organization' field is optional, and if specified, the fork will be created under that organization; otherwise, it will be forked into the authenticated user's account.
Examples
Example 1: Fork a repository to the authenticated user's account
Set 'Owner' and 'Repository Name' to specify the source repository. Leave 'Organization' blank.
Example 2: Fork a repository into a specific organization
Provide 'Owner', 'Repository Name', and set the 'Organization' field to the target organization name.