Skip to content

Commit

Permalink
Merge pull request github#35297 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Nov 15, 2024
2 parents 2da1ee5 + 6530203 commit c20e5a5
Show file tree
Hide file tree
Showing 15 changed files with 182 additions and 46 deletions.
4 changes: 2 additions & 2 deletions src/audit-logs/data/fpt/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
},
{
"action": "auto_approve_personal_access_token_requests.disable",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources.",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources. See also: personal_access_token.auto_approve_grant_requests_disabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
"action": "auto_approve_personal_access_token_requests.enable",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval.",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval. See also: personal_access_token.auto_approve_grant_requests_enabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
Expand Down
5 changes: 5 additions & 0 deletions src/audit-logs/data/fpt/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,11 @@
"description": "An authorization for an OAuth application was deleted.",
"docs_reference_links": "/apps/using-github-apps/reviewing-your-authorized-integrations"
},
{
"action": "oauth_authorization.update",
"description": "An authorization for an OAuth application was updated.",
"docs_reference_links": "/apps/oauth-apps/using-oauth-apps/authorizing-oauth-apps"
},
{
"action": "org.add_member",
"description": "A user joined an organization.",
Expand Down
44 changes: 32 additions & 12 deletions src/audit-logs/data/ghec/enterprise.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@
},
{
"action": "auto_approve_personal_access_token_requests.disable",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources.",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources. See also: personal_access_token.auto_approve_grant_requests_disabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
"action": "auto_approve_personal_access_token_requests.enable",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval.",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval. See also: personal_access_token.auto_approve_grant_requests_enabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
Expand Down Expand Up @@ -1279,16 +1279,6 @@
"description": "An external identity was updated.",
"docs_reference_links": "N/A"
},
{
"action": "forbid_auto_approve_personal_access_token_requests.disable",
"description": "Auto-approve policy for fine-grained personal access tokens was enabled for the organization.",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization#enforcing-an-approval-policy-for-fine-grained-personal-access-tokens"
},
{
"action": "forbid_auto_approve_personal_access_token_requests.enable",
"description": "Auto-approve policy for fine-grained personal access tokens was disabled for the organization.",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization#enforcing-an-approval-policy-for-fine-grained-personal-access-tokens"
},
{
"action": "git.clone",
"description": "A repository was cloned.",
Expand Down Expand Up @@ -3879,6 +3869,36 @@
"description": "A user requested to bypass secret scanning push protection.",
"docs_reference_links": "/code-security/secret-scanning/working-with-push-protection#requesting-bypass-privileges-when-working-with-the-command-line"
},
{
"action": "security_configuration.create",
"description": "A security configuration was created",
"docs_reference_links": "N/A"
},
{
"action": "security_configuration_default.delete",
"description": "A default security configuration setting for new repositories was removed.",
"docs_reference_links": "N/A"
},
{
"action": "security_configuration_default.update",
"description": "A default security configuration setting for new repositories was updated.",
"docs_reference_links": "N/A"
},
{
"action": "security_configuration.delete",
"description": "A security configuration was deleted",
"docs_reference_links": "N/A"
},
{
"action": "security_configuration_policy.update",
"description": "A security configuration policy was updated",
"docs_reference_links": "N/A"
},
{
"action": "security_configuration.update",
"description": "A security configuration was updated",
"docs_reference_links": "N/A"
},
{
"action": "sponsors.agreement_sign",
"description": "A GitHub Sponsors agreement was signed on behalf of an organization.",
Expand Down
4 changes: 2 additions & 2 deletions src/audit-logs/data/ghec/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
},
{
"action": "auto_approve_personal_access_token_requests.disable",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources.",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources. See also: personal_access_token.auto_approve_grant_requests_disabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
"action": "auto_approve_personal_access_token_requests.enable",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval.",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval. See also: personal_access_token.auto_approve_grant_requests_enabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
Expand Down
5 changes: 5 additions & 0 deletions src/audit-logs/data/ghec/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,11 @@
"description": "An authorization for an OAuth application was deleted.",
"docs_reference_links": "/apps/using-github-apps/reviewing-your-authorized-integrations"
},
{
"action": "oauth_authorization.update",
"description": "An authorization for an OAuth application was updated.",
"docs_reference_links": "/apps/oauth-apps/using-oauth-apps/authorizing-oauth-apps"
},
{
"action": "org.add_member",
"description": "A user joined an organization.",
Expand Down
4 changes: 2 additions & 2 deletions src/audit-logs/data/ghes-3.11/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
},
{
"action": "auto_approve_personal_access_token_requests.disable",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources.",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources. See also: personal_access_token.auto_approve_grant_requests_disabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
"action": "auto_approve_personal_access_token_requests.enable",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval.",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval. See also: personal_access_token.auto_approve_grant_requests_enabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/audit-logs/data/ghes-3.12/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
},
{
"action": "auto_approve_personal_access_token_requests.disable",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources.",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources. See also: personal_access_token.auto_approve_grant_requests_disabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
"action": "auto_approve_personal_access_token_requests.enable",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval.",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval. See also: personal_access_token.auto_approve_grant_requests_enabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/audit-logs/data/ghes-3.13/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
},
{
"action": "auto_approve_personal_access_token_requests.disable",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources.",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources. See also: personal_access_token.auto_approve_grant_requests_disabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
"action": "auto_approve_personal_access_token_requests.enable",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval.",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval. See also: personal_access_token.auto_approve_grant_requests_enabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/audit-logs/data/ghes-3.14/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
},
{
"action": "auto_approve_personal_access_token_requests.disable",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources.",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources. See also: personal_access_token.auto_approve_grant_requests_disabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
"action": "auto_approve_personal_access_token_requests.enable",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval.",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval. See also: personal_access_token.auto_approve_grant_requests_enabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/audit-logs/data/ghes-3.15/organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
},
{
"action": "auto_approve_personal_access_token_requests.disable",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources.",
"description": "Triggered when the organization must approve fine-grained personal access tokens before the tokens can access organization resources. See also: personal_access_token.auto_approve_grant_requests_disabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
"action": "auto_approve_personal_access_token_requests.enable",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval.",
"description": "Triggered when fine-grained personal access tokens can access organization resources without prior approval. See also: personal_access_token.auto_approve_grant_requests_enabled",
"docs_reference_links": "/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization"
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/audit-logs/lib/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"apiOnlyEvents": "This event is not available in the web interface, only via the REST API, audit log streaming, or JSON/CSV exports.",
"apiRequestEvent": "This event is only available via audit log streaming."
},
"sha": "0f178a562a0c8017d95657f31865a541f44c3a03"
"sha": "61a843e468c47922c5b4504d9710fc4ea5608d05"
}
61 changes: 45 additions & 16 deletions src/landings/components/CookBookArticleCard.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,37 @@
import { Label, LabelGroup, Link } from '@primer/react'
import { BugIcon } from '@primer/octicons-react'
import {
BugIcon,
LightBulbIcon,
CodeIcon,
GearIcon,
RocketIcon,
BeakerIcon,
CopilotIcon,
HubotIcon,
LogIcon,
TerminalIcon,
BookIcon,
} from '@primer/octicons-react'

