-
Notifications
You must be signed in to change notification settings - Fork 59.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34442 from github/repo-sync
Repo sync
- Loading branch information
Showing
10 changed files
with
148 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Issue #11307 | ||
# Documentation for custom organization roles can include repository permissions | ||
versions: | ||
ghec: '*' | ||
ghes: '>=3.15' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{% ifversion discussions %} | ||
|
||
### Discussions | ||
|
||
* Create a discussion category | ||
* Edit a discussion category | ||
* Delete a discussion category | ||
* Mark or unmark discussion answers | ||
* Hide or unhide discussion comments | ||
* Convert issues to discussions | ||
|
||
For more information, see "[AUTOTITLE](/discussions)." | ||
{% endif %} | ||
|
||
### Issue and Pull Requests | ||
|
||
* Assign or remove a user | ||
* Add or remove a label | ||
|
||
### Issue | ||
|
||
* Close an issue | ||
* Reopen a closed issue | ||
* Delete an issue | ||
* Mark an issue as a duplicate | ||
|
||
### Pull Request | ||
|
||
* Close a pull request | ||
* Reopen a closed pull request | ||
* Request a pull request review | ||
|
||
### Repository | ||
|
||
* Set milestones | ||
* Manage wiki settings | ||
* Manage project settings | ||
* Manage pull request merging settings | ||
* Manage {% data variables.product.prodname_pages %} settings (see "[AUTOTITLE](/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site)") | ||
* Manage webhooks | ||
* Manage deploy keys | ||
* Edit repository metadata | ||
{%- ifversion ghec %} | ||
* Set interaction limits | ||
{%- endif %} | ||
* Set the social preview | ||
* Push commits to protected branches | ||
* Base role must be `write` | ||
* Branch protection rules will still apply | ||
* Create protected tags | ||
* Delete protected tags | ||
* Bypass branch protections | ||
{%- ifversion edit-repository-rules %} | ||
* Edit repository rules | ||
{%- endif %} | ||
|
||
### Security | ||
|
||
* View {% data variables.product.prodname_code_scanning %} results | ||
* Dismiss or reopen {% data variables.product.prodname_code_scanning %} results | ||
* Delete {% data variables.product.prodname_code_scanning %} results | ||
* View {% data variables.product.prodname_dependabot_alerts %} | ||
* Dismiss or reopen {% data variables.product.prodname_dependabot_alerts %} | ||
* View {% data variables.product.prodname_secret_scanning %} results | ||
* Dismiss or reopen {% data variables.product.prodname_secret_scanning %} results |
14 changes: 12 additions & 2 deletions
14
data/reusables/organizations/custom-org-roles-create-new-step.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
1. Click **Create a role**. | ||
1. Type a name and description for the custom role. | ||
1. Under "Add permissions", click the text field, then select the permissions you want to add to the custom role. For more information about the available permissions, see "[AUTOTITLE](/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles#additional-permissions-for-custom-roles)." | ||
1. Type a name and description for the custom role.{% ifversion org-custom-role-with-repo-permissions %} | ||
1. Under "Add permissions", click the **Organization** or **Repository** tab to select the type of permissions you want to add to the custom role. | ||
|
||
* To add permissions for the organization, click the **Organization** tab, then select the dropdown menu and click the permissions you want your custom role to include. | ||
* To choose a base repository role to inherit, click the **Repository** tab, then select the dropdown menu and click the base role you want to include in the custom role. For more information about the available base repository roles, see "[Base roles for repository access](/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles#base-roles-for-repository-access)." | ||
|
||
Once you've selected a base repository role, you can add additional permissions to the custom role. For more information about the available permissions, see "[Additional permissions for repository access](/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles#additional-permissions-for-repository-access)." | ||
|
||
>[!NOTE] Adding a repository role and permissions to a custom organization role is currently in public beta and subject to change. | ||
{% else %} | ||
1. Under "Add permissions", click the text field, then select the permissions you want to add to the custom role. For more information about the available permissions, see "[AUTOTITLE](/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles#additional-permissions-for-custom-roles)."{% endif %} | ||
1. Click **Create role**. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
You can have more granular control over the access you grant to your organization's settings by creating custom organization roles. Organization roles are a way to grant an organization member the ability to administer certain subsets of settings without granting full administrative control of the organization and its repositories. For example, you could create a role that contains the "View organization audit log" permission. | ||
You can have more granular control over the access you grant to your {% ifversion org-custom-role-with-repo-permissions %}organization and repository's{% else %} organization's{% endif %} settings by creating custom organization roles. Organization roles are a way to grant an organization member the ability to administer certain subsets of settings without granting full administrative control of the organization and its repositories. For example, you could create a role that contains the "View organization audit log" permission. |
9 changes: 9 additions & 0 deletions
9
data/reusables/organizations/precedence-for-different-levels.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Roles and permissions are additive. If a person is given different levels of access through different avenues, such as team membership and the base permissions for an organization, the user has the sum of all access grants. For example, if an organization owner gives an organization member a custom role that uses the "Read" inherited role, and then an organization owner sets the organization's base permission to "Write", then members with the custom role will have write access, along with any additional permissions included in the custom role. | ||
|
||
{% data reusables.organizations.mixed-roles-warning %} | ||
|
||
To resolve conflicting access, you can adjust your organization's base permissions or the team's access, or edit the custom role. For more information, see: | ||
* "[AUTOTITLE](/organizations/managing-user-access-to-your-organizations-repositories/setting-base-permissions-for-an-organization)" | ||
* "[AUTOTITLE](/organizations/managing-user-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository)" | ||
* "[Editing a repository role](/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/managing-custom-repository-roles-for-an-organization#editing-a-repository-role)"{% ifversion custom-org-roles %} | ||
* "[AUTOTITLE](/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-organization-roles#editing-a-custom-role)"{% endif %} |