Skip to content

Commit d5bd8c1

Browse files
authored
Merge pull request #37562 from github/repo-sync
Repo sync
2 parents c1462ec + da6b6ec commit d5bd8c1

File tree

15 files changed

+174
-14
lines changed

15 files changed

+174
-14
lines changed

content/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications.md

+11
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,17 @@ The `reply-to` address on each email notification identifies the thread and the
160160

161161
## Automatic watching
162162

163+
<!-- expires 2025-05-18 -->
164+
165+
<!-- When this expires, remove the Automatic watching section for FPT/GHEC but keep it for GHES <=3.17 -->
166+
167+
{% ifversion fpt or ghec %}
168+
169+
>[!WARNING] Starting May 18, 2025, {% data variables.product.company_short %} will deprecate automatic watching of repositories and teams. Existing subscriptions will remain unaffected, ensuring you can stay subscribed to repositories or teams that you were previously watching.
170+
171+
{% endif %}
172+
<!-- end expires 2025-05-18 -->
173+
163174
By default, anytime you gain access to a new repository, you will automatically begin watching that repository. Anytime you join a new team, you will automatically be subscribed to updates and receive notifications when that team is @mentioned. If you don't want to automatically be subscribed, you can unselect the automatic watching options in your notification settings.
164175

165176
{% ifversion update-notification-settings-22 %}

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

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ The following table shows the permissions granted to the `GITHUB_TOKEN` by defau
9292
| {% endif %} |
9393
| issues | read/write | none | read |
9494
| metadata | read | read | read |
95+
| models | read | none | none |
9596
| packages | read/write | read | read |
9697
| pages | read/write | none | read |
9798
| pull-requests | read/write | none | read |

