Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f89abbd
Merge branch 'main' into repo-sync
Octomerger Apr 20, 2021
8dc7968
Merge pull request #18874 from github/repo-sync
Octomerger Apr 20, 2021
c38bbfd
Add versioning for `[skip ci]`, previously omitted (#18875)
hubwriter Apr 20, 2021
fec61ef
Merge branch 'main' into repo-sync
Octomerger Apr 20, 2021
262fe57
Merge pull request #18876 from github/repo-sync
Octomerger Apr 20, 2021
317872f
Remove outdated mention of sharing SMTP credentials with GitHub for G…
mattpollard Apr 20, 2021
de28b75
Configure `GITHUB_TOKEN` permissions (#18348)
hubwriter Apr 20, 2021
0b0127f
Merge pull request #5551 from github/repo-sync
Octomerger Apr 20, 2021
80e2732
Merge branch 'main' into repo-sync
Octomerger Apr 20, 2021
262878f
Merge branch 'main' into repo-sync
Octomerger Apr 20, 2021
3b31118
Merge pull request #18886 from github/repo-sync
Octomerger Apr 20, 2021
a2e216c
Merge pull request #5567 from github/repo-sync
Octomerger Apr 20, 2021
0c38306
Action ran graphql script"update-files"
rachmari Apr 20, 2021
79ecb96
End "custom core" primer, use regular core instead (#18887)
heiskr Apr 20, 2021
86ab625
Branch was updated using the 'autoupdate branch' Actions workflow.
Octomerger Apr 20, 2021
11db06d
GraphQL schema update
Octomerger Apr 20, 2021
9cf0ffc
Merge branch 'main' into repo-sync
Octomerger Apr 20, 2021
53f3551
Merge branch 'main' into repo-sync
Octomerger Apr 20, 2021
0ab7071
Merge pull request #18890 from github/repo-sync
Octomerger Apr 20, 2021
9c80b35
Merge pull request #5568 from github/repo-sync
Octomerger Apr 20, 2021
d61ae5b
Private image registry support & Codespaces audit logs (#18840)
timeyoutakeit Apr 20, 2021
73e55c6
Merge branch 'main' into repo-sync
Octomerger Apr 20, 2021
b9051d9
Merge pull request #18892 from github/repo-sync
Octomerger Apr 20, 2021
ead972a
Merge pull request #5571 from github/repo-sync
Octomerger Apr 20, 2021
ce508db
Remove thead background (#18883)
heiskr Apr 20, 2021
fea5399
Merge pull request #5576 from github/repo-sync
Octomerger Apr 20, 2021
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
40 changes: 40 additions & 0 deletions data/graphql/ghae/schema.docs-ghae.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4723,6 +4723,36 @@ type ConvertProjectCardNoteToIssuePayload {
projectCard: ProjectCard
}

"""
Autogenerated input type of ConvertPullRequestToDraft
"""
input ConvertPullRequestToDraftInput {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String

"""
ID of the pull request to convert to draft
"""
pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])
}

"""
Autogenerated return type of ConvertPullRequestToDraft
"""
type ConvertPullRequestToDraftPayload {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String

"""
The pull request that is now a draft.
"""
pullRequest: PullRequest
}

"""
Represents a 'convert_to_draft' event on a given pull request.
"""
Expand Down Expand Up @@ -14566,6 +14596,16 @@ type Mutation {
input: ConvertProjectCardNoteToIssueInput!
): ConvertProjectCardNoteToIssuePayload

"""
Converts a pull request to draft
"""
convertPullRequestToDraft(
"""
Parameters for ConvertPullRequestToDraft
"""
input: ConvertPullRequestToDraftInput!
): ConvertPullRequestToDraftPayload

"""
Create a new branch protection rule
"""
Expand Down
40 changes: 40 additions & 0 deletions data/graphql/schema.docs.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4813,6 +4813,36 @@ type ConvertProjectCardNoteToIssuePayload {
projectCard: ProjectCard
}

"""
Autogenerated input type of ConvertPullRequestToDraft
"""
input ConvertPullRequestToDraftInput {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String

"""
ID of the pull request to convert to draft
"""
pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"])
}

"""
Autogenerated return type of ConvertPullRequestToDraft
"""
type ConvertPullRequestToDraftPayload {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String

"""
The pull request that is now a draft.
"""
pullRequest: PullRequest
}

"""
Represents a 'convert_to_draft' event on a given pull request.
"""
Expand Down Expand Up @@ -15591,6 +15621,16 @@ type Mutation {
input: ConvertProjectCardNoteToIssueInput!
): ConvertProjectCardNoteToIssuePayload

"""
Converts a pull request to draft
"""
convertPullRequestToDraft(
"""
Parameters for ConvertPullRequestToDraft
"""
input: ConvertPullRequestToDraftInput!
): ConvertPullRequestToDraftPayload

"""
Create a new branch protection rule
"""
Expand Down
15 changes: 15 additions & 0 deletions lib/graphql/static/changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
[
{
"schemaChanges": [
{
"title": "The GraphQL schema includes these changes:",
"changes": [
"Type `ConvertPullRequestToDraftInput` was added",
"Type `ConvertPullRequestToDraftPayload` was added",
"Field `convertPullRequestToDraft` was added to object type `Mutation`"
]
}
],
"previewChanges": [],
"upcomingChanges": [],
"date": "2021-04-20"
},
{
"schemaChanges": [
{
Expand Down
14 changes: 12 additions & 2 deletions lib/graphql/static/prerendered-input-objects.json

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions lib/graphql/static/schema-dotcom.json
Original file line number Diff line number Diff line change
Expand Up @@ -1745,6 +1745,40 @@
}
]
},
{
"name": "convertPullRequestToDraft",
"kind": "mutations",
"id": "convertpullrequesttodraft",
"href": "/graphql/reference/mutations#convertpullrequesttodraft",
"description": "<p>Converts a pull request to draft.</p>",
"inputFields": [
{
"name": "input",
"type": "ConvertPullRequestToDraftInput!",
"id": "convertpullrequesttodraftinput",
"kind": "input-objects",
"href": "/graphql/reference/input-objects#convertpullrequesttodraftinput"
}
],
"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": "pullRequest",
"type": "PullRequest",
"id": "pullrequest",
"kind": "objects",
"href": "/graphql/reference/objects#pullrequest",
"description": "<p>The pull request that is now a draft.</p>"
}
]
},
{
"name": "createBranchProtectionRule",
"kind": "mutations",
Expand Down Expand Up @@ -65136,6 +65170,32 @@
}
]
},
{
"name": "ConvertPullRequestToDraftInput",
"kind": "inputObjects",
"id": "convertpullrequesttodraftinput",
"href": "/graphql/reference/input-objects#convertpullrequesttodraftinput",
"description": "<p>Autogenerated input type of ConvertPullRequestToDraft.</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": "pullRequestId",
"description": "<p>ID of the pull request to convert to draft.</p>",
"type": "ID!",
"id": "id",
"kind": "scalars",
"href": "/graphql/reference/scalars#id",
"isDeprecated": false
}
]
},
{
"name": "CreateBranchProtectionRuleInput",
"kind": "inputObjects",
Expand Down
60 changes: 60 additions & 0 deletions lib/graphql/static/schema-ghae.json
Original file line number Diff line number Diff line change
Expand Up @@ -1370,6 +1370,40 @@
}
]
},
{
"name": "convertPullRequestToDraft",
"kind": "mutations",
"id": "convertpullrequesttodraft",
"href": "/graphql/reference/mutations#convertpullrequesttodraft",
"description": "<p>Converts a pull request to draft.</p>",
"inputFields": [
{
"name": "input",
"type": "ConvertPullRequestToDraftInput!",
"id": "convertpullrequesttodraftinput",
"kind": "input-objects",
"href": "/graphql/reference/input-objects#convertpullrequesttodraftinput"
}
],
"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": "pullRequest",
"type": "PullRequest",
"id": "pullrequest",
"kind": "objects",
"href": "/graphql/reference/objects#pullrequest",
"description": "<p>The pull request that is now a draft.</p>"
}
]
},
{
"name": "createBranchProtectionRule",
"kind": "mutations",
Expand Down Expand Up @@ -60681,6 +60715,32 @@
}
]
},
{
"name": "ConvertPullRequestToDraftInput",
"kind": "inputObjects",
"id": "convertpullrequesttodraftinput",
"href": "/graphql/reference/input-objects#convertpullrequesttodraftinput",
"description": "<p>Autogenerated input type of ConvertPullRequestToDraft.</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": "pullRequestId",
"description": "<p>ID of the pull request to convert to draft.</p>",
"type": "ID!",
"id": "id",
"kind": "scalars",
"href": "/graphql/reference/scalars#id",
"isDeprecated": false
}
]
},
{
"name": "CreateBranchProtectionRuleInput",
"kind": "inputObjects",
Expand Down
34 changes: 1 addition & 33 deletions stylesheets/index.scss
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
// Import modules needed from Primer (stored in local `node_modules` directory)
@import "@primer/css/support/index.scss";

// BEGIN CUSTOM CORE IMPORT
// Normally we would just import @primer/css/core/index.scss, but that file
// currently imports @primer/css/layout/index.scss, which in turn imports
// @primer/css/layout/columns.scss, which has deprecated styles that litter
// the logs with warnings. We're not using those styles, so the warnings are
// avoided here by not importing the file.
//
// TODO: Use a simple core import when https://github.com/primer/css/issues/741 is resolved
@import "@primer/css/base/index.scss";
@import "@primer/css/box/index.scss";
@import "@primer/css/buttons/index.scss";
@import "@primer/css/forms/index.scss";

// BEGIN CUSTOM LAYOUT IMPORT
@import "@primer/css/support/index.scss";
@import "@primer/css/layout/container.scss";
// @import "@primer/css/layout/columns.scss"; <-- deprecated and unused
@import "@primer/css/layout/grid.scss";
@import "@primer/css/layout/grid-offset.scss";
// END CUSTOM LAYOUT IMPORT

@import "@primer/css/navigation/index.scss";
@import "@primer/css/pagination/index.scss";
@import "@primer/css/tooltips/index.scss";
@import "@primer/css/truncate/index.scss";
@import "@primer/css/utilities/index.scss";
@import "@primer/css/avatars/index.scss";
// END CUSTOM CORE IMPORT

@import "@primer/css/core/index.scss";
@import "@primer/css/markdown/index.scss";
@import "@primer/css/forms/index.scss";
@import "@primer/css/navigation/index.scss";
Expand All @@ -49,7 +18,6 @@ $marketing-font-path: "/dist/fonts/";
@import "sidebar.scss";
@import "scroll-button.scss";
@import "explorer.scss";
// from https://unpkg.com/[email protected]/styles/github.css
@import "syntax-highlighting.scss";
@import "tables.scss";
@import "opacity.scss";
Expand Down