Skip to content

Commit 8f54271

Browse files
authored
Put repeated text into reusables
1 parent 7102501 commit 8f54271

File tree

5 files changed

+20
-45
lines changed

5 files changed

+20
-45
lines changed

content/codespaces/managing-codespaces-for-your-organization/restricting-access-to-machine-types.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ If you add an organization-wide policy, you should set it to the largest choice
4747

4848
{% data reusables.profile.access_org %}
4949
{% data reusables.profile.org_settings %}
50-
1. In the "Code, planning, and automation" section of the sidebar, select **{% octicon "codespaces" aria-label="The codespaces icon" %} {% data variables.product.prodname_codespaces %}** then click **Policy**.
51-
1. On the "Codespace policies" page, click **Create Policy**.
52-
1. Enter a name for your new policy.
50+
{% data reusables.profile.codespaces-org-policies %}
5351
1. Click **Add constraint** and choose **Machine types**.
5452

5553
![Add a constraint for machine types](/assets/images/help/codespaces/add-constraint-dropdown.png)
@@ -58,18 +56,7 @@ If you add an organization-wide policy, you should set it to the largest choice
5856

5957
![Edit the machine type constraint](/assets/images/help/codespaces/edit-machine-constraint.png)
6058

61-
1. In the "Change policy target" area, click the dropdown button.
62-
1. Choose either **All repositories** or **Selected repositories** to determine which repositories this policy will apply to.
63-
1. If you chose **Selected repositories**:
64-
1. Click {% octicon "gear" aria-label="The settings icon" %}.
65-
66-
![Edit the settings for the policy](/assets/images/help/codespaces/policy-edit.png)
67-
68-
1. Select the repositories you want this policy to apply to.
69-
1. At the bottom of the repository list, click **Select repositories**.
70-
71-
![Select repositories for this policy](/assets/images/help/codespaces/policy-select-repos.png)
72-
59+
{% data reusables.profile.codespaces-policy-targets %}
7360
1. If you want to add another constraint to the policy, click **Add constraint** and choose another constraint. For information about other constraints, see "[Restricting the visibility of forwarded ports](/codespaces/managing-codespaces-for-your-organization/restricting-the-visibility-of-forwarded-ports)" and "[Restricting the idle timeout period](/codespaces/managing-codespaces-for-your-organization/restricting-the-idle-timeout-period)."
7461
1. After you have finished adding constraints to your policy, click **Save**.
7562
## Editing a policy

content/codespaces/managing-codespaces-for-your-organization/restricting-the-idle-timeout-period.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ If you add an organization-wide policy with a timeout constraint, you should set
4242

4343
{% data reusables.profile.access_org %}
4444
{% data reusables.profile.org_settings %}
45-
1. In the "Code, planning, and automation" section of the sidebar, select **{% octicon "codespaces" aria-label="The codespaces icon" %} {% data variables.product.prodname_codespaces %}** then click **Policies**.
46-
1. On the "Codespace policies" page, click **Create Policy**.
47-
1. Enter a name for your new policy.
45+
{% data reusables.profile.codespaces-org-policies %}
4846
1. Click **Add constraint** and choose **Maximum idle timeout**.
4947

5048
![Add a constraint for idle timeout](/assets/images/help/codespaces/add-constraint-dropdown-timeout.png)
@@ -57,18 +55,7 @@ If you add an organization-wide policy with a timeout constraint, you should set
5755

5856
![Choose the port visibility options](/assets/images/help/codespaces/maximum-minutes-timeout.png)
5957