content/actions/security-for-github-actions/using-artifact-attestations/enforcing-artifact-attestations-with-a-kubernetes-admission-controller.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ First, install the Helm chart that deploys the Sigstore Policy Controller:
5555
helm upgrade policy-controller --install --atomic \
5656
--create-namespace --namespace artifact-attestations \
5757
oci://ghcr.io/github/artifact-attestations-helm-charts/policy-controller \
58-
--version v0.12.0-github10
58+
--version v0.12.0-github12
5959
```
6060

6161
This installs the Policy Controller into the `artifact-attestations` namespace. At this point, no policies have been configured, and it will not enforce any attestations.
@@ -139,7 +139,7 @@ To see the full set of options you may configure with the Helm chart, you can ru
139139
For policy controller options:
140140

141141
```bash copy
142-
helm show values oci://ghcr.io/github/artifact-attestations-helm-charts/policy-controller --version v0.12.0-github10
142+
helm show values oci://ghcr.io/github/artifact-attestations-helm-charts/policy-controller --version v0.12.0-github12
143143
```
144144

145145
For trust policy options:

src/audit-logs/data/fpt/organization.json

+10
Original file line numberDiff line numberDiff line change
@@ -2814,6 +2814,16 @@
28142814
"description": "Branch protections were enabled for this repository.",
28152815
"docs_reference_links": "/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule"
28162816
},
2817+
{
2818+
"action": "repository_code_security.disable",
2819+
"description": "Code security was disabled for a repository.",
2820+
"docs_reference_links": "N/A"
2821+
},
2822+
{
2823+
"action": "repository_code_security.enable",
2824+
"description": "Code security was enabled for a repository.",
2825+
"docs_reference_links": "N/A"
2826+
},
28172827
{
28182828
"action": "repository_content_analysis.disable",
28192829
"description": "Data use settings were disabled for a private repository.",

src/audit-logs/data/ghec/enterprise.json

+12-2
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@
222222
{
223223
"action": "business.code_scanning_autofix_third_party_tools_policy_update",
224224
"description": "The policy for Code scanning autofix third party tools was updated for an enterprise.",
225-
"docs_reference_links": "N/A"
225+
"docs_reference_links": "/code-security/getting-started/github-security-features#available-with-github-code-security"
226226
},
227227
{
228228
"action": "business.code_security_enablement_policy_update",
229229
"description": "The policy for Code Security enablement was updated for an enterprise.",
230-
"docs_reference_links": "N/A"
230+
"docs_reference_links": "/code-security/getting-started/github-security-features#available-with-github-code-security"
231231
},
232232
{
233233
"action": "business.connect_usage_metrics_export",
@@ -3569,6 +3569,16 @@
35693569
"description": "Branch protections were enabled for this repository.",
35703570
"docs_reference_links": "/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule"
35713571
},
3572+
{
3573+
"action": "repository_code_security.disable",
3574+
"description": "Code security was disabled for a repository.",
3575+
"docs_reference_links": "N/A"
3576+
},
3577+
{
3578+
"action": "repository_code_security.enable",
3579+
"description": "Code security was enabled for a repository.",
3580+
"docs_reference_links": "N/A"
3581+
},
35723582
{
35733583
"action": "repository_content_analysis.disable",
35743584
"description": "Data use settings were disabled for a private repository.",

src/audit-logs/data/ghec/organization.json

+10
Original file line numberDiff line numberDiff line change
@@ -2814,6 +2814,16 @@
28142814
"description": "Branch protections were enabled for this repository.",
28152815
"docs_reference_links": "/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule"
28162816
},
2817+
{
2818+
"action": "repository_code_security.disable",
2819+
"description": "Code security was disabled for a repository.",
2820+
"docs_reference_links": "N/A"
2821+
},
2822+
{
2823+
"action": "repository_code_security.enable",
2824+
"description": "Code security was enabled for a repository.",
2825+
"docs_reference_links": "N/A"
2826+
},
28172827
{
28182828
"action": "repository_content_analysis.disable",
28192829
"description": "Data use settings were disabled for a private repository.",

src/audit-logs/data/ghes-3.16/enterprise.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
{
168168
"action": "business.code_scanning_autofix_third_party_tools_policy_update",
169169
"description": "The policy for Code scanning autofix third party tools was updated for an enterprise.",
170-
"docs_reference_links": "N/A"
170+
"docs_reference_links": "/code-security/getting-started/github-security-features#available-with-github-code-security"
171171
},
172172
{
173173
"action": "business.create",

src/audit-logs/data/ghes-3.17/enterprise.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@
167167
{
168168
"action": "business.code_scanning_autofix_third_party_tools_policy_update",
169169
"description": "The policy for Code scanning autofix third party tools was updated for an enterprise.",
170-
"docs_reference_links": "N/A"
170+
"docs_reference_links": "/code-security/getting-started/github-security-features#available-with-github-code-security"
171171
},
172172
{
173173
"action": "business.code_security_enablement_policy_update",
174174
"description": "The policy for Code Security enablement was updated for an enterprise.",
175-
"docs_reference_links": "N/A"
175+
"docs_reference_links": "/code-security/getting-started/github-security-features#available-with-github-code-security"
176176
},
177177
{
178178
"action": "business.create",

src/audit-logs/lib/config.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
"apiOnlyEvents": "This event is not available in the web interface, only via the REST API, audit log streaming, or JSON/CSV exports.",
44
"apiRequestEvent": "This event is only available via audit log streaming."
55
},
6-
"sha": "d6aa2c08e5ced4ad92d2d6563fabaa683a9a7663"
7-
}
8-
6+
"sha": "ae4d8faa66c3986541a6db3a45bcf66e839fd773"
7+
}

src/graphql/data/fpt/changelog.json

+14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
[
2+
{
3+
"schemaChanges": [
4+
{
5+
"title": "The GraphQL schema includes these changes:",
6+
"changes": [
7+
"<p>Type <code>RepositorySuggestedActorFilter</code> was added</p>",
8+
"<p>Argument 'capabilities: [RepositorySuggestedActorFilter!]!<code>added to field</code>Repository.suggestedActors'</p>"
9+
]
10+
}
11+
],
12+
"previewChanges": [],
13+
"upcomingChanges": [],
14+
"date": "2025-04-15"
15+
},
216
{
317
"schemaChanges": [
418
{

src/graphql/data/fpt/schema.docs.graphql

+20
Original file line numberDiff line numberDiff line change
@@ -50840,6 +50840,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
5084050840
"""
5084150841
before: String
5084250842

50843+
"""
50844+
A list of capabilities to filter actors by.
50845+
"""
50846+
capabilities: [RepositorySuggestedActorFilter!]!
50847+
5084350848
"""
5084450849
Returns the first _n_ elements from the list.
5084550850
"""
@@ -52888,6 +52893,21 @@ enum RepositoryRulesetTarget {
5288852893
TAG
5288952894
}
5289052895

52896+
"""
52897+
The possible filters for suggested actors in a repository
52898+
"""
52899+
enum RepositorySuggestedActorFilter {
52900+
"""
52901+
Actors that can be assigned to issues and pull requests
52902+
"""
52903+
CAN_BE_ASSIGNED
52904+
52905+
"""
52906+
Actors that can be the author of issues and pull requests
52907+
"""
52908+
CAN_BE_AUTHOR
52909+
}
52910+
5289152911
"""
5289252912
A repository-topic connects a repository to a topic.
5289352913
"""

src/graphql/data/fpt/schema.json

+27
Original file line numberDiff line numberDiff line change
@@ -67349,6 +67349,16 @@
6734967349
"href": "/graphql/reference/scalars#string"
6735067350
}
6735167351
},
67352+
{
67353+
"name": "capabilities",
67354+
"description": "<p>A list of capabilities to filter actors by.</p>",
67355+
"type": {
67356+
"name": "[RepositorySuggestedActorFilter!]!",
67357+
"id": "repositorysuggestedactorfilter",
67358+
"kind": "enums",
67359+
"href": "/graphql/reference/enums#repositorysuggestedactorfilter"
67360+
}
67361+
},
6735267362
{
6735367363
"name": "first",
6735467364
"description": "<p>Returns the first <em>n</em> elements from the list.</p>",
@@ -92393,6 +92403,23 @@
9239392403
}
9239492404
]
9239592405
},
92406+
{
92407+
"name": "RepositorySuggestedActorFilter",
92408+
"kind": "enums",
92409+
"id": "repositorysuggestedactorfilter",
92410+
"href": "/graphql/reference/enums#repositorysuggestedactorfilter",
92411+
"description": "<p>The possible filters for suggested actors in a repository.</p>",
92412+
"values": [
92413+
{
92414+
"name": "CAN_BE_ASSIGNED",
92415+
"description": "<p>Actors that can be assigned to issues and pull requests.</p>"
92416+
},
92417+
{
92418+
"name": "CAN_BE_AUTHOR",
92419+
"description": "<p>Actors that can be the author of issues and pull requests.</p>"
92420+
}
92421+
]
92422+
},
9239692423
{
9239792424
"name": "RepositoryVisibility",
9239892425
"kind": "enums",

src/graphql/data/ghec/schema.docs.graphql

+20
Original file line numberDiff line numberDiff line change
@@ -50840,6 +50840,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
5084050840
"""
5084150841
before: String
5084250842

50843+
"""
50844+
A list of capabilities to filter actors by.
50845+
"""
50846+
capabilities: [RepositorySuggestedActorFilter!]!
50847+
5084350848
"""
5084450849
Returns the first _n_ elements from the list.
5084550850
"""
@@ -52888,6 +52893,21 @@ enum RepositoryRulesetTarget {
5288852893
TAG
5288952894
}
5289052895

52896+
"""
52897+
The possible filters for suggested actors in a repository
52898+
"""
52899+
enum RepositorySuggestedActorFilter {
52900+
"""
52901+
Actors that can be assigned to issues and pull requests
52902+
"""
52903+
CAN_BE_ASSIGNED
52904+
52905+
"""
52906+
Actors that can be the author of issues and pull requests
52907+
"""
52908+
CAN_BE_AUTHOR
52909+
}
52910+
5289152911
"""
5289252912
A repository-topic connects a repository to a topic.
5289352913
"""

src/graphql/data/ghec/schema.json

+27
Original file line numberDiff line numberDiff line change
@@ -67349,6 +67349,16 @@
6734967349
"href": "/graphql/reference/scalars#string"
6735067350
}
6735167351
},
67352+
{
67353+
"name": "capabilities",
67354+
"description": "<p>A list of capabilities to filter actors by.</p>",
67355+
"type": {
67356+
"name": "[RepositorySuggestedActorFilter!]!",
67357+
"id": "repositorysuggestedactorfilter",
67358+
"kind": "enums",
67359+
"href": "/graphql/reference/enums#repositorysuggestedactorfilter"
67360+
}
67361+
},
6735267362
{
6735367363
"name": "first",
6735467364
"description": "<p>Returns the first <em>n</em> elements from the list.</p>",
@@ -92393,6 +92403,23 @@
9239392403
}
9239492404
]
9239592405
},
92406+
{
92407+
"name": "RepositorySuggestedActorFilter",
92408+
"kind": "enums",
92409+
"id": "repositorysuggestedactorfilter",
92410+
"href": "/graphql/reference/enums#repositorysuggestedactorfilter",
92411+
"description": "<p>The possible filters for suggested actors in a repository.</p>",
92412+
"values": [
92413+
{
92414+
"name": "CAN_BE_ASSIGNED",
92415+
"description": "<p>Actors that can be assigned to issues and pull requests.</p>"
92416+
},
92417+
{
92418+
"name": "CAN_BE_AUTHOR",
92419+
"description": "<p>Actors that can be the author of issues and pull requests.</p>"
92420+
}
92421+
]
92422+
},
9239692423
{
9239792424
"name": "RepositoryVisibility",
9239892425
"kind": "enums",

src/search/components/input/SearchOverlay.tsx

+15-4
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ export function SearchOverlay({
338338
if (searchParams.has('search-overlay-ask-ai')) {
339339
searchParams.delete('search-overlay-ask-ai')
340340
}
341+
if (searchParams.has('query')) {
342+
searchParams.delete('query')
343+
}
341344
router.push(`${selectedOption.url}?${searchParams.toString()}` || '')
342345
onClose()
343346
}
@@ -389,6 +392,9 @@ export function SearchOverlay({
389392
if (searchParams.has('search-overlay-ask-ai')) {
390393
searchParams.delete('search-overlay-ask-ai')
391394
}
395+
if (searchParams.has('query')) {
396+
searchParams.delete('query')
397+
}
392398
window.open(`${url}?${searchParams.toString()}` || '', '_blank')
393399
}
394400

@@ -465,8 +471,11 @@ export function SearchOverlay({
465471
selectedIndex < combinedOptions.length
466472
) {
467473
const selectedItem = combinedOptions[selectedIndex]
474+
if (!selectedItem) {
475+
return
476+
}
468477
let action = () => {} // Execute the action after we send the event
469-
if (selectedItem.group === 'general') {
478+
if (selectedItem?.group === 'general') {
470479
if (
471480
(selectedItem.option as GeneralSearchHitWithOptions).isViewAllResults ||
472481
(selectedItem.option as GeneralSearchHitWithOptions).isSearchDocsOption
@@ -477,10 +486,10 @@ export function SearchOverlay({
477486
pressedOnContext = 'general-option'
478487
action = () => generalSearchResultOnSelect(selectedItem.option as GeneralSearchHit)
479488
}
480-
} else if (selectedItem.group === 'ai') {
489+
} else if (selectedItem?.group === 'ai') {
481490
pressedOnContext = 'ai-option'
482491
action = () => aiSearchOptionOnSelect(selectedItem.option as AutocompleteSearchHit)
483-
} else if (selectedItem.group === 'reference') {
492+
} else if (selectedItem?.group === 'reference') {
484493
// On a reference select, we are in the Ask AI State / Screen
485494
pressedGroupKey = ASK_AI_EVENT_GROUP
486495
pressedGroupId = askAIEventGroupId
@@ -503,6 +512,8 @@ export function SearchOverlay({
503512
'search-overlay-ask-ai': '',
504513
'search-overlay-input': urlSearchInputQuery,
505514
})
515+
// Focus the search input
516+
inputRef.current?.focus()
506517
}
507518

508519
// We render the AI Result in the searchGroups call, so we pass the props down via an object
@@ -675,7 +686,7 @@ export function SearchOverlay({
675686
aria-expanded={combinedOptions.length > 0}
676687
aria-activedescendant={
677688
selectedIndex >= 0
678-
? `search-option-${combinedOptions[selectedIndex].group}-${selectedIndex}`
689+
? `search-option-${combinedOptions[selectedIndex]?.group}-${selectedIndex}`
679690
: undefined
680691
}
681692
onKeyDown={handleKeyDown}

0 commit comments

Comments
 (0)