Skip to content

Commit a208661

Browse files
author
Martin Lopes
authored
Merge branch 'main' into ghrunners-arch
2 parents ac5d601 + 42e3f42 commit a208661

File tree

777 files changed

+11344
-8389
lines changed

Some content is hidden

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

777 files changed

+11344
-8389
lines changed

.github/workflows/add-review-template.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@ jobs:
1919
if: github.event.label.name == 'add-review-template' && github.repository == 'github/docs-internal'
2020

2121
steps:
22-
- name: Download the template file
23-
uses: Bhacaz/checkout-files@c8f01756bfd894ba746d5bf48205e19000b0742b
24-
with:
25-
files: .github/review-template.md
26-
token: ${{ secrets.GITHUB_TOKEN }}
22+
- name: Checkout
23+
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
2724

2825
# Jump through some hoops to work with a multi-line file
2926
- name: Store review template in variable

.github/workflows/azure-preview-env-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ jobs:
177177
run: .github/actions-scripts/prune-for-preview-env.sh
178178

179179
- name: 'Build and push image'
180-
uses: docker/build-push-action@7f9d37fa544684fb73bfe4835ed7214c255ce02b
180+
uses: docker/build-push-action@1cb9d22b932e4832bb29793b7777ec860fc1cde0
181181
with:
182182
context: .
183183
push: true

.github/workflows/azure-prod-build-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
run: .github/actions-scripts/merge-early-access.sh
7878

7979
- name: 'Build and push image'
80-
uses: docker/build-push-action@7f9d37fa544684fb73bfe4835ed7214c255ce02b
80+
uses: docker/build-push-action@1cb9d22b932e4832bb29793b7777ec860fc1cde0
8181
with:
8282
context: .
8383
push: true

.github/workflows/azure-staging-build-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
run: .github/actions-scripts/merge-early-access.sh
9696

9797
- name: 'Build and push image'
98-
uses: docker/build-push-action@7f9d37fa544684fb73bfe4835ed7214c255ce02b
98+
uses: docker/build-push-action@1cb9d22b932e4832bb29793b7777ec860fc1cde0
9999
with:
100100
context: .
101101
push: true

.github/workflows/main-preview-docker-cache.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: .github/actions-scripts/prune-for-preview-env.sh
7373

7474
- name: 'Build and push image'
75-
uses: docker/build-push-action@7f9d37fa544684fb73bfe4835ed7214c255ce02b
75+
uses: docker/build-push-action@1cb9d22b932e4832bb29793b7777ec860fc1cde0
7676
with:
7777
context: .
7878
push: true

.github/workflows/sync-search-indices.yml

-9
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ jobs:
7777
env:
7878
VERSION: ${{ github.event.inputs.version }}
7979
LANGUAGE: ${{ github.event.inputs.language }}
80-
# We don't want or need the changelog entries in this context.
81-
# Pages that display the content from these isn't included
82-
# in search index bodies anyway.
83-
CHANGELOG_DISABLED: true
8480
# If a reusable, or anything in the `data/*` directory is deleted
8581
# you might get a
8682
#
@@ -89,11 +85,6 @@ jobs:
8985
# But that'll get fixed in the next translation pipeline. For now,
9086
# let's just accept an empty string instead.
9187
THROW_ON_EMPTY: false
92-
# Because the overload protection runs in NODE_ENV==production
93-
# and it can break the sync-search.
94-
DISABLE_OVERLOAD_PROTECTION: true
95-
# Render caching won't help when we visit every page exactly once.
96-
DISABLE_RENDERING_CACHE: true
9788

9889
run: npm run sync-search
9990

.github/workflows/sync-search-pr.yml

-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,4 @@ jobs:
5151
# Set filtered to only these so it doesn't run for too long.
5252
LANGUAGE: en
5353
VERSION: free-pro-team@latest
54-
# Because the overload protection runs in NODE_ENV==production
55-
# and it can break the sync-search.
56-
DISABLE_OVERLOAD_PROTECTION: true
5754
run: npm run sync-search
Loading
Loading

components/Search.tsx

