зеркало из https://github.com/github/docs.git
repo sync
This commit is contained in:
Коммит
eac4ef62bb
|
@ -28,7 +28,7 @@ jobs:
|
|||
name: Close previous report
|
||||
uses: lee-dohm/close-matching-issues@22002609b2555fe18f52b8e2e7c07cbf5529e8a8
|
||||
with:
|
||||
query: 'label:"broken+link+report"'
|
||||
query: 'label:"broken link report"'
|
||||
token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
|
||||
- if: ${{ failure() }}
|
||||
name: Create issue from file
|
||||
|
@ -43,7 +43,7 @@ jobs:
|
|||
name: Add issue to FR project board
|
||||
uses: peter-evans/create-or-update-project-card@80140aaeb9730972a83c626031250621fe8f6670
|
||||
with:
|
||||
project-repository: 'github'
|
||||
project-location: 'github'
|
||||
project-number: '1367'
|
||||
column-name: 'Docs-content FR issues'
|
||||
issue-number: ${{ steps.broken-link-report.outputs.issue-number }}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
upcoming_changes:
|
||||
- location: Migration.uploadUrlTemplate
|
||||
- location: LegacyMigration.uploadUrlTemplate
|
||||
description: '`uploadUrlTemplate` will be removed. Use `uploadUrl` instead.'
|
||||
reason:
|
||||
'`uploadUrlTemplate` is being removed because it is not a standard URL and
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
upcoming_changes:
|
||||
- location: Migration.uploadUrlTemplate
|
||||
- location: LegacyMigration.uploadUrlTemplate
|
||||
description: '`uploadUrlTemplate` will be removed. Use `uploadUrl` instead.'
|
||||
reason:
|
||||
'`uploadUrlTemplate` is being removed because it is not a standard URL and
|
||||
|
|
|
@ -15164,6 +15164,21 @@ type Mutation {
|
|||
"""
|
||||
setEnterpriseIdentityProvider(input: SetEnterpriseIdentityProviderInput!): SetEnterpriseIdentityProviderPayload
|
||||
|
||||
"""
|
||||
Set an organization level interaction limit for an organization's public repositories.
|
||||
"""
|
||||
setOrganizationInteractionLimit(input: SetOrganizationInteractionLimitInput!): SetOrganizationInteractionLimitPayload
|
||||
|
||||
"""
|
||||
Sets an interaction limit setting for a repository.
|
||||
"""
|
||||
setRepositoryInteractionLimit(input: SetRepositoryInteractionLimitInput!): SetRepositoryInteractionLimitPayload
|
||||
|
||||
"""
|
||||
Set a user level interaction limit for an user's public repositories.
|
||||
"""
|
||||
setUserInteractionLimit(input: SetUserInteractionLimitInput!): SetUserInteractionLimitPayload
|
||||
|
||||
"""
|
||||
Submits a pending pull request review.
|
||||
"""
|
||||
|
@ -30137,6 +30152,36 @@ enum RepositoryInteractionLimit {
|
|||
NO_LIMIT
|
||||
}
|
||||
|
||||
"""
|
||||
The length for a repository interaction limit to be enabled for.
|
||||
"""
|
||||
enum RepositoryInteractionLimitExpiry {
|
||||
"""
|
||||
The interaction limit will expire after 1 day.
|
||||
"""
|
||||
ONE_DAY
|
||||
|
||||
"""
|
||||
The interaction limit will expire after 1 month.
|
||||
"""
|
||||
ONE_MONTH
|
||||
|
||||
"""
|
||||
The interaction limit will expire after 1 week.
|
||||
"""
|
||||
ONE_WEEK
|
||||
|
||||
"""
|
||||
The interaction limit will expire after 6 months.
|
||||
"""
|
||||
SIX_MONTHS
|
||||
|
||||
"""
|
||||
The interaction limit will expire after 3 days.
|
||||
"""
|
||||
THREE_DAYS
|
||||
}
|
||||
|
||||
"""
|
||||
Indicates where an interaction limit is configured.
|
||||
"""
|
||||
|
@ -32035,6 +32080,126 @@ type SetEnterpriseIdentityProviderPayload {
|
|||
identityProvider: EnterpriseIdentityProvider
|
||||
}
|
||||
|
||||
"""
|
||||
Autogenerated input type of SetOrganizationInteractionLimit
|
||||
"""
|
||||
input SetOrganizationInteractionLimitInput {
|
||||
"""
|
||||
A unique identifier for the client performing the mutation.
|
||||
"""
|
||||
clientMutationId: String
|
||||
|
||||
"""
|
||||
When this limit should expire.
|
||||
"""
|
||||
expiry: RepositoryInteractionLimitExpiry
|
||||
|
||||
"""
|
||||
The limit to set.
|
||||
"""
|
||||
limit: RepositoryInteractionLimit!
|
||||
|
||||
"""
|
||||
The ID of the organization to set a limit for.
|
||||
"""
|
||||
organizationId: ID! @possibleTypes(concreteTypes: ["Organization"])
|
||||
}
|
||||
|
||||
"""
|
||||
Autogenerated return type of SetOrganizationInteractionLimit
|
||||
"""
|
||||
type SetOrganizationInteractionLimitPayload {
|
||||
"""
|
||||
A unique identifier for the client performing the mutation.
|
||||
"""
|
||||
clientMutationId: String
|
||||
|
||||
"""
|
||||
The organization that the interaction limit was set for.
|
||||
"""
|
||||
organization: Organization
|
||||
}
|
||||
|
||||
"""
|
||||
Autogenerated input type of SetRepositoryInteractionLimit
|
||||
"""
|
||||
input SetRepositoryInteractionLimitInput {
|
||||
"""
|
||||
A unique identifier for the client performing the mutation.
|
||||
"""
|
||||
clientMutationId: String
|
||||
|
||||
"""
|
||||
When this limit should expire.
|
||||
"""
|
||||
expiry: RepositoryInteractionLimitExpiry
|
||||
|
||||
"""
|
||||
The limit to set.
|
||||
"""
|
||||
limit: RepositoryInteractionLimit!
|
||||
|
||||
"""
|
||||
The ID of the repository to set a limit for.
|
||||
"""
|
||||
repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"])
|
||||
}
|
||||
|
||||
"""
|
||||
Autogenerated return type of SetRepositoryInteractionLimit
|
||||
"""
|
||||
type SetRepositoryInteractionLimitPayload {
|
||||
"""
|
||||
A unique identifier for the client performing the mutation.
|
||||
"""
|
||||
clientMutationId: String
|
||||
|
||||
"""
|
||||
The repository that the interaction limit was set for.
|
||||
"""
|
||||
repository: Repository
|
||||
}
|
||||
|
||||
"""
|
||||
Autogenerated input type of SetUserInteractionLimit
|
||||
"""
|
||||
input SetUserInteractionLimitInput {
|
||||
"""
|
||||
A unique identifier for the client performing the mutation.
|
||||
"""
|
||||
clientMutationId: String
|
||||
|
||||
"""
|
||||
When this limit should expire.
|
||||
"""
|
||||
expiry: RepositoryInteractionLimitExpiry
|
||||
|
||||
"""
|
||||
The limit to set.
|
||||
"""
|
||||
limit: RepositoryInteractionLimit!
|
||||
|
||||
"""
|
||||
The ID of the user to set a limit for.
|
||||
"""
|
||||
userId: ID! @possibleTypes(concreteTypes: ["User"])
|
||||
}
|
||||
|
||||
"""
|
||||
Autogenerated return type of SetUserInteractionLimit
|
||||
"""
|
||||
type SetUserInteractionLimitPayload {
|
||||
"""
|
||||
A unique identifier for the client performing the mutation.
|
||||
"""
|
||||
clientMutationId: String
|
||||
|
||||
"""
|
||||
The user that the interaction limit was set for.
|
||||
"""
|
||||
user: User
|
||||
}
|
||||
|
||||
"""
|
||||
Represents an S/MIME signature on a Commit or Tag.
|
||||
"""
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -926,244 +926,6 @@
|
|||
"href": "/graphql/overview/schema-previews#team-review-assignments-preview"
|
||||
}
|
||||
],
|
||||
"ghes-2.19": [
|
||||
{
|
||||
"title": "Deployments preview",
|
||||
"description": "This preview adds support for deployments mutations and new deployments features.",
|
||||
"toggled_by": "flash-preview",
|
||||
"toggled_on": [
|
||||
"DeploymentStatus.environment",
|
||||
"Mutation.createDeploymentStatus",
|
||||
"Mutation.createDeployment"
|
||||
],
|
||||
"owning_teams": [
|
||||
"@github/ecosystem-api"
|
||||
],
|
||||
"accept_header": "application/vnd.github.flash-preview+json",
|
||||
"href": "/graphql/overview/schema-previews#deployments-preview"
|
||||
},
|
||||
{
|
||||
"title": "Draft pull requests preview",
|
||||
"description": "This preview adds support for draft pull requests.",
|
||||
"toggled_by": "shadow-cat-preview",
|
||||
"toggled_on": [
|
||||
"Mutation.markPullRequestReadyForReview",
|
||||
"CreatePullRequestInput.draft",
|
||||
"PullRequest.isDraft"
|
||||
],
|
||||
"owning_teams": [
|
||||
"@github/pe-pull-requests"
|
||||
],
|
||||
"accept_header": "application/vnd.github.shadow-cat-preview+json",
|
||||
"href": "/graphql/overview/schema-previews#draft-pull-requests-preview"
|
||||
},
|
||||
{
|
||||
"title": "Checks preview",
|
||||
"description": "This preview adds support for reading checks created by GitHub Apps.",
|
||||
"toggled_by": "antiope-preview",
|
||||
"toggled_on": [
|
||||
"CheckAnnotationRange",
|
||||
"CheckAnnotationPosition",
|
||||
"CheckAnnotationSpan",
|
||||
"CheckAnnotation",
|
||||
"CheckAnnotationConnection.nodes",
|
||||
"CheckAnnotationData",
|
||||
"CheckAnnotationEdge.node",
|
||||
"CheckAnnotationLevel",
|
||||
"CheckConclusionState",
|
||||
"CheckStatusState",
|
||||
"CheckSuiteAutoTriggerPreference",
|
||||
"CheckRun",
|
||||
"CheckRunConnection.nodes",
|
||||
"CheckRunEdge.node",
|
||||
"CheckRunAction",
|
||||
"CheckRunFilter",
|
||||
"CheckRunOutput",
|
||||
"CheckRunOutputImage",
|
||||
"CheckRunType",
|
||||
"CheckSuite",
|
||||
"CheckSuiteConnection.nodes",
|
||||
"CheckSuiteEdge.node",
|
||||
"CheckSuiteFilter",
|
||||
"Commit.checkSuites",
|
||||
"Mutation.createCheckRun",
|
||||
"Mutation.createCheckSuite",
|
||||
"Mutation.rerequestCheckSuite",
|
||||
"Mutation.updateCheckRun",
|
||||
"Mutation.updateCheckSuitePreferences",
|
||||
"Push",
|
||||
"RequestableCheckStatusState",
|
||||
"UpdateCheckSuitePayload.checkSuite"
|
||||
],
|
||||
"owning_teams": [
|
||||
"@github/ecosystem-primitives"
|
||||
],
|
||||
"accept_header": "application/vnd.github.antiope-preview+json",
|
||||
"href": "/graphql/overview/schema-previews#checks-preview"
|
||||
},
|
||||
{
|
||||
"title": "Merge info preview",
|
||||
"description": "This preview adds support for accessing fields that provide more detailed information about a pull request's merge state.",
|
||||
"toggled_by": "merge-info-preview",
|
||||
"toggled_on": [
|
||||
"PullRequest.canBeRebased",
|
||||
"PullRequest.mergeStateStatus"
|
||||
],
|
||||
"owning_teams": [
|
||||
"@github/pe-pull-requests"
|
||||
],
|
||||
"accept_header": "application/vnd.github.merge-info-preview+json",
|
||||
"href": "/graphql/overview/schema-previews#merge-info-preview"
|
||||
},
|
||||
{
|
||||
"title": "Repository vulnerability alerts preview",
|
||||
"description": "This preview adds support for viewing vulnerability alerts for a repository.",
|
||||
"toggled_by": "vixen-preview",
|
||||
"toggled_on": [
|
||||
"RepositoryVulnerabilityAlert",
|
||||
"Repository.vulnerabilityAlerts",
|
||||
"RepositoryVulnerabilityAlertConnection",
|
||||
"RepositoryVulnerabilityAlertEdge"
|
||||
],
|
||||
"owning_teams": [
|
||||
"@github/ee-security-workflows"
|
||||
],
|
||||
"accept_header": "application/vnd.github.vixen-preview+json",
|
||||
"href": "/graphql/overview/schema-previews#repository-vulnerability-alerts-preview"
|
||||
},
|
||||
{
|
||||
"title": "Temporary cloning token for private repositories preview",
|
||||
"description": "This preview adds support for accessing a temporary token field for cloning private repositories.",
|
||||
"toggled_by": "daredevil-preview",
|
||||
"toggled_on": [
|
||||
"Repository.tempCloneToken"
|
||||
],
|
||||
"owning_teams": [
|
||||
"@github/experience-engineering-work"
|
||||
],
|
||||
"accept_header": "application/vnd.github.daredevil-preview+json",
|
||||
"href": "/graphql/overview/schema-previews#temporary-cloning-token-for-private-repositories-preview"
|
||||
},
|
||||
{
|
||||
"title": "Project event details preview",
|
||||
"description": "This preview adds project, project card, and project column details to project-related issue events.",
|
||||
"toggled_by": "starfox-preview",
|
||||
"toggled_on": [
|
||||
"AddedToProjectEvent.project",
|
||||
"AddedToProjectEvent.projectCard",
|
||||
"AddedToProjectEvent.projectColumnName",
|
||||
"ConvertedNoteToIssueEvent.project",
|
||||
"ConvertedNoteToIssueEvent.projectCard",
|
||||
"ConvertedNoteToIssueEvent.projectColumnName",
|
||||
"MovedColumnsInProjectEvent.project",
|
||||
"MovedColumnsInProjectEvent.projectCard",
|
||||
"MovedColumnsInProjectEvent.projectColumnName",
|
||||
"MovedColumnsInProjectEvent.previousProjectColumnName",
|
||||
"RemovedFromProjectEvent.project",
|
||||
"RemovedFromProjectEvent.projectColumnName"
|
||||
],
|
||||
"owning_teams": [
|
||||
"@github/github-projects"
|
||||
],
|
||||
"accept_header": "application/vnd.github.starfox-preview+json",
|
||||
"href": "/graphql/overview/schema-previews#project-event-details-preview"
|
||||
},
|
||||
{
|
||||
"title": "Minimize comments preview",
|
||||
"description": "This preview adds support for minimizing comments on issues, pull requests, commits, and gists.",
|
||||
"toggled_by": "queen-beryl-preview",
|
||||
"toggled_on": [
|
||||
"Mutation.minimizeComment",
|
||||
"Mutation.unminimizeComment",
|
||||
"Minimizable"
|
||||
],
|
||||
"owning_teams": [
|
||||
"@github/ce-community-and-safety"
|
||||
],
|
||||
"accept_header": "application/vnd.github.queen-beryl-preview+json",
|
||||
"href": "/graphql/overview/schema-previews#minimize-comments-preview"
|
||||
},
|
||||
{
|
||||
"title": "Create content attachments preview",
|
||||
"description": "This preview adds support for creating content attachments.",
|
||||
"toggled_by": "corsair-preview",
|
||||
"toggled_on": [
|
||||
"Mutation.createContentAttachment"
|
||||
],
|
||||
"owning_teams": [
|
||||
"@github/ecosystem-primitives"
|
||||
],
|
||||
"accept_header": "application/vnd.github.corsair-preview+json",
|
||||
"href": "/graphql/overview/schema-previews#create-content-attachments-preview"
|
||||
},
|
||||
{
|
||||
"title": "Pinned issues preview",
|
||||
"description": "This preview adds support for pinned issues.",
|
||||
"toggled_by": "elektra-preview",
|
||||
"toggled_on": [
|
||||
"Repository.pinnedIssues",
|
||||
"PinnedIssue",
|
||||
"PinnedIssueEdge",
|
||||
"PinnedIssueConnection",
|
||||
"Mutation.pinIssue",
|
||||
"Mutation.unpinIssue"
|
||||
],
|
||||
"owning_teams": [
|
||||
"@github/pe-pull-requests"
|
||||
],
|
||||
"accept_header": "application/vnd.github.elektra-preview+json",
|
||||
"href": "/graphql/overview/schema-previews#pinned-issues-preview"
|
||||
},
|
||||
{
|
||||
"title": "Labels preview",
|
||||
"description": "This preview adds support for adding, updating, creating and deleting labels.",
|
||||
"toggled_by": "bane-preview",
|
||||
"toggled_on": [
|
||||
"Mutation.createLabel",
|
||||
"Mutation.deleteLabel",
|
||||
"Mutation.updateLabel"
|
||||
],
|
||||
"owning_teams": [
|
||||
"@github/pe-pull-requests"
|
||||
],
|
||||
"accept_header": "application/vnd.github.bane-preview+json",
|
||||
"href": "/graphql/overview/schema-previews#labels-preview"
|
||||
},
|
||||
{
|
||||
"title": "Import project preview",
|
||||
"description": "This preview adds support for importing projects.",
|
||||
"toggled_by": "slothette-preview",
|
||||
"toggled_on": [
|
||||
"Mutation.importProject"
|
||||
],
|
||||
"owning_teams": [
|
||||
"@github/pe-issues-projects"
|
||||
],
|
||||
"accept_header": "application/vnd.github.slothette-preview+json",
|
||||
"href": "/graphql/overview/schema-previews#import-project-preview"
|
||||
},
|
||||
{
|
||||
"title": "Multi line comments preview",
|
||||
"description": "This preview adds support for blob-positioned and multi-line comments.",
|
||||
"toggled_by": "comfort-fade-preview",
|
||||
"toggled_on": [
|
||||
"Mutation.addPullRequestReviewThread",
|
||||
"AddPullRequestReviewInput.threads",
|
||||
"DiffSide",
|
||||
"PullRequestReviewThread.startLine",
|
||||
"PullRequestReviewThread.originalStartLine",
|
||||
"PullRequestReviewThread.startDiffSide",
|
||||
"PullRequestReviewThread.line",
|
||||
"PullRequestReviewThread.originalLine",
|
||||
"PullRequestReviewThread.diffSide"
|
||||
],
|
||||
"owning_teams": [
|
||||
"@github/pe-pull-requests"
|
||||
],
|
||||
"accept_header": "application/vnd.github.comfort-fade-preview+json",
|
||||
"href": "/graphql/overview/schema-previews#multi-line-comments-preview"
|
||||
}
|
||||
],
|
||||
"ghae": [
|
||||
{
|
||||
"title": "Access to package version deletion preview",
|
||||
|
|
|
@ -3831,6 +3831,108 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "setOrganizationInteractionLimit",
|
||||
"kind": "mutations",
|
||||
"id": "setorganizationinteractionlimit",
|
||||
"href": "/graphql/reference/mutations#setorganizationinteractionlimit",
|
||||
"description": "<p>Set an organization level interaction limit for an organization's public repositories.</p>",
|
||||
"inputFields": [
|
||||
{
|
||||
"name": "input",
|
||||
"type": "SetOrganizationInteractionLimitInput!",
|
||||
"id": "setorganizationinteractionlimitinput",
|
||||
"kind": "input-objects",
|
||||
"href": "/graphql/reference/input-objects#setorganizationinteractionlimitinput"
|
||||
}
|
||||
],
|
||||
"returnFields": [
|
||||
{
|
||||
"name": "clientMutationId",
|
||||
"type": "String",
|
||||
"id": "string",
|
||||
"kind": "scalars",
|
||||
"href": "/graphql/reference/scalars#string",
|
||||
"description": "<p>A unique identifier for the client performing the mutation.</p>"
|
||||
},
|
||||
{
|
||||
"name": "organization",
|
||||
"type": "Organization",
|
||||
"id": "organization",
|
||||
"kind": "objects",
|
||||
"href": "/graphql/reference/objects#organization",
|
||||
"description": "<p>The organization that the interaction limit was set for.</p>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "setRepositoryInteractionLimit",
|
||||
"kind": "mutations",
|
||||
"id": "setrepositoryinteractionlimit",
|
||||
"href": "/graphql/reference/mutations#setrepositoryinteractionlimit",
|
||||
"description": "<p>Sets an interaction limit setting for a repository.</p>",
|
||||
"inputFields": [
|
||||
{
|
||||
"name": "input",
|
||||
"type": "SetRepositoryInteractionLimitInput!",
|
||||
"id": "setrepositoryinteractionlimitinput",
|
||||
"kind": "input-objects",
|
||||
"href": "/graphql/reference/input-objects#setrepositoryinteractionlimitinput"
|
||||
}
|
||||
],
|
||||
"returnFields": [
|
||||
{
|
||||
"name": "clientMutationId",
|
||||
"type": "String",
|
||||
"id": "string",
|
||||
"kind": "scalars",
|
||||
"href": "/graphql/reference/scalars#string",
|
||||
"description": "<p>A unique identifier for the client performing the mutation.</p>"
|
||||
},
|
||||
{
|
||||
"name": "repository",
|
||||
"type": "Repository",
|
||||
"id": "repository",
|
||||
"kind": "objects",
|
||||
"href": "/graphql/reference/objects#repository",
|
||||
"description": "<p>The repository that the interaction limit was set for.</p>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "setUserInteractionLimit",
|
||||
"kind": "mutations",
|
||||
"id": "setuserinteractionlimit",
|
||||
"href": "/graphql/reference/mutations#setuserinteractionlimit",
|
||||
"description": "<p>Set a user level interaction limit for an user's public repositories.</p>",
|
||||
"inputFields": [
|
||||
{
|
||||
"name": "input",
|
||||
"type": "SetUserInteractionLimitInput!",
|
||||
"id": "setuserinteractionlimitinput",
|
||||
"kind": "input-objects",
|
||||
"href": "/graphql/reference/input-objects#setuserinteractionlimitinput"
|
||||
}
|
||||
],
|
||||
"returnFields": [
|
||||
{
|
||||
"name": "clientMutationId",
|
||||
"type": "String",
|
||||
"id": "string",
|
||||
"kind": "scalars",
|
||||
"href": "/graphql/reference/scalars#string",
|
||||
"description": "<p>A unique identifier for the client performing the mutation.</p>"
|
||||
},
|
||||
{
|
||||
"name": "user",
|
||||
"type": "User",
|
||||
"id": "user",
|
||||
"kind": "objects",
|
||||
"href": "/graphql/reference/objects#user",
|
||||
"description": "<p>The user that the interaction limit was set for.</p>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "submitPullRequestReview",
|
||||
"kind": "mutations",
|
||||
|
@ -59539,6 +59641,35 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "RepositoryInteractionLimitExpiry",
|
||||
"kind": "enums",
|
||||
"id": "repositoryinteractionlimitexpiry",
|
||||
"href": "/graphql/reference/enums#repositoryinteractionlimitexpiry",
|
||||
"description": "<p>The length for a repository interaction limit to be enabled for.</p>",
|
||||
"values": [
|
||||
{
|
||||
"name": "ONE_DAY",
|
||||
"description": "<p>The interaction limit will expire after 1 day.</p>"
|
||||
},
|
||||
{
|
||||
"name": "ONE_MONTH",
|
||||
"description": "<p>The interaction limit will expire after 1 month.</p>"
|
||||
},
|
||||
{
|
||||
"name": "ONE_WEEK",
|
||||
"description": "<p>The interaction limit will expire after 1 week.</p>"
|
||||
},
|
||||
{
|
||||
"name": "SIX_MONTHS",
|
||||
"description": "<p>The interaction limit will expire after 6 months.</p>"
|
||||
},
|
||||
{
|
||||
"name": "THREE_DAYS",
|
||||
"description": "<p>The interaction limit will expire after 3 days.</p>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "RepositoryInteractionLimitOrigin",
|
||||
"kind": "enums",
|
||||
|
@ -66729,6 +66860,132 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SetOrganizationInteractionLimitInput",
|
||||
"kind": "inputObjects",
|
||||
"id": "setorganizationinteractionlimitinput",
|
||||
"href": "/graphql/reference/input-objects#setorganizationinteractionlimitinput",
|
||||
"description": "<p>Autogenerated input type of SetOrganizationInteractionLimit.</p>",
|
||||
"inputFields": [
|
||||
{
|
||||
"name": "clientMutationId",
|
||||
"description": "<p>A unique identifier for the client performing the mutation.</p>",
|
||||
"type": "String",
|
||||
"id": "string",
|
||||
"kind": "scalars",
|
||||
"href": "/graphql/reference/scalars#string"
|
||||
},
|
||||
{
|
||||
"name": "expiry",
|
||||
"description": "<p>When this limit should expire.</p>",
|
||||
"type": "RepositoryInteractionLimitExpiry",
|
||||
"id": "repositoryinteractionlimitexpiry",
|
||||
"kind": "enums",
|
||||
"href": "/graphql/reference/enums#repositoryinteractionlimitexpiry"
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"description": "<p>The limit to set.</p>",
|
||||
"type": "RepositoryInteractionLimit!",
|
||||
"id": "repositoryinteractionlimit",
|
||||
"kind": "enums",
|
||||
"href": "/graphql/reference/enums#repositoryinteractionlimit"
|
||||
},
|
||||
{
|
||||
"name": "organizationId",
|
||||
"description": "<p>The ID of the organization to set a limit for.</p>",
|
||||
"type": "ID!",
|
||||
"id": "id",
|
||||
"kind": "scalars",
|
||||
"href": "/graphql/reference/scalars#id",
|
||||
"isDeprecated": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SetRepositoryInteractionLimitInput",
|
||||
"kind": "inputObjects",
|
||||
"id": "setrepositoryinteractionlimitinput",
|
||||
"href": "/graphql/reference/input-objects#setrepositoryinteractionlimitinput",
|
||||
"description": "<p>Autogenerated input type of SetRepositoryInteractionLimit.</p>",
|
||||
"inputFields": [
|
||||
{
|
||||
"name": "clientMutationId",
|
||||
"description": "<p>A unique identifier for the client performing the mutation.</p>",
|
||||
"type": "String",
|
||||
"id": "string",
|
||||
"kind": "scalars",
|
||||
"href": "/graphql/reference/scalars#string"
|
||||
},
|
||||
{
|
||||
"name": "expiry",
|
||||
"description": "<p>When this limit should expire.</p>",
|
||||
"type": "RepositoryInteractionLimitExpiry",
|
||||
"id": "repositoryinteractionlimitexpiry",
|
||||
"kind": "enums",
|
||||
"href": "/graphql/reference/enums#repositoryinteractionlimitexpiry"
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"description": "<p>The limit to set.</p>",
|
||||
"type": "RepositoryInteractionLimit!",
|
||||
"id": "repositoryinteractionlimit",
|
||||
"kind": "enums",
|
||||
"href": "/graphql/reference/enums#repositoryinteractionlimit"
|
||||
},
|
||||
{
|
||||
"name": "repositoryId",
|
||||
"description": "<p>The ID of the repository to set a limit for.</p>",
|
||||
"type": "ID!",
|
||||
"id": "id",
|
||||
"kind": "scalars",
|
||||
"href": "/graphql/reference/scalars#id",
|
||||
"isDeprecated": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SetUserInteractionLimitInput",
|
||||
"kind": "inputObjects",
|
||||
"id": "setuserinteractionlimitinput",
|
||||
"href": "/graphql/reference/input-objects#setuserinteractionlimitinput",
|
||||
"description": "<p>Autogenerated input type of SetUserInteractionLimit.</p>",
|
||||
"inputFields": [
|
||||
{
|
||||
"name": "clientMutationId",
|
||||
"description": "<p>A unique identifier for the client performing the mutation.</p>",
|
||||
"type": "String",
|
||||
"id": "string",
|
||||
"kind": "scalars",
|
||||
"href": "/graphql/reference/scalars#string"
|
||||
},
|
||||
{
|
||||
"name": "expiry",
|
||||
"description": "<p>When this limit should expire.</p>",
|
||||
"type": "RepositoryInteractionLimitExpiry",
|
||||
"id": "repositoryinteractionlimitexpiry",
|
||||
"kind": "enums",
|
||||
"href": "/graphql/reference/enums#repositoryinteractionlimitexpiry"
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"description": "<p>The limit to set.</p>",
|
||||
"type": "RepositoryInteractionLimit!",
|
||||
"id": "repositoryinteractionlimit",
|
||||
"kind": "enums",
|
||||
"href": "/graphql/reference/enums#repositoryinteractionlimit"
|
||||
},
|
||||
{
|
||||
"name": "userId",
|
||||
"description": "<p>The ID of the user to set a limit for.</p>",
|
||||
"type": "ID!",
|
||||
"id": "id",
|
||||
"kind": "scalars",
|
||||
"href": "/graphql/reference/scalars#id",
|
||||
"isDeprecated": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SponsorsTierOrder",
|
||||
"kind": "inputObjects",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"dotcom": {
|
||||
"2019-04-01": [
|
||||
{
|
||||
"location": "Migration.uploadUrlTemplate",
|
||||
"location": "LegacyMigration.uploadUrlTemplate",
|
||||
"description": "<p><code>uploadUrlTemplate</code> will be removed. Use <code>uploadUrl</code> instead.</p>",
|
||||
"reason": "<p><code>uploadUrlTemplate</code> is being removed because it is not a standard URL and adds an extra user step.</p>",
|
||||
"date": "2019-04-01",
|
||||
|
@ -1617,90 +1617,10 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"ghes-2.19": {
|
||||
"2019-04-01": [
|
||||
{
|
||||
"location": "Migration.uploadUrlTemplate",
|
||||
"description": "<p><code>uploadUrlTemplate</code> will be removed. Use <code>uploadUrl</code> instead.</p>",
|
||||
"reason": "<p><code>uploadUrlTemplate</code> is being removed because it is not a standard URL and adds an extra user step.</p>",
|
||||
"date": "2019-04-01",
|
||||
"criticality": "breaking",
|
||||
"owner": "tambling"
|
||||
}
|
||||
],
|
||||
"2019-10-01": [
|
||||
{
|
||||
"location": "ContributionOrder.field",
|
||||
"description": "<p><code>field</code> will be removed. Only one order field is supported.</p>",
|
||||
"reason": "<p><code>field</code> will be removed.</p>",
|
||||
"date": "2019-10-01",
|
||||
"criticality": "breaking",
|
||||
"owner": "dinahshi"
|
||||
},
|
||||
{
|
||||
"location": "Issue.timeline",
|
||||
"description": "<p><code>timeline</code> will be removed. Use Issue.timelineItems instead.</p>",
|
||||
"reason": "<p><code>timeline</code> will be removed</p>",
|
||||
"date": "2019-10-01",
|
||||
"criticality": "breaking",
|
||||
"owner": "mikesea"
|
||||
},
|
||||
{
|
||||
"location": "Organization.pinnedRepositories",
|
||||
"description": "<p><code>pinnedRepositories</code> will be removed. Use ProfileOwner.pinnedItems instead.</p>",
|
||||
"reason": "<p>pinnedRepositories will be removed</p>",
|
||||
"date": "2019-10-01",
|
||||
"criticality": "breaking",
|
||||
"owner": "cheshire137"
|
||||
},
|
||||
{
|
||||
"location": "PullRequest.timeline",
|
||||
"description": "<p><code>timeline</code> will be removed. Use PullRequest.timelineItems instead.</p>",
|
||||
"reason": "<p><code>timeline</code> will be removed</p>",
|
||||
"date": "2019-10-01",
|
||||
"criticality": "breaking",
|
||||
"owner": "mikesea"
|
||||
},
|
||||
{
|
||||
"location": "RepositoryOwner.pinnedRepositories",
|
||||
"description": "<p><code>pinnedRepositories</code> will be removed. Use ProfileOwner.pinnedItems instead.</p>",
|
||||
"reason": "<p>pinnedRepositories will be removed</p>",
|
||||
"date": "2019-10-01",
|
||||
"criticality": "breaking",
|
||||
"owner": "cheshire137"
|
||||
},
|
||||
{
|
||||
"location": "User.pinnedRepositories",
|
||||
"description": "<p><code>pinnedRepositories</code> will be removed. Use ProfileOwner.pinnedItems instead.</p>",
|
||||
"reason": "<p>pinnedRepositories will be removed</p>",
|
||||
"date": "2019-10-01",
|
||||
"criticality": "breaking",
|
||||
"owner": "cheshire137"
|
||||
}
|
||||
],
|
||||
"2020-01-01": [
|
||||
{
|
||||
"location": "AssignedEvent.user",
|
||||
"description": "<p><code>user</code> will be removed. Use the <code>assignee</code> field instead.</p>",
|
||||
"reason": "<p>Assignees can now be mannequins.</p>",
|
||||
"date": "2020-01-01",
|
||||
"criticality": "breaking",
|
||||
"owner": "tambling"
|
||||
},
|
||||
{
|
||||
"location": "UnassignedEvent.user",
|
||||
"description": "<p><code>user</code> will be removed. Use the <code>assignee</code> field instead.</p>",
|
||||
"reason": "<p>Assignees can now be mannequins.</p>",
|
||||
"date": "2020-01-01",
|
||||
"criticality": "breaking",
|
||||
"owner": "tambling"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ghae": {
|
||||
"2019-04-01": [
|
||||
{
|
||||
"location": "Migration.uploadUrlTemplate",
|
||||
"location": "LegacyMigration.uploadUrlTemplate",
|
||||
"description": "<p><code>uploadUrlTemplate</code> will be removed. Use <code>uploadUrl</code> instead.</p>",
|
||||
"reason": "<p><code>uploadUrlTemplate</code> is being removed because it is not a standard URL and adds an extra user step.</p>",
|
||||
"date": "2019-04-01",
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -72,7 +72,7 @@ async function main () {
|
|||
|
||||
// 4. PRERENDER OBJECTS HTML
|
||||
// because the objects page is too big to render on page load
|
||||
prerenderedObjects[graphqlVersion] = await prerenderObjects(schemaJsonPerVersion)
|
||||
prerenderedObjects[graphqlVersion] = await prerenderObjects(schemaJsonPerVersion, version)
|
||||
}
|
||||
|
||||
updateStaticFile(previewsJson, path.join(graphqlStaticDir, 'previews.json'))
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const cheerio = require('cheerio')
|
||||
const { liquid } = require('../../../lib/render-content')
|
||||
const getMiniTocItems = require('../../../lib/get-mini-toc-items')
|
||||
const rewriteLocalLinks = require('../../../lib/rewrite-local-links')
|
||||
const includes = path.join(process.cwd(), 'includes')
|
||||
const objectIncludeFile = fs.readFileSync(path.join(includes, 'graphql-object.html'), 'utf8')
|
||||
// TODO need to localize
|
||||
const currentLanguage = 'en'
|
||||
|
||||
module.exports = async function prerenderObjects (schemaJsonPerVersion) {
|
||||
module.exports = async function prerenderObjects (schemaJsonPerVersion, version) {
|
||||
const site = await require('../../../lib/site-data')()
|
||||
|
||||
// create a bare minimum context for rendering the graphql-object.html layout
|
||||
|
@ -23,7 +25,10 @@ module.exports = async function prerenderObjects (schemaJsonPerVersion) {
|
|||
for (const object of schemaJsonPerVersion.objects) {
|
||||
context.item = object
|
||||
const objectHtml = await liquid.parseAndRender(objectIncludeFile, context)
|
||||
objectsArray.push(objectHtml)
|
||||
const $ = cheerio.load(objectHtml, { xmlMode: true })
|
||||
rewriteLocalLinks($, version, currentLanguage)
|
||||
const htmlWithVersionedLinks = $.html()
|
||||
objectsArray.push(htmlWithVersionedLinks)
|
||||
}
|
||||
|
||||
const objectsHtml = objectsArray.join('\n')
|
||||
|
|
|
@ -177,10 +177,6 @@ module.exports = class Operation {
|
|||
async renderNotes () {
|
||||
this.notes = []
|
||||
|
||||
if (this['x-github'].enabledForGitHubApps) {
|
||||
this.notes.push('<a href="{{ restGitHubAppsLink }}">Works with GitHub Apps</a>')
|
||||
}
|
||||
|
||||
return Promise.all(this.notes.map(async (note) => renderContent(note)))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
const path = require('path')
|
||||
const cheerio = require('cheerio')
|
||||
const Page = require('../../lib/page')
|
||||
const allVersionIds = Object.keys(require('../../lib/all-versions'))
|
||||
const prerenderedObjects = require('../../lib/graphql/static/prerendered-objects')
|
||||
const allVersions = require('../../lib/all-versions')
|
||||
const enterpriseServerReleases = require('../../lib/enterprise-server-releases')
|
||||
const nonEnterpriseDefaultVersion = require('../../lib/non-enterprise-default-version')
|
||||
// get the `free-pro-team` segment of `free-pro-team@latest`
|
||||
|
@ -90,6 +91,13 @@ describe('Page class', () => {
|
|||
expect($(`a[href="/en/${nonEnterpriseDefaultVersion}/articles/about-pull-requests"]`).length).toBeGreaterThan(0)
|
||||
})
|
||||
|
||||
test('rewrites links on prerendered GraphQL page include the current language prefix and version', async () => {
|
||||
const graphqlVersion = allVersions[nonEnterpriseDefaultVersion].miscVersionName
|
||||
const $ = cheerio.load(prerenderedObjects[graphqlVersion].html)
|
||||
expect($('a[href^="/graphql/reference/input-objects"]').length).toBe(0)
|
||||
expect($(`a[href^="/en/${nonEnterpriseDefaultVersion}/graphql/reference/input-objects"]`).length).toBeGreaterThan(0)
|
||||
})
|
||||
|
||||
test('rewrites links in the intro to include the current language prefix and version', async () => {
|
||||
const page = new Page(opts)
|
||||
page.rawIntro = '[Pull requests](/articles/about-pull-requests)'
|
||||
|
@ -151,7 +159,7 @@ describe('Page class', () => {
|
|||
const context = {
|
||||
currentVersion: `enterprise-server@${enterpriseServerReleases.latest}`,
|
||||
currentLanguage: 'en',
|
||||
enterpriseServerVersions: allVersionIds.filter(id => id.startsWith('enterprise-server@'))
|
||||
enterpriseServerVersions: Object.keys(allVersions).filter(id => id.startsWith('enterprise-server@'))
|
||||
}
|
||||
let rendered = await page.render(context)
|
||||
let $ = cheerio.load(rendered)
|
||||
|
|
Загрузка…
Ссылка в новой задаче