Skip to content

Commit d2fa91c

Browse files
authored
Merge pull request #40187 from github/repo-sync
Repo sync
2 parents f10d4a7 + 55dac43 commit d2fa91c

File tree

7 files changed

+50
-50
lines changed

7 files changed

+50
-50
lines changed

content/account-and-profile/how-tos/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/merging-multiple-personal-accounts.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ shortTitle: Merge multiple accounts
3939
1. [Transfer any repositories](/repositories/creating-and-managing-repositories/transferring-a-repository) from the account you want to delete to the account you want to keep. Issues, pull requests, and wikis are transferred as well. Verify the repositories exist on the account you want to keep.
4040
1. [Update the remote URLs](/get-started/git-basics/managing-remote-repositories) in any local clones of the repositories that were moved.
4141
1. [Delete the account](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/deleting-your-personal-account) you no longer want to use.
42-
1. To attribute past commits to the new account, add the email address you used to author the commits to the account you're keeping. For more information, see [AUTOTITLE](/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-settings-on-your-profile/why-are-my-contributions-not-showing-up-on-my-profile#your-local-git-commit-email-isnt-connected-to-your-account)
42+
1. To attribute past commits to the new account, add the email address you used to author the commits to the account you're keeping.
43+
> [!NOTE]
44+
> There are additional requirements for commits to count as contributions that you will need to ensure are met. See [AUTOTITLE](/account-and-profile/reference/why-are-my-contributions-not-showing-up-on-my-profile#contribution-criteria-for-commits).
4345
4446
## Further reading
4547

4648
* [AUTOTITLE](/get-started/learning-about-github/types-of-github-accounts)
49+
* [AUTOTITLE](/account-and-profile/reference/best-practices-for-leaving-your-company)

content/get-started/writing-on-github/working-with-advanced-formatting/attaching-files.md

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ The maximum file size is:
5757
5858
## Supported file types
5959

60-
### Image and media files
61-
6260
The following image and media file types are supported in all contexts.
6361

62+
### Image and media files
63+
6464
* PNG (`.png`)
6565
* GIF (`.gif`)
6666
* JPEG (`.jpg`, `.jpeg`)
@@ -72,62 +72,73 @@ The following image and media file types are supported in all contexts.
7272
> [!NOTE]
7373
> Video codec compatibility is browser specific, and it's possible that a video you upload to one browser is not viewable on another browser. At the moment we recommend using H.264 for greatest compatibility.
7474
75-
### Additional file types
75+
## Additional file types
7676

7777
The following file types are supported for uploads in issue comments, pull request comments, and discussion comments within repositories. This list of file types is also supported in organization discussions.
7878

79-
### Supported file types for uploads
80-
81-
#### Documents
79+
### Documents
8280

8381
* PDFs (`.pdf`)
84-
* Microsoft Office documents (`.docx`, `.pptx`, `.xlsx`, `.xls`, `.xlsm`)
82+
* Microsoft Office documents (`.docx`, `.pptx`, `.xlsx`, `.xls`{% ifversion fpt or ghec or ghes > 3.18 %}` ,.xlsm`{% endif %})
83+
{%- ifversion fpt or ghec or ghes > 3.18 %}
8584
* OpenDocument formats (`.odt`, `.fodt`, `.ods`, `.fods`, `.odp`, `.fodp`, `.odg`, `.fodg`, `.odf`)
8685
* Rich text and word processing files (`.rtf`, `.doc`)
86+
{%- endif %}
8787

88-
#### Text and data files
88+
### Text and data files
8989

90-
* Plain text and markup (`.txt`, `.md`, `.copilotmd`)
91-
* Data and tabular files (`.csv`, `.tsv`, `.log`, `.json`, `.jsonc`)
90+
* Plain text and markup (`.txt`{% ifversion fpt or ghec or ghes > 3.18 %}, `.md`, `.copilotmd`{% endif %})
91+
* Data and tabular files (`.csv`,{% ifversion fpt or ghec or ghes > 3.18 %} `.tsv`,{% endif %} `.log`, `.json`, `.jsonc`)
9292

93-
#### Development and code files
93+
### Development and code files
9494

95+
{%- ifversion fpt or ghec or ghes > 3.18 %}
9596
* C files (`.c`)
9697
* C# files (`.cs`)
9798
* C++ files (`.cpp`)
9899
* CSS files (`.css`)
99100
* Diagrams (`.drawio`)
101+
{%- endif %}
100102
* Dump files (`.dmp`)
103+
{%- ifversion fpt or ghec or ghes > 3.18 %}
101104
* HTML files (`.html`, `.htm`)
102105
* Java files (`.java`)
103106
* JavaScript files (`.js`)
104107
* Jupyter notebooks (`.ipynb`)
108+
{%- endif %}
105109
* Patch files (`.patch`)
110+
{%- ifversion fpt or ghec or ghes > 3.18 %}
106111
* PHP files (`.php`)
112+
{%- endif %}
107113
* Profiling files (`.cpuprofile`)
114+
{%- ifversion fpt or ghec or ghes > 3.18 %}
108115
* Program database files (`.pdb`)
109116
* Python files (`.py`)
110117
* Shell scripts (`.sh`)
111118
* SQL files (`.sql`)
112119
* TypeScript files (`.ts`, `.tsx`)
113120
* XML files (`.xml`)
114121
* YAML files (`.yaml`, `.yml`)
122+
{%- endif %}
115123

116124
> [!NOTE]
117125
> If you use Linux and try to upload a `.patch` file, you will receive an error message. This is a known issue.
118126
119-
#### Archive and compressed files
127+
### Archive and compressed files
120128

121129
* Archives and packages (`.zip`, `.gz`, `.tgz`)
122130

123-
#### Communication and logs
131+
{% ifversion fpt or ghec or ghes > 3.18 %}
132+
133+
### Communication and logs
124134

125135
* Text and email files (`.debug`, `.msg`, `.eml`)
126136

127-
#### Images
137+
### Images
128138

129139
* Bitmap and TIFF images (`.bmp`, `.tif`, `.tiff`)
130140

131-
#### Audio
141+
### Audio
132142

133143
* Audio files (`.mp3`, `.wav`)
144+
{% endif %}

content/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/managing-rulesets-for-a-repository.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,7 @@ You can also view active ruselets:
7575

7676
{% ifversion repo-rules-management %}
7777

78-
## Using ruleset history
79-
80-
{% data reusables.repositories.ruleset-beta-note %}
81-
82-
{% data reusables.repositories.ruleset-history-conceptual %}
83-
84-
{% data reusables.repositories.navigate-to-repo %}
85-
{% data reusables.repositories.sidebar-settings %}
86-
{% data reusables.repositories.repo-rulesets-settings %}
87-
{% data reusables.repositories.ruleset-history %}
88-
89-
### Importing a ruleset
78+
## Importing a ruleset
9079

9180
{% data reusables.repositories.import-a-ruleset-conceptual %}
9281

@@ -99,6 +88,17 @@ You can also view active ruselets:
9988

10089
{% ifversion repo-rules-enterprise %}
10190

91+
## Using ruleset history
92+
93+
{% data reusables.repositories.ruleset-beta-note %}
94+
95+
{% data reusables.repositories.ruleset-history-conceptual %}
96+
97+
{% data reusables.repositories.navigate-to-repo %}
98+
{% data reusables.repositories.sidebar-settings %}
99+
{% data reusables.repositories.repo-rulesets-settings %}
100+
{% data reusables.repositories.ruleset-history %}
101+
102102
## Viewing insights for rulesets
103103

104104
You can view insights for rulesets to see how rulesets are affecting a repository. {% data reusables.repositories.about-ruleset-insights %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1. In the upper-right corner of any page on {% data variables.product.prodname_dotcom %}, click your profile picture, then click **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %} Your Copilot**.
1+
1. In the upper-right corner of any page on {% data variables.product.prodname_dotcom %}, click your profile picture, then click **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %} Copilot settings**.

