9.8 KiB
title, intro, redirect_from, versions, topics, shortTitle
| title | intro | redirect_from | versions | topics | shortTitle | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Permission levels for a user account repository | A repository owned by a user account has two permission levels: the repository owner and collaborators. |
|
|
|
Permission user repositories |
About permissions levels for a user account repository
Repositories owned by user accounts have one owner. Ownership permissions can't be shared with another user account.
You can also {% ifversion fpt %}invite{% else %}add{% endif %} users on {% data variables.product.product_name %} to your repository as collaborators. For more information, see "Inviting collaborators to a personal repository."
{% tip %}
Tip: If you require more granular access to a repository owned by your user account, consider transferring the repository to an organization. For more information, see "Transferring a repository."
{% endtip %}
Owner access for a repository owned by a user account
The repository owner has full control of the repository. In addition to the actions that any collaborator can perform, the repository owner can perform the following actions.
| Action | More information |
|---|---|
| {% ifversion fpt %}Invite collaborators{% else %}Add collaborators{% endif %} | "Inviting collaborators to a personal repository" |
| Change the visibility of the repository | "Setting repository visibility" |
| Limit interactions with the repository | "Limiting interactions in your repository" |
| Rename a branch, including the default branch | "Renaming a branch" |
| Merge a pull request on a protected branch, even if there are no approving reviews | "About protected branches" |
| Delete the repository | "Deleting a repository" |
| Manage the repository's topics | "Classifying your repository with topics" |
| Manage security and analysis settings for the repository | "Managing security and analysis settings for your repository" |
| Enable the dependency graph for a private repository | "Exploring the dependencies of a repository" |
| Delete and restore packages | "Deleting and restoring a package" |
| Delete packages | "Deleting packages" |
| Customize the repository's social media preview | "Customizing your repository's social media preview" |
| Create a template from the repository | "Creating a template repository" |
| Control access to {% data variables.product.prodname_dependabot_alerts %} alerts for vulnerable dependencies | "Managing security and analysis settings for your repository" |
| Dismiss {% data variables.product.prodname_dependabot_alerts %} in the repository | "Viewing and updating vulnerable dependencies in your repository" |
| Manage data use for a private repository | "Managing data use settings for your private repository" |
| Define code owners for the repository | "About code owners" |
| Archive the repository | "Archiving repositories" |
| Create security advisories | "About {% data variables.product.prodname_security_advisories %}" |
| Display a sponsor button | "Displaying a sponsor button in your repository" |
| Allow or disallow auto-merge for pull requests | "Managing auto-merge for pull requests in your repository" |
Collaborator access for a repository owned by a user account
Collaborators on a personal repository can pull (read) the contents of the repository and push (write) changes to the repository.
{% note %}
Note: In a private repository, repository owners can only grant write access to collaborators. Collaborators can't have read-only access to repositories owned by a user account.
{% endnote %}
Collaborators can also perform the following actions.
| Action | More information |
|---|---|
| Fork the repository | "About forks" |
| Rename a branch other than the default branch | "Renaming a branch" |
| Create, edit, and delete comments on commits, pull requests, and issues in the repository | |
| Create, assign, close, and re-open issues in the repository | "Managing your work with issues" |
| Manage labels for issues and pull requests in the repository | "Labeling issues and pull requests" |
| Manage milestones for issues and pull requests in the repository | "Creating and editing milestones for issues and pull requests" |
| Mark an issue or pull request in the repository as a duplicate | "About duplicate issues and pull requests" |
| Create, merge, and close pull requests in the repository | "Proposing changes to your work with pull requests" |
| Enable and disable auto-merge for a pull request | "Automatically merging a pull request"{% endif %} |
| Apply suggested changes to pull requests in the repository | "Incorporating feedback in your pull request" |
| Create a pull request from a fork of the repository | "Creating a pull request from a fork" |
| Submit a review on a pull request that affects the mergeability of the pull request | "Reviewing proposed changes in a pull request" |
| Create and edit a wiki for the repository | "About wikis" |
| Create and edit releases for the repository | "Managing releases in a repository" |
| Act as a code owner for the repository | "About code owners" |
| Publish, view, or install packages | "Publishing and managing packages" |
| Remove themselves as collaborators on the repository | "Removing yourself from a collaborator's repository" |