Skip to content

Commit 4d0e7c6

Browse files
authored
Merge branch 'github:main' into education-add-blackboard-lms
2 parents efdeb01 + b64f820 commit 4d0e7c6

File tree

515 files changed

+1625
-985
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

515 files changed

+1625
-985
lines changed

.github/workflows/sync-audit-logs.yml

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,34 +51,38 @@ jobs:
5151
# Needed for gh
5252
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
5353
run: |
54-
# If nothing to commit, exit now. It's fine. No orphans.
55-
changes=$(git diff --name-only | wc -l)
56-
untracked=$(git status --untracked-files --short | wc -l)
57-
filesChanged=$(git diff --name-only)
58-
# There will always be at least one file changed:
59-
# src/audit-logs/lib/config.json
60-
# If the config file is the only file changed, exit.
61-
if [[ $changes -eq 1 ]] && [[ $untracked -eq 1 ]] && [[ $filesChanged == *lib/config.json ]]; then
62-
echo "There are no changes to commit or untracked files. Exiting..."
54+
echo "Creating a new branch if needed..."
55+
branchname=audit-logs-schema-update-${{ steps.audit-log-allowlists.outputs.COMMIT_SHA }}
56+
remotesha=$(git ls-remote --heads origin $branchname)
57+
if [ -n "$remotesha" ]; then
58+
# output is not empty, it means the remote branch exists
59+
echo "Branch $branchname already exists in 'github/docs-internal'. Exiting..."
6360
exit 0
6461
fi
62+
git checkout -b $branchname
63+
echo "Created a new branch $branchname"
6564
65+
echo "Preparing commit..."
6666
git config --global user.name "docs-bot"
6767
git config --global user.email "77750099+docs-bot@users.noreply.github.com"
68+
git add -A .
69+
echo "Prepared commit"
6870
69-
branchname=audit-logs-schema-update-${{ steps.audit-log-allowlists.outputs.COMMIT_SHA }}
70-
71-
remotesha=$(git ls-remote --heads origin $branchname)
72-
if [ -n "$remotesha" ]; then
73-
# output is not empty, it means the remote branch exists
74-
echo "Branch $branchname already exists in 'github/docs-internal'. Exiting..."
71+
echo "Check if there are changes..."
72+
if git diff-index --cached --quiet HEAD -- . ':(exclude)src/audit-logs/lib/config.json'
73+
then
74+
echo "No real changes (only the SHA in config.json moved). Exiting…"
7575
exit 0
7676
fi
77+
echo "Changes detected, proceeding"
7778
78-
git checkout -b $branchname
79-
git add .
79+
echo "Creating commit..."
8080
git commit -m "Add updated audit log event data"
81+
echo "Created commit"
82+
83+
echo "Pushing commit..."
8184
git push origin $branchname
85+
echo "Pushed commit"
8286
8387
echo "Creating pull request..."
8488
gh pr create \
@@ -89,16 +93,21 @@ jobs:
8993
--repo github/docs-internal \
9094
--label audit-log-pipeline \
9195
--head=$branchname
96+
echo "Created pull request"
9297
9398
# can't approve your own PR, approve with Actions
99+
echo "Approving pull request..."
94100
unset GITHUB_TOKEN
95101
gh auth login --with-token <<< "${{ secrets.GITHUB_TOKEN }}"
96102
gh pr review --approve
103+
echo "Approved pull request"
97104
98105
# Actions can't merge the PR so back to docs-bot to merge the PR
106+
echo "Setting pull request to auto merge..."
99107
unset GITHUB_TOKEN
100108
gh auth login --with-token <<< "${{ secrets.DOCS_BOT_PAT_BASE }}"
101109
gh pr merge --auto
110+
echo "Set pull request to auto merge"
102111
103112
- uses: ./.github/actions/slack-alert
104113
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}

.github/workflows/sync-openapi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
repository: github/models-gateway
5050
path: models-gateway
5151
ref: main
52+
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
5253

5354
- uses: ./.github/actions/node-npm-setup
5455

content/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/personalizing-your-profile.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If you use Gravatar, and your Gravatar image is associated with the email you us
4444
### Resetting your profile picture to the identicon
4545

