From ba9c0c1cab9b3b9c8c98cd964f832dd2c42b06f2 Mon Sep 17 00:00:00 2001 From: Joe Clark <31087804+jc-clark@users.noreply.github.com> Date: Mon, 31 Jul 2023 09:22:12 -0700 Subject: [PATCH 1/4] Add GHES 3.10 versioning for GraphQL supporting fine-grained PATs (#39819) --- content/graphql/guides/forming-calls-with-graphql.md | 11 +++++++++-- content/graphql/guides/introduction-to-graphql.md | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/content/graphql/guides/forming-calls-with-graphql.md b/content/graphql/guides/forming-calls-with-graphql.md index 6607ea0544..6f91de6e34 100644 --- a/content/graphql/guides/forming-calls-with-graphql.md +++ b/content/graphql/guides/forming-calls-with-graphql.md @@ -20,11 +20,18 @@ You can authenticate to the GraphQL API using a {% data variables.product.pat_ge ### Authenticating with a {% data variables.product.pat_generic %} -To authenticate with a {% data variables.product.pat_generic %}, follow the steps in "[AUTOTITLE](/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)." The data that you are requesting will dictate which scopes or permissions you will need. For example, select the "issues:read" permission to read all of the issues in the repos your token has access to. +To authenticate with a {% data variables.product.pat_generic %}, follow the steps in "[AUTOTITLE](/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)." The data that you are requesting will dictate which scopes {% ifversion pat-v2 %}or permissions {% endif %}you will need. + +{% ifversion pat-v2 %} +For example, select the "issues:read" permission to read all of the issues in the repos your token has access to. All {% data variables.product.pat_v2 %}s include read access to public repositories. To access public repositories with a {% data variables.product.pat_v1 %}, select the "public_repo" scope. -If your token does not have the required scopes or permissions to access a resource, the API will return an error message that states the scopes or permissions your token needs. +{% else %} +For example, select the "read:user" scope to request data about users. Select the "public_repo" scope to request data about public repositories. + +{% endif %} +If your token does not have the required scopes {% ifversion pat-v2 %}or permissions {% endif %}to access a resource, the API will return an error message that states the scopes {% ifversion pat-v2 %}or permissions {% endif %}your token needs. ### Authenticating with a {% data variables.product.prodname_github_app %} diff --git a/content/graphql/guides/introduction-to-graphql.md b/content/graphql/guides/introduction-to-graphql.md index d3867793e2..14b05bdf9c 100644 --- a/content/graphql/guides/introduction-to-graphql.md +++ b/content/graphql/guides/introduction-to-graphql.md @@ -121,7 +121,7 @@ GraphQL is [introspective](https://graphql.github.io/learn/introspection/). This {% note %} - **Note**: If you get the response `"message": "Bad credentials"` or `401 Unauthorized`, check that you are using a valid token. If you receive a `403` error with `Resource not accessible by {% data variables.product.pat_generic %}`, ensure that your {% data variables.product.pat_v2 %} is targeted to the correct resource owner. For example, it must target the organization that owns the repository you are trying to access. + **Note**: If you get the response `"message": "Bad credentials"` or `401 Unauthorized`, check that you are using a valid token. {% ifversion pat-v2 %}If you receive a `403` error with `Resource not accessible by {% data variables.product.pat_generic %}`, ensure that your {% data variables.product.pat_v2 %} is targeted to the correct resource owner. For example, it must target the organization that owns the repository you are trying to access.{% endif %} {% endnote %} From 322e6ca421f6f74bb94553782710a89fcd22dbab Mon Sep 17 00:00:00 2001 From: Kevin Heis Date: Mon, 31 Jul 2023 09:32:57 -0700 Subject: [PATCH 2/4] Update generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md (#40030) Co-authored-by: james-pcdr --- ...ing-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md b/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md index 754890848f..d1709d8af1 100644 --- a/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md +++ b/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md @@ -184,8 +184,9 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav > Agent pid 59566 ``` -1. Add your SSH private key to the ssh-agent. {% data reusables.ssh.add-ssh-key-to-ssh-agent %} - {% data reusables.ssh.add-ssh-key-to-ssh-agent-commandline %} +1. Add your SSH private key to the ssh-agent. +{% indented_data_reference reusables.ssh.add-ssh-key-to-ssh-agent spaces=3 %} +{% indented_data_reference reusables.ssh.add-ssh-key-to-ssh-agent-commandline spaces=3 %} {% data reusables.ssh.add-public-key-to-github %} @@ -195,8 +196,9 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav {% data reusables.command_line.start_ssh_agent %} -1. Add your SSH private key to the ssh-agent. {% data reusables.ssh.add-ssh-key-to-ssh-agent %} - {% data reusables.ssh.add-ssh-key-to-ssh-agent-commandline %} +1. Add your SSH private key to the ssh-agent. +{% indented_data_reference reusables.ssh.add-ssh-key-to-ssh-agent spaces=3 %} +{% indented_data_reference reusables.ssh.add-ssh-key-to-ssh-agent-commandline spaces=3 %} {% data reusables.ssh.add-public-key-to-github %} From b94881172575dbe02f83a9bfa30eded484bdb20c Mon Sep 17 00:00:00 2001 From: docs-bot <77750099+docs-bot@users.noreply.github.com> Date: Mon, 31 Jul 2023 09:38:56 -0700 Subject: [PATCH 3/4] GraphQL schema update (#40036) Co-authored-by: rachmari --- data/graphql/ghae/schema.docs-ghae.graphql | 35 +++++++++++ data/graphql/ghec/schema.docs.graphql | 35 +++++++++++ data/graphql/schema.docs.graphql | 35 +++++++++++ src/graphql/data/fpt/changelog.json | 19 ++++++ src/graphql/data/fpt/schema.json | 70 ++++++++++++++++++++++ src/graphql/data/ghae/schema.json | 70 ++++++++++++++++++++++ src/graphql/data/ghec/schema.json | 70 ++++++++++++++++++++++ 7 files changed, 334 insertions(+) diff --git a/data/graphql/ghae/schema.docs-ghae.graphql b/data/graphql/ghae/schema.docs-ghae.graphql index ad6ff8a41c..612f02e5fc 100644 --- a/data/graphql/ghae/schema.docs-ghae.graphql +++ b/data/graphql/ghae/schema.docs-ghae.graphql @@ -24244,6 +24244,11 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they are archived and not maintained """ @@ -34806,6 +34811,11 @@ type Repository implements Node & ProjectOwner & RepositoryInfo & Starrable & Su """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they have been locked """ @@ -36780,6 +36790,11 @@ interface RepositoryOwner { """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they are archived and not maintained """ @@ -42656,6 +42671,11 @@ type Topic implements Node & Starrable { """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they have been locked """ @@ -46447,6 +46467,11 @@ type User implements Actor & Node & ProfileOwner & ProjectOwner & RepositoryDisc """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they are archived and not maintained """ @@ -46510,6 +46535,11 @@ type User implements Actor & Node & ProfileOwner & ProjectOwner & RepositoryDisc """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssues: Boolean + """ If true, include user repositories """ @@ -46833,6 +46863,11 @@ type User implements Actor & Node & ProfileOwner & ProjectOwner & RepositoryDisc """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they have been locked """ diff --git a/data/graphql/ghec/schema.docs.graphql b/data/graphql/ghec/schema.docs.graphql index 7825594ef8..6c618c7e2c 100644 --- a/data/graphql/ghec/schema.docs.graphql +++ b/data/graphql/ghec/schema.docs.graphql @@ -27784,6 +27784,11 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they are archived and not maintained """ @@ -42232,6 +42237,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they have been locked """ @@ -44426,6 +44436,11 @@ interface RepositoryOwner { """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they are archived and not maintained """ @@ -53404,6 +53419,11 @@ type Topic implements Node & Starrable { """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they have been locked """ @@ -57957,6 +57977,11 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they are archived and not maintained """ @@ -58020,6 +58045,11 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssues: Boolean + """ If true, include user repositories """ @@ -58642,6 +58672,11 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they have been locked """ diff --git a/data/graphql/schema.docs.graphql b/data/graphql/schema.docs.graphql index 7825594ef8..6c618c7e2c 100644 --- a/data/graphql/schema.docs.graphql +++ b/data/graphql/schema.docs.graphql @@ -27784,6 +27784,11 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they are archived and not maintained """ @@ -42232,6 +42237,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they have been locked """ @@ -44426,6 +44436,11 @@ interface RepositoryOwner { """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they are archived and not maintained """ @@ -53404,6 +53419,11 @@ type Topic implements Node & Starrable { """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they have been locked """ @@ -57957,6 +57977,11 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they are archived and not maintained """ @@ -58020,6 +58045,11 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssues: Boolean + """ If true, include user repositories """ @@ -58642,6 +58672,11 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ first: Int + """ + If non-null, filters repositories according to whether they have issues enabled + """ + hasIssuesEnabled: Boolean + """ If non-null, filters repositories according to whether they have been locked """ diff --git a/src/graphql/data/fpt/changelog.json b/src/graphql/data/fpt/changelog.json index 56f5647181..f3490ae1d8 100644 --- a/src/graphql/data/fpt/changelog.json +++ b/src/graphql/data/fpt/changelog.json @@ -1,4 +1,23 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "

Argument hasIssuesEnabled: Boolean added to field Organization.repositories

", + "

Argument hasIssuesEnabled: Boolean added to field Repository.forks

", + "

Argument hasIssuesEnabled: Boolean added to field RepositoryOwner.repositories

", + "

Argument hasIssuesEnabled: Boolean added to field Topic.repositories

", + "

Argument hasIssuesEnabled: Boolean added to field User.repositories

", + "

Argument hasIssues: Boolean added to field User.repositoriesContributedTo

", + "

Argument hasIssuesEnabled: Boolean added to field User.watching

" + ] + } + ], + "previewChanges": [], + "upcomingChanges": [], + "date": "2023-07-31" + }, { "schemaChanges": [ { diff --git a/src/graphql/data/fpt/schema.json b/src/graphql/data/fpt/schema.json index 69825533f6..07ab024b4d 100644 --- a/src/graphql/data/fpt/schema.json +++ b/src/graphql/data/fpt/schema.json @@ -38992,6 +38992,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isArchived", "description": "

If non-null, filters repositories according to whether they are archived and not maintained.

", @@ -58178,6 +58188,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isLocked", "description": "

If non-null, filters repositories according to whether they have been locked.

", @@ -69766,6 +69786,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isLocked", "description": "

If non-null, filters repositories according to whether they have been locked.

", @@ -72153,6 +72183,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isArchived", "description": "

If non-null, filters repositories according to whether they are archived and not maintained.

", @@ -72273,6 +72313,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssues", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "includeUserRepositories", "description": "

If true, include user repositories.

", @@ -73469,6 +73519,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isLocked", "description": "

If non-null, filters repositories according to whether they have been locked.

", @@ -77181,6 +77241,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isArchived", "description": "

If non-null, filters repositories according to whether they are archived and not maintained.

", diff --git a/src/graphql/data/ghae/schema.json b/src/graphql/data/ghae/schema.json index 17122d5b30..b8c50824ac 100644 --- a/src/graphql/data/ghae/schema.json +++ b/src/graphql/data/ghae/schema.json @@ -34081,6 +34081,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isArchived", "description": "

If non-null, filters repositories according to whether they are archived and not maintained.

", @@ -48572,6 +48582,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isLocked", "description": "

If non-null, filters repositories according to whether they have been locked.

", @@ -58375,6 +58395,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isLocked", "description": "

If non-null, filters repositories according to whether they have been locked.

", @@ -60441,6 +60471,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isArchived", "description": "

If non-null, filters repositories according to whether they are archived and not maintained.

", @@ -60561,6 +60601,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssues", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "includeUserRepositories", "description": "

If true, include user repositories.

", @@ -61183,6 +61233,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isLocked", "description": "

If non-null, filters repositories according to whether they have been locked.

", @@ -64338,6 +64398,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isArchived", "description": "

If non-null, filters repositories according to whether they are archived and not maintained.

", diff --git a/src/graphql/data/ghec/schema.json b/src/graphql/data/ghec/schema.json index 69825533f6..07ab024b4d 100644 --- a/src/graphql/data/ghec/schema.json +++ b/src/graphql/data/ghec/schema.json @@ -38992,6 +38992,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isArchived", "description": "

If non-null, filters repositories according to whether they are archived and not maintained.

", @@ -58178,6 +58188,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isLocked", "description": "

If non-null, filters repositories according to whether they have been locked.

", @@ -69766,6 +69786,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isLocked", "description": "

If non-null, filters repositories according to whether they have been locked.

", @@ -72153,6 +72183,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isArchived", "description": "

If non-null, filters repositories according to whether they are archived and not maintained.

", @@ -72273,6 +72313,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssues", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "includeUserRepositories", "description": "

If true, include user repositories.

", @@ -73469,6 +73519,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isLocked", "description": "

If non-null, filters repositories according to whether they have been locked.

", @@ -77181,6 +77241,16 @@ "href": "/graphql/reference/scalars#int" } }, + { + "name": "hasIssuesEnabled", + "description": "

If non-null, filters repositories according to whether they have issues enabled.

", + "type": { + "name": "Boolean", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + } + }, { "name": "isArchived", "description": "

If non-null, filters repositories according to whether they are archived and not maintained.

", From 2ed088d49f73298ed92f8881b49d5fcb59cb41ba Mon Sep 17 00:00:00 2001 From: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com> Date: Mon, 31 Jul 2023 17:39:09 +0100 Subject: [PATCH 4/4] Add clarification about PRs and renaming branches (#40025) --- .../managing-branches-in-your-repository/renaming-a-branch.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch.md b/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch.md index 84aefacb44..cf7526f48a 100644 --- a/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch.md +++ b/content/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch.md @@ -17,7 +17,9 @@ redirect_from: You can rename a branch in a repository on {% data variables.location.product_location %}. For more information about branches, see "[AUTOTITLE](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches))." -When you rename a branch on {% data variables.location.product_location %}, any URLs that contain the old branch name are automatically redirected to the equivalent URL for the renamed branch. Branch protection policies are also updated, as well as the base branch for open pull requests (including those for forks) and draft releases. After the rename is complete, {% data variables.product.prodname_dotcom %} provides instructions on the repository's home page directing contributors to update their local Git environments. +When you rename a branch on {% data variables.location.product_location %}, any URLs that contain the old branch name are automatically redirected to the equivalent URL for the renamed branch. Branch protection policies are also updated, as well as the base branch for open pull requests (including those for forks) and draft releases. If the renamed branch is the head branch of an open pull request, this pull request is closed. + +After the rename is complete, {% data variables.product.prodname_dotcom %} provides instructions on the repository's home page directing contributors to update their local Git environments. Although file URLs are automatically redirected, raw file URLs are not redirected. Also, {% data variables.product.prodname_dotcom %} does not perform any redirects if users perform a `git pull` for the previous branch name.