data/ui.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ search:
6363
invalid_query: Sorry, I'm unable to answer that question. Please try asking a different question.
6464
response:
6565
copy_code: Copy code to clipboard
66-
copy_code_lang: Copy {language} code to clipboard, block {block}
66+
copy_code_lang: Copy {language} code to clipboard
6767
copied_code: Copied!
6868
failure:
6969
general_title: There was an error loading search results.

src/fixtures/fixtures/data/ui.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ search:
6363
invalid_query: Sorry, I'm unable to answer that question. Please try asking a different question.
6464
response:
6565
copy_code: Copy code to clipboard
66-
copy_code_lang: Copy {language} code to clipboard, block {block}
66+
copy_code_lang: Copy {language} code to clipboard
6767
copied_code: Copied!
6868
failure:
6969
general_title: There was an error loading search results.

src/frame/components/ui/MarkdownContent/UnrenderedMarkdownContent.tsx

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,6 @@ import useCopyClipboard from '@/rest/components/useClipboard'
1212
import { EventType } from '@/events/types'
1313
import { sendEvent } from '@/events/components/events'
1414

15-
// Create a unique identifier by sampling characters distributed across content
16-
function getBlockId(text: string, targetLength: number = 8) {
17-
const alphanumeric = text.replace(/[^a-zA-Z0-9]+/g, '').toLowerCase()
18-
if (!alphanumeric || alphanumeric.length <= targetLength) {
19-
return Math.random().toString(36).substring(2, 10)
20-
}
21-
const step = alphanumeric.length / targetLength
22-
let result = ''
23-
for (let i = 0; i < targetLength; i++) {
24-
const index = Math.floor(i * step)
25-
result += alphanumeric[index]
26-
}
27-
return result
28-
}
29-
3015
export type MarkdownContentPropsT = {
3116
children: string
3217
className?: string
@@ -44,7 +29,7 @@ export const UnrenderedMarkdownContent = ({
4429
className,
4530
openLinksInNewTab = true,
4631
includeQueryParams = true,
47-
codeBlocksCopyable = true,
32+
codeBlocksCopyable = false,
4833
eventGroupKey = '',
4934
eventGroupId = '',
5035
...restProps
@@ -80,9 +65,10 @@ export const UnrenderedMarkdownContent = ({
8065
if (isCopied) {
8166
return t('search.ai.response.copied_code')
8267
}
83-
return t('search.ai.response.copy_code_lang')
84-
.replace('{language}', language ? `${language} ` : '')
85-
.replace('{block}', getBlockId(text))
68+
return t('search.ai.response.copy_code_lang').replace(
69+
'{language}',
70+
language ? `${language} ` : '',
71+
)
8672
}
8773

8874
return (

0 commit comments

Comments
 (0)