1
0
mirror of synced 2026-01-09 15:02:41 -05:00

Merge pull request #27174 from github/repo-sync

Repo sync
This commit is contained in:
docs-bot
2023-07-31 10:01:45 -07:00
committed by GitHub
11 changed files with 353 additions and 8 deletions

View File

@@ -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 %}

View File

@@ -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 %}

View File

@@ -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 %}

View File

@@ -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.

View File

@@ -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
"""

View File

@@ -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
"""

View File

@@ -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
"""

View File

@@ -1,4 +1,23 @@
[
{
"schemaChanges": [
{
"title": "The GraphQL schema includes these changes:",
"changes": [
"<p>Argument <code>hasIssuesEnabled: Boolean</code> added to field <code>Organization.repositories</code></p>",
"<p>Argument <code>hasIssuesEnabled: Boolean</code> added to field <code>Repository.forks</code></p>",
"<p>Argument <code>hasIssuesEnabled: Boolean</code> added to field <code>RepositoryOwner.repositories</code></p>",
"<p>Argument <code>hasIssuesEnabled: Boolean</code> added to field <code>Topic.repositories</code></p>",
"<p>Argument <code>hasIssuesEnabled: Boolean</code> added to field <code>User.repositories</code></p>",
"<p>Argument <code>hasIssues: Boolean</code> added to field <code>User.repositoriesContributedTo</code></p>",
"<p>Argument <code>hasIssuesEnabled: Boolean</code> added to field <code>User.watching</code></p>"
]
}
],
"previewChanges": [],
"upcomingChanges": [],
"date": "2023-07-31"
},
{
"schemaChanges": [
{

View File

@@ -38992,6 +38992,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isArchived",
"description": "<p>If non-null, filters repositories according to whether they are archived and not maintained.</p>",
@@ -58178,6 +58188,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isLocked",
"description": "<p>If non-null, filters repositories according to whether they have been locked.</p>",
@@ -69766,6 +69786,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isLocked",
"description": "<p>If non-null, filters repositories according to whether they have been locked.</p>",
@@ -72153,6 +72183,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isArchived",
"description": "<p>If non-null, filters repositories according to whether they are archived and not maintained.</p>",
@@ -72273,6 +72313,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssues",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "includeUserRepositories",
"description": "<p>If true, include user repositories.</p>",
@@ -73469,6 +73519,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isLocked",
"description": "<p>If non-null, filters repositories according to whether they have been locked.</p>",
@@ -77181,6 +77241,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isArchived",
"description": "<p>If non-null, filters repositories according to whether they are archived and not maintained.</p>",

View File

@@ -34081,6 +34081,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isArchived",
"description": "<p>If non-null, filters repositories according to whether they are archived and not maintained.</p>",
@@ -48572,6 +48582,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isLocked",
"description": "<p>If non-null, filters repositories according to whether they have been locked.</p>",
@@ -58375,6 +58395,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isLocked",
"description": "<p>If non-null, filters repositories according to whether they have been locked.</p>",
@@ -60441,6 +60471,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isArchived",
"description": "<p>If non-null, filters repositories according to whether they are archived and not maintained.</p>",
@@ -60561,6 +60601,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssues",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "includeUserRepositories",
"description": "<p>If true, include user repositories.</p>",
@@ -61183,6 +61233,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isLocked",
"description": "<p>If non-null, filters repositories according to whether they have been locked.</p>",
@@ -64338,6 +64398,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isArchived",
"description": "<p>If non-null, filters repositories according to whether they are archived and not maintained.</p>",

View File

@@ -38992,6 +38992,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isArchived",
"description": "<p>If non-null, filters repositories according to whether they are archived and not maintained.</p>",
@@ -58178,6 +58188,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isLocked",
"description": "<p>If non-null, filters repositories according to whether they have been locked.</p>",
@@ -69766,6 +69786,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isLocked",
"description": "<p>If non-null, filters repositories according to whether they have been locked.</p>",
@@ -72153,6 +72183,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isArchived",
"description": "<p>If non-null, filters repositories according to whether they are archived and not maintained.</p>",
@@ -72273,6 +72313,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssues",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "includeUserRepositories",
"description": "<p>If true, include user repositories.</p>",
@@ -73469,6 +73519,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isLocked",
"description": "<p>If non-null, filters repositories according to whether they have been locked.</p>",
@@ -77181,6 +77241,16 @@
"href": "/graphql/reference/scalars#int"
}
},
{
"name": "hasIssuesEnabled",
"description": "<p>If non-null, filters repositories according to whether they have issues enabled.</p>",
"type": {
"name": "Boolean",
"id": "boolean",
"kind": "scalars",
"href": "/graphql/reference/scalars#boolean"
}
},
{
"name": "isArchived",
"description": "<p>If non-null, filters repositories according to whether they are archived and not maintained.</p>",