const Icons = {
bug: BugIcon,
lightbulb: LightBulbIcon,
code: CodeIcon,
gear: GearIcon,
rocket: RocketIcon,
beaker: BeakerIcon,
copilot: CopilotIcon,
hubot: HubotIcon,
log: LogIcon,
terminal: TerminalIcon,
book: BookIcon,
}

type IconType = keyof typeof Icons

type Props = {
title?: string
icon?: string
icon?: IconType
url?: string
description?: string
tags?: string[]
Expand All @@ -17,18 +45,7 @@ const defaultProps = {
description:
'Man bun letterpress put a bird on it la croix offal, meh grailed hot chicken kombucha gochujang messenger bag fit before they sold out lyft.',
tags: ['Tag Example', 'Tag Example'],
icon: 'bugicon',
}

function setIcon(icon: string) {
switch (icon) {
case 'bugicon':
return <BugIcon size={48} className="mr-4 bgColor-accent-muted p-3 circle fgColor-accent" />
case 'none':
return null
default:
return null
}
icon: 'book',
}

function setImage(image: string) {
Expand All @@ -51,21 +68,33 @@ function setImage(image: string) {
const spotlightClasses = 'd-flex flex-column align-items-center'
export const CookBookArticleCard = ({
title = defaultProps.title,
icon = defaultProps.icon,
icon = defaultProps.icon as IconType,
tags = defaultProps.tags,
description = defaultProps.description,
image = '',
url,
spotlight = false,
}: Props) => {
const setIcon = (icon: keyof typeof Icons) => {
return Icons[icon] || CopilotIcon
}

const IconComponent = setIcon(icon as keyof typeof Icons)
return (
<div className="m-2">
<div
style={{ minHeight: 200 }}
className={spotlight ? spotlightClasses : 'd-flex pb-3 border-bottom'}
>
{spotlight ? setImage(image) : null}
{spotlight ? setIcon('none') : setIcon(icon)}
{spotlight
? null
: IconComponent && (
<IconComponent
size={48}
className="mr-4 bgColor-accent-muted p-3 circle fgColor-accent"
/>
)}
<div>
<Link href={url}>
<h3 className="h4">{title}</h3>
Expand Down
13 changes: 12 additions & 1 deletion src/landings/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ export type BaseTocItem = {
}

export type ChildTocItem = BaseTocItem & {
octicon?: string
octicon?:
| 'code'
| 'log'
| 'terminal'
| 'bug'
| 'lightbulb'
| 'gear'
| 'rocket'
| 'beaker'
| 'copilot'
| 'hubot'
| 'book'
category?: string[]
complexity?: string[]
industry?: string[]
Expand Down
Loading

0 comments on commit c20e5a5

Please sign in to comment.