60-
1. In the "Change policy target" area, click the dropdown button.
61-
1. Choose either **All repositories** or **Selected repositories** to determine which repositories this policy will apply to.
62-
1. If you chose **Selected repositories**:
63-
1. Click {% octicon "gear" aria-label="The settings icon" %}.
64-
65-
![Edit the settings for the policy](/assets/images/help/codespaces/policy-edit.png)
66-
67-
2. Select the repositories you want this policy to apply to.
68-
3. At the bottom of the repository list, click **Select repositories**.
69-
70-
![Select repositories for this policy](/assets/images/help/codespaces/policy-select-repos.png)
71-
58+
{% data reusables.profile.codespaces-policy-targets %}
7259
1. If you want to add another constraint to the policy, click **Add constraint** and choose another constraint. For information about other constraints, see "[Restricting access to machine types](/codespaces/managing-codespaces-for-your-organization/restricting-access-to-machine-types)" and "[Restricting the visibility of forwarded ports](/codespaces/managing-codespaces-for-your-organization/restricting-the-visibility-of-forwarded-ports)."
7360
1. After you have finished adding constraints to your policy, click **Save**.
7461

content/codespaces/managing-codespaces-for-your-organization/restricting-the-visibility-of-forwarded-ports.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ If you add an organization-wide policy, you should set it to the most lenient vi
4040

4141
{% data reusables.profile.access_org %}
4242
{% data reusables.profile.org_settings %}
43-
1. In the "Code, planning, and automation" section of the sidebar, select **{% octicon "codespaces" aria-label="The codespaces icon" %} {% data variables.product.prodname_codespaces %}** then click **Policies**.
44-
1. On the "Codespace policies" page, click **Create Policy**.
45-
1. Enter a name for your new policy.
43+
{% data reusables.profile.codespaces-org-policies %}
4644
1. Click **Add constraint** and choose **Port visibility**.
4745

4846
![Add a constraint for port visibility](/assets/images/help/codespaces/add-constraint-dropdown-ports.png)
@@ -55,18 +53,7 @@ If you add an organization-wide policy, you should set it to the most lenient vi
5553

5654
![Choose the port visibility options](/assets/images/help/codespaces/choose-port-visibility-options.png)
5755

58-
1. In the "Change policy target" area, click the dropdown button.
59-
1. Choose either **All repositories** or **Selected repositories** to determine which repositories this policy will apply to.
60-
1. If you chose **Selected repositories**:
61-
1. Click {% octicon "gear" aria-label="The settings icon" %}.
62-
63-
![Edit the settings for the policy](/assets/images/help/codespaces/policy-edit.png)
64-
65-
2. Select the repositories you want this policy to apply to.
66-
3. At the bottom of the repository list, click **Select repositories**.
67-
68-
![Select repositories for this policy](/assets/images/help/codespaces/policy-select-repos.png)
69-
56+
{% data reusables.profile.codespaces-policy-targets %}
7057
1. If you want to add another constraint to the policy, click **Add constraint** and choose another constraint. For information about other constraints, see "[Restricting access to machine types](/codespaces/managing-codespaces-for-your-organization/restricting-access-to-machine-types)" and "[Restricting the idle timeout period](/codespaces/managing-codespaces-for-your-organization/restricting-the-idle-timeout-period)."
7158
1. After you have finished adding constraints to your policy, click **Save**.
7259
## Editing a policy
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
1. In the "Code, planning, and automation" section of the sidebar, select **{% octicon "codespaces" aria-label="The codespaces icon" %} {% data variables.product.prodname_codespaces %}** then click **Policies**.
2+
1. On the "Codespace policies" page, click **Create Policy**.
3+
1. Enter a name for your new policy.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
1. In the "Change policy target" area, click the dropdown button.
2+
1. Choose either **All repositories** or **Selected repositories** to determine which repositories this policy will apply to.
3+
1. If you chose **Selected repositories**:
4+
1. Click {% octicon "gear" aria-label="The settings icon" %}.
5+
6+
![Edit the settings for the policy](/assets/images/help/codespaces/policy-edit.png)
7+
8+
2. Select the repositories you want this policy to apply to.
9+
3. At the bottom of the repository list, click **Select repositories**.
10+
11+
![Select repositories for this policy](/assets/images/help/codespaces/policy-select-repos.png)

0 commit comments

Comments
 (0)