Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo sync #35858

Merged
merged 4 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/branch_protection_settings/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
"workflows",
"lint-code",
"secret-scanning",
"pagelist"
"pagelist",
"docs-internal-docker-image / docs-internal-docker-image",
"docs-internal-docker-security / docs-internal-docker-security",
"docs-internal-moda-config-bundle / docs-internal-moda-config-bundle"
],
"contexts_url": "https://api.github.com/repos/github/docs-internal/branches/main/protection/required_status_checks/contexts",
"checks": [
Expand Down Expand Up @@ -85,7 +88,19 @@
{ "context": "workflows", "app_id": 15368 },
{ "context": "lint-code", "app_id": 15368 },
{ "context": "secret-scanning", "app_id": 15368 },
{ "context": "pagelist", "app_id": 15368 }
{ "context": "pagelist", "app_id": 15368 },
{
"context": "docs-internal-docker-image / docs-internal-docker-image",
"app_id": 15368
},
{
"context": "docs-internal-docker-security / docs-internal-docker-security",
"app_id": 15368
},
{
"context": "docs-internal-moda-config-bundle / docs-internal-moda-config-bundle",
"app_id": 15368
}
]
},
"restrictions": {
Expand Down
33 changes: 28 additions & 5 deletions config/moda/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,36 @@
required_builds:
- docs-internal-moda-config-bundle / docs-internal-moda-config-bundle
- docs-internal-docker-image / docs-internal-docker-image
- docs-internal-docker-security / docs-internal-docker-security
# Deploy configuration reference: https://thehub.github.com/epd/engineering/products-and-services/internal/moda/reference/deployment-yaml/

environments:
- name: production
auto_deploy: true
require_pipeline: true
cluster_selector:
profile: general
region: iad

required_builds:
- docs-internal-moda-config-bundle / docs-internal-moda-config-bundle
- docs-internal-docker-image / docs-internal-docker-image
- docs-internal-docker-security / docs-internal-docker-security

# Make the pipeline start automatically when a PR is enqueued
auto_start_pipeline: production_rollout

pipelines:
production_rollout:
thread_notifications: true
notify_users_via_dm: false
timeout: 1200
stages:
- name: full_production
kind: deployment
start_message: We are now going to deploy {{app}}/{{ref}}! Please pause or cancel the pipeline after the deploy if you want more time before auto-merging your pull request(s).
config:
environment: production
timeout: 1200
# gates:
# - kind: timer
# duration: 1200

notifications:
slack_channels:
- '#docs-ops'
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ children:
- /creating-gists
- /forking-and-cloning-gists
- /saving-gists-with-stars
- /moderating-gist-comments
shortTitle: Share content with gists
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Moderating gist comments
intro: 'You can moderate comments on gists by turning them off or deleting unwanted entries.'
versions:
fpt: '*'
ghes: '>=3.17'
ghec: '*'
---
## Disabling comments

You can hide existing comments and prevent new comments from being added to a gist by disabling comments for the gist. You can re-enable comments at any time. This will make existing comments visible.

1. Navigate to {% data variables.gists.gist_user %} and select the gist you want to moderate.
1. In the top right corner, select **{% octicon "pencil" aria-hidden="true" %} Edit**.
1. In the top right corner, select **{% octicon "comment" aria-hidden="true" %} Disable comments**.

## Deleting comments

You can delete a comment on a gist if you are the author of the gist or the author of the comment.

1. Navigate to {% data variables.gists.gist_user %} and select the gist you want to moderate.
1. On the upper-right corner of the comment box, select **{% octicon "kebab-horizontal" aria-label="Open dropdown menu" %}**.
1. From the dropdown menu select **Delete**.
1. Select **OK** to confirm.
1 change: 1 addition & 0 deletions content/rest/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ children:
- /orgs
- /packages
- /pages
- /private-registries
- /projects
- /pulls
- /rate-limit
Expand Down
13 changes: 13 additions & 0 deletions content/rest/private-registries/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Private registries
topics:
- API
autogenerated: rest
allowTitleToDifferFromFilename: true
children:
- /organization-configurations
versions:
fpt: '*'
ghec: '*'
---

17 changes: 17 additions & 0 deletions content/rest/private-registries/organization-configurations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Organization configurations
shortTitle: Organization configurations
intro: Use the REST API to manage private registry configurations for organizations.
versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖
fpt: '*'
ghec: '*'
topics:
- API
autogenerated: rest
allowTitleToDifferFromFilename: true
---

> [!NOTE]
> The ability to use the REST API to manage private registries is currently in {% data variables.release-phases.public_preview %} and subject to change.

<!-- Content after this section is automatically generated -->
3 changes: 3 additions & 0 deletions data/variables/gists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ gist_starred: >-

gist_user_starred: >-
{% ifversion fpt or ghec %}`https://gist.github.com/YOUR_USERNAME/starred`{% else %}`http(s)://[hostname]/gist/YOUR_USERNAME/starred` or `http(s)://gist.[hostname]/YOUR_USERNAME/starred` if subdomains are enabled{% endif %}

gist_user: >-
{% ifversion fpt or ghec %}`https://gist.github.com/YOUR_USERNAME`{% else %}`http(s)://[hostname]/gist/YOUR_USERNAME` or `http(s)://gist.[hostname]/YOUR_USERNAME` if subdomains are enabled{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,66 @@
}
]
},
"organization_private_registries": {
"title": "Organization private registries",
"displayTitle": "Organization permissions for \"Organization private registries\"",
"permissions": [
{
"category": "private-registries",
"slug": "list-private-registries-for-an-organization",
"subcategory": "organization-configurations",
"verb": "get",
"requestPath": "/orgs/{org}/private-registries",
"additional-permissions": false,
"access": "read"
},
{
"category": "private-registries",
"slug": "create-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "post",
"requestPath": "/orgs/{org}/private-registries",
"additional-permissions": false,
"access": "write"
},
{
"category": "private-registries",
"slug": "get-private-registries-public-key-for-an-organization",
"subcategory": "organization-configurations",
"verb": "get",
"requestPath": "/orgs/{org}/private-registries/public-key",
"additional-permissions": false,
"access": "read"
},
{
"category": "private-registries",
"slug": "get-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "get",
"requestPath": "/orgs/{org}/private-registries/{secret_name}",
"additional-permissions": false,
"access": "read"
},
{
"category": "private-registries",
"slug": "update-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "patch",
"requestPath": "/orgs/{org}/private-registries/{secret_name}",
"additional-permissions": false,
"access": "write"
},
{
"category": "private-registries",
"slug": "delete-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "delete",
"requestPath": "/orgs/{org}/private-registries/{secret_name}",
"additional-permissions": false,
"access": "write"
}
]
},
"organization_personal_access_token_requests": {
"title": "Personal access token requests",
"displayTitle": "Organization permissions for \"Personal access token requests\"",
Expand Down
38 changes: 38 additions & 0 deletions src/github-apps/data/fpt-2022-11-28/fine-grained-pat.json
Original file line number Diff line number Diff line change
Expand Up @@ -3819,6 +3819,44 @@
"requestPath": "/repos/{owner}/{repo}/pages/health"
}
],
"private-registries": [
{
"slug": "list-private-registries-for-an-organization",
"subcategory": "organization-configurations",
"verb": "get",
"requestPath": "/orgs/{org}/private-registries"
},
{
"slug": "create-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "post",
"requestPath": "/orgs/{org}/private-registries"
},
{
"slug": "get-private-registries-public-key-for-an-organization",
"subcategory": "organization-configurations",
"verb": "get",
"requestPath": "/orgs/{org}/private-registries/public-key"
},
{
"slug": "get-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "get",
"requestPath": "/orgs/{org}/private-registries/{secret_name}"
},
{
"slug": "update-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "patch",
"requestPath": "/orgs/{org}/private-registries/{secret_name}"
},
{
"slug": "delete-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "delete",
"requestPath": "/orgs/{org}/private-registries/{secret_name}"
}
],
"projects": [
{
"slug": "list-organization-projects",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,78 @@
}
]
},
"organization_private_registries": {
"title": "Organization private registries",
"displayTitle": "Organization permissions for \"Organization private registries\"",
"permissions": [
{
"category": "private-registries",
"slug": "list-private-registries-for-an-organization",
"subcategory": "organization-configurations",
"verb": "get",
"requestPath": "/orgs/{org}/private-registries",
"access": "read",
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
},
{
"category": "private-registries",
"slug": "create-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "post",
"requestPath": "/orgs/{org}/private-registries",
"access": "write",
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
},
{
"category": "private-registries",
"slug": "get-private-registries-public-key-for-an-organization",
"subcategory": "organization-configurations",
"verb": "get",
"requestPath": "/orgs/{org}/private-registries/public-key",
"access": "read",
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
},
{
"category": "private-registries",
"slug": "get-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "get",
"requestPath": "/orgs/{org}/private-registries/{secret_name}",
"access": "read",
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
},
{
"category": "private-registries",
"slug": "update-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "patch",
"requestPath": "/orgs/{org}/private-registries/{secret_name}",
"access": "write",
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
},
{
"category": "private-registries",
"slug": "delete-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "delete",
"requestPath": "/orgs/{org}/private-registries/{secret_name}",
"access": "write",
"user-to-server": true,
"server-to-server": true,
"additional-permissions": false
}
]
},
"organization_personal_access_token_requests": {
"title": "Personal access token requests",
"displayTitle": "Organization permissions for \"Personal access token requests\"",
Expand Down
38 changes: 38 additions & 0 deletions src/github-apps/data/fpt-2022-11-28/server-to-server-rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3351,6 +3351,44 @@
"requestPath": "/repos/{owner}/{repo}/pages/health"
}
],
"private-registries": [
{
"slug": "list-private-registries-for-an-organization",
"subcategory": "organization-configurations",
"verb": "get",
"requestPath": "/orgs/{org}/private-registries"
},
{
"slug": "create-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "post",
"requestPath": "/orgs/{org}/private-registries"
},
{
"slug": "get-private-registries-public-key-for-an-organization",
"subcategory": "organization-configurations",
"verb": "get",
"requestPath": "/orgs/{org}/private-registries/public-key"
},
{
"slug": "get-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "get",
"requestPath": "/orgs/{org}/private-registries/{secret_name}"
},
{
"slug": "update-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "patch",
"requestPath": "/orgs/{org}/private-registries/{secret_name}"
},
{
"slug": "delete-a-private-registry-for-an-organization",
"subcategory": "organization-configurations",
"verb": "delete",
"requestPath": "/orgs/{org}/private-registries/{secret_name}"
}
],
"projects": [
{
"slug": "list-organization-projects",
Expand Down
Loading
Loading