4646
{% data reusables.user-settings.access_settings %}
47-
1. Under "Profile Picture", select **{% octicon "pencil" aria-hidden="true" %} Edit**, then click **Remove photo** to revert to your identicon.
47+
1. Under "Profile Picture", select **{% octicon "pencil" aria-hidden="true" aria-label="pencil" %} Edit**, then click **Remove photo** to revert to your identicon.
4848

4949
If your email address is associated with a [Gravatar](https://en.gravatar.com/), you cannot revert to your identicon. Click **Revert to Gravatar** instead.
5050

@@ -149,7 +149,7 @@ If you select the "Busy" option, when people @mention your username, assign you
149149

150150
![Screenshot of a draft comment. "@octocat" is written in the text field, and "The Octocat (busy)" is suggested.](/assets/images/help/profile/username-with-limited-availability-text.png)
151151

152-
1. In the top right corner of {% data variables.product.prodname_dotcom %}, select your profile photo, then click **{% octicon "smiley" aria-hidden="true" %} Set status** or, if you already have a status set, click your current status.
152+
1. In the top right corner of {% data variables.product.prodname_dotcom %}, select your profile photo, then click **{% octicon "smiley" aria-hidden="true" aria-label="smiley" %} Set status** or, if you already have a status set, click your current status.
153153

154154
![Screenshot of the dropdown menu under @octocat's profile picture. A smiley icon and "Set status" are outlined in dark orange.](/assets/images/help/profile/set-status-on-profile-global-nav-update.png)
155155

content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-access-to-your-personal-repositories/inviting-collaborators-to-a-personal-repository.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ You can send an invitation to collaborate in your repository directly to someone
4545
1. Ask for the username of the person you're inviting as a collaborator.{% ifversion fpt or ghec %} If they don't have a username yet, they can sign up for {% data variables.product.prodname_dotcom %}. For more information, see [AUTOTITLE](/get-started/start-your-journey/creating-an-account-on-github).{% endif %}
4646
{% data reusables.repositories.navigate-to-repo %}
4747
{% data reusables.repositories.sidebar-settings %}
48-
1. In the "Access" section of the sidebar, click **{% octicon "people" aria-hidden="true" %} Collaborators**.
48+
1. In the "Access" section of the sidebar, click **{% octicon "people" aria-hidden="true" aria-label="people" %} Collaborators**.
4949
1. Click **Add people**.
5050
1. In the search field, start typing the name of person you want to invite, then click a name in the list of matches.
5151
1. Click **Add NAME to REPOSITORY**.

content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-access-to-your-personal-repositories/removing-yourself-from-a-collaborators-repository.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ topics:
2020
shortTitle: Remove yourself
2121
---
2222
{% data reusables.user-settings.access_settings %}
23-
1. In the "Code, planning, and automation" section of the sidebar, click **{% octicon "repo" aria-hidden="true" %} Repositories**.
23+
1. In the "Code, planning, and automation" section of the sidebar, click **{% octicon "repo" aria-hidden="true" aria-label="repo" %} Repositories**.
2424
1. Next to the repository you want to leave, click **Leave**.
2525
1. Read the warning carefully, then click **I understand, leave this repository.**

content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/about-your-personal-dashboard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ You can also find a list of your recently visited repositories, teams, and proje
4949
5050
The feed is designed to help you discover relevant content from projects you follow, keep up with your friends and community members, and track recent activity in your communities.
5151

52-
You can use the **{% octicon "filter" aria-hidden="true" %} Filter** dropdown in the upper right corner to filter the feed to show only the exact event types you'd like to see. For example, you'll see updates when someone you follow:
52+
You can use the **{% octicon "filter" aria-hidden="true" aria-label="filter" %} Filter** dropdown in the upper right corner to filter the feed to show only the exact event types you'd like to see. For example, you'll see updates when someone you follow:
5353

5454
* Stars a repository
5555
* Follows another user

content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/managing-your-tab-size-rendering-preference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ redirect_from:
1616
If you feel that tabbed indentation in code rendered on {% data variables.product.github %} takes up too much, or too little space, you can change this in your settings.
1717

1818
{% data reusables.user-settings.access_settings %}
19-
1. In the left sidebar, click **{% octicon "paintbrush" aria-hidden="true" %} Appearance**.
19+
1. In the left sidebar, click **{% octicon "paintbrush" aria-hidden="true" aria-label="paintbrush" %} Appearance**.
2020
1. Scroll down to "Tab size preference" and use the dropdown menu to choose your preference.

content/actions/administering-github-actions/making-retired-namespaces-available-on-ghecom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ After using an action from {% data variables.product.prodname_dotcom_the_website
2222

2323
{% data reusables.enterprise-accounts.access-enterprise-emu %}
2424
{% data reusables.enterprise-accounts.settings-tab %}
25-
1. Under **{% octicon "gear" aria-hidden="true" %} Settings**, click **Retired namespaces**.
25+
1. Under **{% octicon "gear" aria-hidden="true" aria-label="gear" %} Settings**, click **Retired namespaces**.
2626
1. To the right of the namespace that you want use in your enterprise, click **Unretire**.
2727
1. Go to the relevant organization and create a new repository.
2828

content/actions/managing-workflow-runs-and-deployments/managing-deployments/managing-environments-for-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Variables stored in an environment are only available to workflow jobs that refe
186186
1. Optionally, specify what branches and tags can deploy to this environment. For more information, see [Deployment branches and tags](/actions/deployment/targeting-different-environments/managing-environments-for-deployment#deployment-branches-and-tags).
187187
1. Select the desired option in the **Deployment branches** dropdown.
188188
1. If you chose **Selected branches and tags**, to add a new rule, click **Add deployment branch or tag rule**
189-
1. In the "Ref type" dropdown menu, depending on what rule you want to apply, click **{% octicon "git-branch" aria-hidden="true" %} Branch** or **{% octicon "tag" aria-hidden="true" %} Tag**.
189+
1. In the "Ref type" dropdown menu, depending on what rule you want to apply, click **{% octicon "git-branch" aria-hidden="true" aria-label="git-branch" %} Branch** or **{% octicon "tag" aria-hidden="true" aria-label="tag" %} Tag**.
190190
1. Enter the name pattern for the branch or tag that you want to allow.
191191

192192
{% data reusables.actions.branch-and-tag-deployment-rules-configuration %}

content/actions/managing-workflow-runs-and-deployments/managing-deployments/viewing-deployment-history.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ By default, the deployments page shows currently active deployments from select
4242
* **To view the URL for a deployment**, to the right of the commit message in the deployment history list, click {% octicon "link-external" aria-label="Navigate to deployment URL" %}.
4343
* **To navigate to the workflow run logs associated with a deployment**, to the right of the commit message in the deployment history list, click {% octicon "kebab-horizontal" aria-label="View logs" %}, then click **View logs**.{% ifversion deployment-dashboard-filter %}
4444
1. Optionally, to filter the deployment history list, create a filter.
45-
1. Click on the **{% octicon "filter" aria-hidden="true" %} Filter** button.
46-
1. Click **{% octicon "plus" aria-hidden="true" %} Add a filter**.
45+
1. Click on the **{% octicon "filter" aria-hidden="true" aria-label="filter" %} Filter** button.
46+
1. Click **{% octicon "plus" aria-hidden="true" aria-label="plus" %} Add a filter**.
4747
1. Choose a qualifier you would like to filter the deployment history by.
4848
1. Depending on the qualifier you chose, fill out information in the "Operator" and "Value" columns.
49-
1. Optionally, click **{% octicon "plus" aria-hidden="true" %} Add a filter** to add another filter.
49+
1. Optionally, click **{% octicon "plus" aria-hidden="true" aria-label="plus" %} Add a filter** to add another filter.
5050
1. Click **Apply**.{% endif %}

content/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/re-running-workflows-and-jobs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Re-running a workflow or jobs in a workflow uses the same `GITHUB_SHA` (commit S
2828
{% data reusables.repositories.view-run %}
2929
1. In the upper-right corner of the workflow, re-run jobs.
3030

31-
* If any jobs failed, select the **{% octicon "sync" aria-hidden="true" %} Re-run jobs** dropdown menu and click **Re-run all jobs**.
31+
* If any jobs failed, select the **{% octicon "sync" aria-hidden="true" aria-label="sync" %} Re-run jobs** dropdown menu and click **Re-run all jobs**.
3232

3333
* If no jobs failed, click **Re-run all jobs**.
3434

@@ -70,7 +70,7 @@ If any jobs in a workflow run failed, you can re-run just the jobs that failed.
7070
{% data reusables.repositories.actions-tab %}
7171
{% data reusables.repositories.navigate-to-workflow %}
7272
{% data reusables.repositories.view-run %}
73-
1. In the upper-right corner of the workflow, select the **{% octicon "sync" aria-hidden="true" %} Re-run jobs** dropdown menu, and click **Re-run failed jobs**.
73+
1. In the upper-right corner of the workflow, select the **{% octicon "sync" aria-hidden="true" aria-label="sync" %} Re-run jobs** dropdown menu, and click **Re-run failed jobs**.
7474
{% data reusables.actions.enable-debug-logging %}
7575

7676
{% endwebui %}

content/actions/monitoring-and-troubleshooting-workflows/monitoring-workflows/adding-a-workflow-status-badge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ You can create a workflow status badge directly on the UI using the workflow fil
3030
1. On the right side of the page, next to the "Filter workflow runs" field, click {% octicon "kebab-horizontal" aria-label="Show workflow options" %} to display a dropdown menu and click **Create status badge**.
3131
1. Optionally, select a branch if you want to display the status badge for a branch different from the default branch.
3232
1. Optionally, select the event that will trigger the workflow.
33-
1. Click **{% octicon "copy" aria-hidden="true" %} Copy status badge Markdown**.
33+
1. Click **{% octicon "copy" aria-hidden="true" aria-label="copy" %} Copy status badge Markdown**.
3434
1. Copy the Markdown into your `README.md` file.
3535

3636
## Using the workflow file name

content/actions/monitoring-and-troubleshooting-workflows/monitoring-workflows/viewing-job-execution-time.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Billable job execution minutes are only shown for jobs run on private repositori
1919
{% data reusables.repositories.navigate-to-workflow %}
2020
{% data reusables.repositories.view-run %}
2121
1. Under the job summary, you can view the job's execution time.
22-
1. To view details about the billable job execution time, in the left sidebar under "Run details", click **{% octicon "stopwatch" aria-hidden="true" %} Usage**.
22+
1. To view details about the billable job execution time, in the left sidebar under "Run details", click **{% octicon "stopwatch" aria-hidden="true" aria-label="stopwatch" %} Usage**.
2323

2424
> [!NOTE]
2525
> The billable time shown does not include any minute multipliers. To view your total {% data variables.product.prodname_actions %} usage, including minute multipliers, see [AUTOTITLE](/billing/managing-billing-for-github-actions/viewing-your-github-actions-usage).

content/actions/monitoring-and-troubleshooting-workflows/troubleshooting-workflows/using-copilot-to-troubleshoot-workflows.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ If a workflow run fails, you can open a chat with {% data variables.product.prod
1111

1212
To open a chat about a failed workflow run, you can either:
1313

14-
* Next to the failed check in the merge box, click **{% octicon "kebab-horizontal" aria-hidden="true" %}**, then click **{% octicon "copilot" aria-hidden="true" %} Explain error**.
15-
* In the merge box, click on the failed check. At the top of the workflow run summary page, click **{% octicon "copilot" aria-hidden="true" %} Explain error**.
14+
* Next to the failed check in the merge box, click **{% octicon "kebab-horizontal" aria-hidden="true" aria-label="kebab-horizontal" %}**, then click **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %} Explain error**.
15+
* In the merge box, click on the failed check. At the top of the workflow run summary page, click **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %} Explain error**.
1616

1717
This opens a chat window with {% data variables.product.prodname_copilot %}, where it will provide instructions to resolve the issue.
1818

content/actions/writing-workflows/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This guide assumes that:
4141
* You have a repository on {% data variables.product.github %} where you can add files.
4242
* You have access to {% data variables.product.prodname_actions %}.
4343

44-
> [!NOTE] If the **{% octicon "play" aria-hidden="true" %} Actions** tab is not displayed under the name of your repository on {% data variables.product.prodname_dotcom %}, it may be because Actions is disabled for the repository. For more information, see [AUTOTITLE](/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository).
44+
> [!NOTE] If the **{% octicon "play" aria-hidden="true" aria-label="play" %} Actions** tab is not displayed under the name of your repository on {% data variables.product.prodname_dotcom %}, it may be because Actions is disabled for the repository. For more information, see [AUTOTITLE](/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository).
4545
4646
## Creating your first workflow
4747

content/admin/configuring-settings/hardening-security-for-your-enterprise/configuring-the-referrer-policy-for-your-enterprise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ You can enable the `same-origin` referrer policy to instruct modern browsers to
3232
3333
{% data reusables.enterprise-accounts.access-enterprise %}
3434
{% data reusables.enterprise-accounts.settings-tab %}
35-
1. Under **{% octicon "gear" aria-hidden="true" %} Settings**, click **Authentication security**.
35+
1. Under **{% octicon "gear" aria-hidden="true" aria-label="gear" %} Settings**, click **Authentication security**.
3636
1. Under "User Agent Referrer Policy", select **Enable same origin referrer policy for all organizations**.
3737
1. Click **Save**.

content/admin/configuring-settings/hardening-security-for-your-enterprise/restricting-access-to-githubcom-using-a-corporate-proxy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ An enterprise owner can identify the correct enterprise ID to use in the header
4141

4242
{% data reusables.enterprise-accounts.access-enterprise-emu %}
4343
{% data reusables.enterprise-accounts.settings-tab %}
44-
1. Under {% octicon "gear" aria-hidden="true" %} **Settings**, click **Authentication security**.
44+
1. Under {% octicon "gear" aria-hidden="true" aria-label="gear" %} **Settings**, click **Authentication security**.
4545
1. In the "Enterprise access restrictions" section, find the header for your enterprise. This section is only visible for enterprises with the feature enabled.
4646

4747
## Using the header

content/admin/data-residency/about-github-enterprise-cloud-with-data-residency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ By default, {% data variables.product.company_short %} stores data for {% data v
1616

1717
You can **get started with data residency** by setting up a trial of {% data variables.product.prodname_ghe_cloud %}.
1818

19-
<a href="https://github.com/account/enterprises/new?ref_cta=GHEC+trial&ref_loc=about+ghec+with+data+residency&ref_page=docs" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Set up a trial of {% data variables.product.prodname_ghe_cloud %}</span> {% octicon "link-external" height:16 %}</a>
19+
<a href="https://github.com/account/enterprises/new?ref_cta=GHEC+trial&ref_loc=about+ghec+with+data+residency&ref_page=docs" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Set up a trial of {% data variables.product.prodname_ghe_cloud %}</span> {% octicon "link-external" height:16 aria-label="link-external" %}</a>
2020

2121
## What is {% data variables.product.prodname_ghe_cloud %}?
2222

content/admin/data-residency/getting-started-with-data-residency-for-github-enterprise-cloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To get started with {% data variables.enterprise.data_residency_short %}, you wi
4141
* Includes access to most {% data variables.product.prodname_enterprise %} features, though not the features listed in [Features not included in the trial](/admin/overview/setting-up-a-trial-of-github-enterprise-cloud#features-not-included-in-the-trial)
4242
* Allows you to create up to **three new organizations**
4343

44-
<a href="https://github.com/account/enterprises/new?ref_cta=GHEC+trial&ref_loc=get+started+with+data+residency&ref_page=docs" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Set up a trial of {% data variables.product.prodname_ghe_cloud %}</span> {% octicon "link-external" height:16 %}</a>
44+
<a href="https://github.com/account/enterprises/new?ref_cta=GHEC+trial&ref_loc=get+started+with+data+residency&ref_page=docs" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Set up a trial of {% data variables.product.prodname_ghe_cloud %}</span> {% octicon "link-external" height:16 aria-label="link-external" %}</a>
4545

4646
1. Visit the trial page by clicking the link above.
4747
1. Select **Get started with managed users**.

0 commit comments

Comments
 (0)