+13-4
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,20 @@ export function Search({
115115
const isLoading = isLoadingRaw && isLoadingDebounced
116116

117117
useEffect(() => {
118-
if ((router.query.query || '') !== debouncedQuery) {
119-
const [asPathRoot, asPathQuery = ''] = router.asPath.split('?')
118+
// Because we don't want to have to type .trim() everywhere we
119+
// use this variable and we also don't want to change the origin.
120+
// This variable is used to decide if and what we should change
121+
// the URL to.
122+
// Trim whitespace to make sure there's anything left and when
123+
// do put this debounced query into the query string, we use it
124+
// with the whitespace trimmed.
125+
const query = debouncedQuery.trim()
126+
127+
if ((router.query.query || '') !== query) {
128+
const [asPathRoot, asPathQuery = ''] = router.asPath.split('#')[0].split('?')
120129
const params = new URLSearchParams(asPathQuery)
121-
if (debouncedQuery) {
122-
params.set('query', debouncedQuery)
130+
if (query) {
131+
params.set('query', query)
123132
} else {
124133
params.delete('query')
125134
}

components/page-header/LanguagePicker.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export const LanguagePicker = ({ variant }: Props) => {
2626
// in a "denormalized" way.
2727
const routerPath = router.asPath.split('#')[0]
2828

29-
function rememberPreferredLanguage(option: { locale: string }) {
29+
function rememberPreferredLanguage(value: string) {
3030
try {
31-
Cookies.set(PREFERRED_LOCALE_COOKIE_NAME, option.locale, {
31+
Cookies.set(PREFERRED_LOCALE_COOKIE_NAME, value, {
3232
expires: 365,
3333
secure: document.location.protocol !== 'http:',
3434
})

content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/converting-a-user-into-an-organization.md

+11-9
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,33 @@ intro: You can convert your personal account into an organization. This allows m
1111
versions:
1212
fpt: '*'
1313
ghes: '*'
14+
ghae: '*'
1415
ghec: '*'
1516
topics:
1617
- Accounts
1718
shortTitle: User into an organization
1819
---
1920
{% warning %}
2021

21-
**Warning**: Before converting a user into an organization, keep these points in mind:
22-
23-
- You will **no longer** be able to sign into the converted personal account.
24-
- You will **no longer** be able to create or modify gists owned by the converted personal account.
25-
- An organization **cannot** be converted back to a user.
26-
- The SSH keys, OAuth tokens, job profile, reactions, and associated user information, **will not** be transferred to the organization. This is only true for the personal account that's being converted, not any of the personal account's collaborators.
27-
- Any commits made with the converted personal account **will no longer be linked** to that account. The commits themselves **will** remain intact.
28-
- Any forks of private repositories made with the converted personal account will be deleted.
22+
**Warning**: Before converting a user into an organization, keep these points in mind.
2923

24+
* You will **no longer** be able to sign into the converted personal account.
25+
* You will **no longer** be able to create or modify gists owned by the converted personal account.
26+
* An organization **cannot** be converted back to a user.
27+
* The SSH keys, OAuth tokens, job profile, reactions, and associated user information, **will not** be transferred to the organization. This is only true for the personal account that's being converted, not any of the personal account's collaborators.
28+
* Any commits made with the converted personal account **will no longer be linked** to that account. The commits themselves **will** remain intact.
29+
* Any existing comments made by the converted personal account **will no longer be linked** to that account. The comments themselves **will** remain intact, but will be associated with the `ghost` user.
30+
* Any forks of private repositories made with the converted personal account will be deleted.
3031
{% endwarning %}
3132

33+
{% ifversion fpt or ghec or ghes %}
3234
## Keep your personal account and create a new organization manually
3335

3436
If you want your organization to have the same name that you are currently using for your personal account, or if you want to keep your personal account's information intact, then you must create a new organization and transfer your repositories to it instead of converting your personal account into an organization.
3537

3638
1. To retain your current personal account name for your personal use, [change the name of your personal account](/articles/changing-your-github-username) to something new and wonderful.
3739
2. [Create a new organization](/articles/creating-a-new-organization-from-scratch) with the original name of your personal account.
38-
3. [Transfer your repositories](/articles/transferring-a-repository) to your new organization account.
40+
3. [Transfer your repositories](/articles/transferring-a-repository) to your new organization account.{% endif %}
3941

4042
## Convert your personal account into an organization automatically
4143

content/actions/creating-actions/about-custom-actions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ This section explains how you can use release management to distribute updates t
8888

8989
### Good practices for release management
9090

91-
If you're developing an action for other people to use, we recommend using release management to control how you distribute updates. Users can expect an action's major version to include necessary critical fixes and security patches, while still remaining compatible with their existing workflows. You should consider releasing a new major version whenever your changes affect compatibility.
91+
If you're developing an action for other people to use, we recommend using release management to control how you distribute updates. Users can expect an action's patch version to include necessary critical fixes and security patches, while still remaining compatible with their existing workflows. You should consider releasing a new major version whenever your changes affect compatibility.
9292

9393
Under this release management approach, users should not be referencing an action's default branch, as it's likely to contain the latest code and consequently might be unstable. Instead, you can recommend that your users specify a major version when using your action, and only direct them to a more specific version if they encounter issues.
9494

content/actions/creating-actions/metadata-syntax-for-github-actions.md

+4
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,14 @@ runs:
369369
```
370370
{% endif %}
371371

372+
{% ifversion ghes > 3.5 or ghae-issue-6573 %}
373+
372374
#### `runs.steps[*].continue-on-error`
373375

374376
**Optional** Prevents the action from failing when a step fails. Set to `true` to allow the action to pass when this step fails.
375377

378+
{% endif %}
379+
376380
## `runs` for Docker container actions
377381

378382
**Required** Configures the image used for the Docker container action.

content/actions/security-guides/automatic-token-authentication.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ name: Create issue on commit
5353
on: [ push ]
5454

5555
jobs:
56-
create_commit:
57-
runs-on: ubuntu-latest
56+
create_issue:
57+
runs-on: ubuntu-latest
5858
permissions:
5959
issues: write
6060
steps:

content/admin/code-security/index.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ shortTitle: Manage code security
44
intro: 'You can build security into your developers'' workflow with features that keep secrets and vulnerabilities out of your codebase, and that maintain your software supply chain.'
55
versions:
66
ghes: '*'
7-
ghec: '*'
87
ghae: '*'
98
topics:
109
- Enterprise

0 commit comments

Comments
 (0)