Skip to content

Commit 1899570

Browse files
authored
Merge pull request #44264 from github/repo-sync
Repo sync
2 parents 437e812 + 058faf2 commit 1899570

27 files changed

Lines changed: 5904 additions & 15623 deletions

File tree

.github/workflows/changelog-agent.lock.yml

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/changelog-agent.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,15 @@ concurrency:
209209
group: changelog-agent-${{ github.event.pull_request.number || github.event.inputs.pr_number }}
210210
cancel-in-progress: true
211211

212-
engine: copilot
212+
engine:
213+
id: copilot
214+
env:
215+
COPILOT_GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_COPILOT }}
216+
217+
network:
218+
allowed:
219+
- defaults
220+
- github
213221

214222
permissions:
215223
contents: read

data/ui.yml

Lines changed: 52 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
meta:
22
default_description: Get started, troubleshoot, and make the most of GitHub. Documentation for new users, developers, administrators, and all of GitHub's products.
3+
34
header:
45
github_docs: GitHub Docs
56
contact: Contact
@@ -18,12 +19,15 @@ header:
1819
menu: Menu
1920
open_menu_label: Open menu
2021
go_home: Home
22+
2123
picker:
2224
language_picker_label: Language
2325
product_picker_default_text: All products
2426
version_picker_default_text: Choose a version
27+
2528
release_notes:
2629
banner_text: GitHub began rolling these changes out to enterprises on
30+
2731
search:
2832
input:
2933
placeholder: Search or ask {{icon}} Copilot
@@ -70,27 +74,32 @@ search:
7074
general_title: There was an error loading search results.
7175
ai_title: There was an error loading Copilot.
7276
description: You can still use this field to search our docs.
77+
7378
old_search:
7479
description: Enter a search term to find it in the GitHub Docs.
7580
placeholder: Search GitHub Docs
7681
label: Search GitHub Docs
82+
7783
search_results:
7884
search_results_for: Search results for
7985
matches_displayed: Matches displayed
8086
n_results: '{n} results'
8187
search_validation_error: Validation error with search query
8288
filter: Filter
8389
clear_filter: Clear
90+
8491
homepage:
8592
explore_by_product: Explore by product
8693
version_picker: Version
8794
description: Help for wherever you are on your GitHub journey.
95+
8896
toc:
8997
getting_started: Getting started
9098
popular: Popular
9199
startHere: Start here
92100
whats_new: What's new
93101
all_changelogs: All changelog posts
102+
94103
pages:
95104
article_version: 'Article version'
96105
miniToc: In this article
@@ -106,10 +115,12 @@ pages:
106115
more_markdown_options: More Markdown options
107116
opens_in_new_tab: (opens in new tab)
108117
copied: Copied!
118+
109119
support:
110120
still_need_help: Still need help?
111121
contact_support: Contact support
112122
ask_community: Ask the GitHub community
123+
113124
survey:
114125
able_to_find: Did you find what you needed?
115126
yes: Yes
@@ -125,11 +136,13 @@ survey:
125136
not_support: If you need a reply, please contact <a href="https://support.github.com/">support</a>.
126137
privacy_policy: Privacy policy
127138
server_error: Unable to process comment at the moment. Please try again.
139+
128140
contribution_cta:
129141
title: Help us make these docs great!
130142
body: All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.
131143
button: Make a contribution
132144
to_guidelines: Learn how to contribute
145+
133146
parameter_table:
134147
body: Body parameters
135148
webhook-body: Webhook request body parameters
@@ -145,11 +158,13 @@ parameter_table:
145158
see_preview_notices: See preview notices
146159
type: Type
147160
single_enum_description: Value
161+
148162
audit_logs:
149163
action: Action
150164
description: Description
151165
fields: Fields
152166
reference: Reference
167+
153168
graphql:
154169
reference:
155170
implements: <code>{{ GraphQLItemTitle }}</code> Implements
@@ -172,6 +187,7 @@ graphql:
172187
preview_schema_members: 'Previewed schema members'
173188
announced: Announced
174189
updates: Updates
190+
175191
rest:
176192
banner:
177193
api_versioned: The REST API is now versioned.
@@ -192,38 +208,13 @@ rest:
192208
uat: UAT
193209
iat: IAT
194210
screen_reader_text_checkmark_icon: Multiple permissions are required, or a different permission may be used. For more information about the permissions, see the documentation for this endpoint.
211+
195212
rest_reference:
196213
in: In
197214
description: Description
198215
notes: Notes
199216
parameters: Parameters for "{{ RESTOperationTitle }}"
200217
response: Response
201-
secret_scanning:
202-
search_placeholder: Search by provider or secret name...
203-
search_aria_label: Search patterns
204-
filter_aria_label: Filter secret scanning patterns
205-
filter_push_protection: 'Push protection'
206-
filter_validity_check: 'Validity check'
207-
filter_partner_alert: 'Partner alert'
208-
filter_metadata: Metadata check
209-
filter_base64: Base64
210-
filter_all: All
211-
filter_yes: 'Yes'
212-
filter_no: 'No'
213-
showing_patterns: 'Showing {filtered} of {total} patterns'
214-
column_provider: Provider
215-
column_secret: Secret
216-
column_partner: Partner
217-
column_user_alert: User alert
218-
column_push_protection: Push protection
219-
column_validity_check: Validity check
220-
column_metadata: Metadata check
221-
column_base64: Base64
222-
bool_yes: 'Yes'
223-
bool_no: 'No'
224-
token_versions: Token versions
225-
table_title: Supported patterns
226-
pagination_label: Secret scanning patterns pagination
227218
request_example: Request example
228219
request_examples: Request examples
229220
example_response: Example response
@@ -266,6 +257,34 @@ secret_scanning:
266257
no_fine_grained_access: This endpoint does not work with GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens.
267258
basic_auth_heading: Basic authentication for "{{ RESTOperationTitle }}"
268259
basic_auth: You must use <a href="/rest/authentication/authenticating-to-the-rest-api#using-basic-authentication">Basic Authentication</a> to use this endpoint. Use the application's <code>client_id</code> as the username and the <code>client_secret</code> as the password.
260+
261+
secret_scanning:
262+
search_placeholder: Search by provider or secret name...
263+
search_aria_label: Search patterns
264+
filter_aria_label: Filter secret scanning patterns
265+
filter_push_protection: 'Push protection'
266+
filter_validity_check: 'Validity check'
267+
filter_partner_alert: 'Partner alert'
268+
filter_metadata: Metadata check
269+
filter_base64: Base64
270+
filter_all: All
271+
filter_yes: 'Yes'
272+
filter_no: 'No'
273+
showing_patterns: 'Showing {filtered} of {total} patterns'
274+
column_provider: Provider
275+
column_secret: Secret
276+
column_partner: Partner
277+
column_user_alert: User alert
278+
column_push_protection: Push protection
279+
column_validity_check: Validity check
280+
column_metadata: Metadata check
281+
column_base64: Base64
282+
bool_yes: 'Yes'
283+
bool_no: 'No'
284+
token_versions: Token versions
285+
table_title: Supported patterns
286+
pagination_label: Secret scanning patterns pagination
287+
269288
webhooks:
270289
action_type_switch_error: There was an error switching webhook action types.
271290
action_type: Action type
@@ -279,6 +298,7 @@ webhooks:
279298
business: Enterprises
280299
marketplace: GitHub Marketplace
281300
sponsors_listing: Sponsored accounts
301+
282302
footer:
283303
support_heading: Help and support
284304
legal_heading: Legal
@@ -290,9 +310,11 @@ footer:
290310
expert_services: Expert services
291311
blog: Blog
292312
machine: Some of this content may be machine- or AI-translated.
313+
293314
journey_landing:
294315
articles: '{{ number }} Articles'
295316
articles_heading: Articles
317+
296318
product_landing:
297319
article_grid:
298320
heading: Articles
@@ -332,15 +354,19 @@ product_landing:
332354
view: View all
333355
all_docs: 'All {{ title }} docs'
334356
all_content: 'View all {{ title }} content'
357+
335358
journey_track_nav:
336359
prev_article: Previous
337360
next_article: Next
338361
more_articles: More articles →
339362
current_progress: 'Article {i} of {n}'
363+
340364
scroll_button:
341365
scroll_to_top: Scroll to top
366+
342367
popovers:
343368
role_description: hovercard link
369+
344370
alerts:
345371
NOTE: Note
346372
IMPORTANT: Important
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { readFileSync } from 'fs'
2+
import path from 'path'
3+
4+
import { describe, expect, test } from 'vitest'
5+
6+
const uiPath = path.join(process.cwd(), 'data/ui.yml')
7+
8+
describe('data/ui.yml structure', () => {
9+
const content = readFileSync(uiPath, 'utf8')
10+
const lines = content.split('\n')
11+
12+
test('every top-level key is preceded by a blank line (except the first)', () => {
13+
const violations: string[] = []
14+
15+
for (let i = 0; i < lines.length; i++) {
16+
// A top-level key starts at column 0 with a word followed by ':'
17+
if (/^[a-z_]+:/.test(lines[i]) && i > 0) {
18+
if (lines[i - 1].trim() !== '') {
19+
violations.push(`Line ${i + 1}: "${lines[i]}" is not preceded by a blank line`)
20+
}
21+
}
22+
}
23+
24+
expect(violations).toEqual([])
25+
})
26+
})

0 commit comments

Comments
 (0)