Skip to content

Commit 804bff9

Browse files
authored
Merge branch 'main' into code-scanning-debug-logs
2 parents 49e5e5c + 82ed7fd commit 804bff9

17 files changed

+165
-10
lines changed

.github/workflows/close-external-repo-sync-prs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
invalid-repo-sync-check:
1313
name: Close external Repo Sync PRs
14-
if: ${{ github.repository == 'github/docs' && github.ref == 'refs/heads/repo-sync' }}
14+
if: ${{ github.repository == 'github/docs' && github.head_ref == 'repo-sync' }}
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9

data/graphql/ghae/schema.docs-ghae.graphql

+20
Original file line numberDiff line numberDiff line change
@@ -2132,6 +2132,16 @@ type CheckRun implements Node & UniformResourceLocatable {
21322132
externalId: String
21332133
id: ID!
21342134

2135+
"""
2136+
Whether this check run is required to pass before merging.
2137+
"""
2138+
isRequired(
2139+
"""
2140+
The pull request this check is required for
2141+
"""
2142+
pullRequestId: ID!
2143+
): Boolean!
2144+
21352145
"""
21362146
The name of the check for this check run.
21372147
"""
@@ -31869,6 +31879,16 @@ type StatusContext implements Node {
3186931879
description: String
3187031880
id: ID!
3187131881

31882+
"""
31883+
Whether this status is required to pass before merging.
31884+
"""
31885+
isRequired(
31886+
"""
31887+
The pull request this status is required for
31888+
"""
31889+
pullRequestId: ID!
31890+
): Boolean!
31891+
3187231892
"""
3187331893
The state of this status context.
3187431894
"""

data/graphql/schema.docs.graphql

+20
Original file line numberDiff line numberDiff line change
@@ -2222,6 +2222,16 @@ type CheckRun implements Node & UniformResourceLocatable {
22222222
externalId: String
22232223
id: ID!
22242224

2225+
"""
2226+
Whether this check run is required to pass before merging.
2227+
"""
2228+
isRequired(
2229+
"""
2230+
The pull request this check is required for
2231+
"""
2232+
pullRequestId: ID!
2233+
): Boolean!
2234+
22252235
"""
22262236
The name of the check for this check run.
22272237
"""
@@ -34802,6 +34812,16 @@ type StatusContext implements Node {
3480234812
description: String
3480334813
id: ID!
3480434814

34815+
"""
34816+
Whether this status is required to pass before merging.
34817+
"""
34818+
isRequired(
34819+
"""
34820+
The pull request this status is required for
34821+
"""
34822+
pullRequestId: ID!
34823+
): Boolean!
34824+
3480534825
"""
3480634826
The state of this status context.
3480734827
"""

data/release-notes/2-21/0.yml

+1
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@ sections:
6969
- 'When "Users can search GitHub.com" is enabled with GitHub Connect, issues in private and internal repositories are not included in GitHub.com search results. {% comment %} https://github.com/github/admin-experience/issues/571 {% endcomment %}'
7070
- 'Security alerts are not reported when pushing to a repository on the command line. (updated 2020-06-23) {% comment %} https://github.com/github/github/issues/143190 {% endcomment %}'
7171
- 'Audit logs may be attributed to 127.0.0.1 instead of the actual source IP address. (updated 2020-11-02) {% comment %} https://github.com/github/enterprise2/issues/21514 {% endcomment %}'
72+
- "Configuring a repository's permission to `Triage` or `Maintain` fails with an error message."

data/release-notes/2-21/1.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ sections:
1717
- 'When "Users can search GitHub.com" is enabled with GitHub Connect, issues in private and internal repositories are not included in GitHub.com search results. {% comment %} https://github.com/github/admin-experience/issues/571 {% endcomment %}'
1818
- 'Security alerts are not reported when pushing to a repository on the command line. {% comment %} https://github.com/github/github/issues/143190 {% endcomment %}'
1919
- 'Audit logs may be attributed to 127.0.0.1 instead of the actual source IP address. (updated 2020-11-02) {% comment %} https://github.com/github/enterprise2/issues/21514 {% endcomment %}'
20+
- "Configuring a repository's permission to `Triage` or `Maintain` fails with an error message."

data/release-notes/2-21/2.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ sections:
1717
- 'When "Users can search GitHub.com" is enabled with GitHub Connect, issues in private and internal repositories are not included in GitHub.com search results. {% comment %} https://github.com/github/admin-experience/issues/571 {% endcomment %}'
1818
- 'Security alerts are not reported when pushing to a repository on the command line. {% comment %} https://github.com/github/github/issues/143190 {% endcomment %}'
1919
- 'Audit logs may be attributed to 127.0.0.1 instead of the actual source IP address. (updated 2020-11-02) {% comment %} https://github.com/github/enterprise2/issues/21514 {% endcomment %}'
20+
- "Configuring a repository's permission to `Triage` or `Maintain` fails with an error message."

data/release-notes/2-21/3.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ sections:
1414
- 'When "Users can search GitHub.com" is enabled with GitHub Connect, issues in private and internal repositories are not included in GitHub.com search results. {% comment %} https://github.com/github/admin-experience/issues/571 {% endcomment %}'
1515
- 'Security alerts are not reported when pushing to a repository on the command line. {% comment %} https://github.com/github/github/issues/143190 {% endcomment %}'
1616
- 'Audit logs may be attributed to 127.0.0.1 instead of the actual source IP address. (updated 2020-11-02) {% comment %} https://github.com/github/enterprise2/issues/21514 {% endcomment %}'
17+
- "Configuring a repository's permission to `Triage` or `Maintain` fails with an error message."

data/release-notes/2-21/4.yml

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ sections:
2424
- 'When "Users can search GitHub.com" is enabled with GitHub Connect, issues in private and internal repositories are not included in GitHub.com search results. {% comment %} https://github.com/github/admin-experience/issues/571 {% endcomment %}'
2525
- 'Security alerts are not reported when pushing to a repository on the command line. {% comment %} https://github.com/github/github/issues/143190 {% endcomment %}'
2626
- 'Audit logs may be attributed to 127.0.0.1 instead of the actual source IP address. (updated 2020-11-02) {% comment %} https://github.com/github/enterprise2/issues/21514 {% endcomment %}'
27+
- "Configuring a repository's permission to `Triage` or `Maintain` fails with an error message."

data/release-notes/2-21/5.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ sections:
1212
- 'When "Users can search GitHub.com" is enabled with GitHub Connect, issues in private and internal repositories are not included in GitHub.com search results. {% comment %} https://github.com/github/admin-experience/issues/571 {% endcomment %}'
1313
- 'Security alerts are not reported when pushing to a repository on the command line. {% comment %} https://github.com/github/github/issues/143190 {% endcomment %}'
1414
- 'Audit logs may be attributed to 127.0.0.1 instead of the actual source IP address. (updated 2020-11-02) {% comment %} https://github.com/github/enterprise2/issues/21514 {% endcomment %}'
15+
- "Configuring a repository's permission to `Triage` or `Maintain` fails with an error message."

data/release-notes/2-21/6.yml

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ sections:
2424
- 'When "Users can search GitHub.com" is enabled with GitHub Connect, issues in private and internal repositories are not included in GitHub.com search results. {% comment %} https://github.com/github/admin-experience/issues/571 {% endcomment %}'
2525
- 'Security alerts are not reported when pushing to a repository on the command line. {% comment %} https://github.com/github/github/issues/143190 {% endcomment %}'
2626
- 'Audit logs may be attributed to 127.0.0.1 instead of the actual source IP address. (updated 2020-11-02) {% comment %} https://github.com/github/enterprise2/issues/21514 {% endcomment %}'
27+
- "Configuring a repository's permission to `Triage` or `Maintain` fails with an error message."

data/release-notes/2-21/7.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ sections:
33
bugs:
44
- 'A service health check caused session growth resulting in filesystem inode exhaustion. {% comment %} https://github.com/github/enterprise2/pull/22481, https://github.com/github/enterprise2/pull/22475 {% endcomment %}'
55
- "Upgrading using a hotpatch could fail with an error: `'libdbi1' was not found` {% comment %} https://github.com/github/enterprise2/pull/22556, https://github.com/github/enterprise2/pull/22552 {% endcomment %}"
6+
- "Configuring a repository's permission to `Triage` or `Maintain` no longer fails."
67
known_issues:
78
- 'On a freshly set up GitHub Enterprise Server without any users, an attacker could create the first admin user. {% comment %} https://github.com/github/enterprise2/issues/1889 {% endcomment %}'
89
- 'Custom firewall rules are not maintained during an upgrade. {% comment %} https://github.com/github/enterprise2/issues/2823 {% endcomment %}'

data/release-notes/3-0/0.yml

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ sections:
113113
- The format of several log files have changed, including the addition of a PID for different log types. This does not affect how GitHub Enterprise Support uses support bundles to troubleshoot issues.
114114
- A PATCH request to the webhook configuration API no longer erases the webhook secret.
115115
- Certain types of pre-receive hooks were failing.
116+
- 'The Packages NuGet service now normalizes semantic versions on publish. An invalid semantic version (for example: v1.0.0.0.0.0) is not downloadable by NuGet clients and therefore a NuGet service is expected to normalize those versions (for example: v1.0.0.0.0.0 --> v1.0.0). Any original, non-normalized, version will be available in the `verbatimVersion` field. No changes to client configurations are required.'
116117

117118
known_issues:
118119
- On a freshly set up {% data variables.product.prodname_ghe_server %} without any users, an attacker could create the first admin user.

data/reusables/notifications/vulnerable-dependency-notification-options.md

+19-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
1-
{% if currentVersion == "free-pro-team@latest" %}
2-
By default, you will receive notification of new {% data variables.product.prodname_dependabot_alerts %}:
3-
- by email, an email is sent every time a vulnerability with a critical or high severity is found (**Email each time a vulnerability is found** option)
4-
- in the user interface, a warning is shown in your repository's file and code views if there are any vulnerable dependencies (**UI alerts** option)
5-
- on the command line, warnings are displayed as callbacks when you push to repositories with any vulnerable dependencies (**Command Line** option)
6-
- in your inbox, as web notifications for new vulnerabilities with a critical or high severity (**Web** option)
1+
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.1" %}
2+
{% if currentVersion == "free-pro-team@latest"%}By default, you will receive notifications:{% endif %}{% if enterpriseServerVersions contains currentVersion and currentVersion gt "enterprise-server@3.1" %}By default, if your site administrator has configured email for notifications on your instance, you will receive {% data variables.product.prodname_dependabot_alerts %}:{% endif %}
3+
4+
- by email, an email is sent when {% data variables.product.prodname_dependabot %} is enabled for a repository, when a new manifest file is committed to the repository, and when a new vulnerability with a critical or high severity is found (**Email each time a vulnerability is found** option).
5+
- in the user interface, a warning is shown in your repository's file and code views if there are any vulnerable dependencies (**UI alerts** option).
6+
- on the command line, warnings are displayed as callbacks when you push to repositories with any vulnerable dependencies (**Command Line** option).
7+
- in your inbox, as web notifications. A web notification is sent when {% data variables.product.prodname_dependabot %} is enabled for a repository, when a new manifest file is committed to the repository, and when a new vulnerability with a critical or high severity is found (**Web** option).
8+
- on {% data variables.product.prodname_mobile %}, as web notifications. For more information, see "[Enabling push notifications with GitHub for mobile](/github/managing-subscriptions-and-notifications-on-github/configuring-notifications#enabling-push-notifications-with-github-for-mobile)."
9+
10+
{% note %}
11+
12+
**Note:** The email and web/{% data variables.product.prodname_mobile %} notifications are:
13+
14+
- _per repository_ when {% data variables.product.prodname_dependabot %} is enabled on the repository, or when a new manifest file is committed to the repository.
15+
16+
- _per organization_ when a new vulnerability is discovered.
17+
18+
{% endnote %}
719

820
You can customize the way you are notified about {% data variables.product.prodname_dependabot_alerts %}. For example, you can receive a weekly digest email summarizing alerts for up to 10 of your repositories using the **Email a digest summary of vulnerabilities** and **Weekly security email digest** options.
921
{% endif %}
1022

11-
{% if enterpriseServerVersions contains currentVersion and currentVersion ver_gt "enterprise-server@2.21" %}
23+
{% if currentVersion == "enterprise-server@2.22" or currentVersion == "enterprise-server@3.0" or currentVersion == "enterprise-server@3.1" %}
1224
By default, if your site administrator has configured email for notifications on your instance, you will receive {% data variables.product.prodname_dependabot_alerts %}:
1325
- by email, an email is sent every time a vulnerability {% if currentVersion ver_gt "enterprise-server@2.23" %}with a critical or high severity {% endif %}is found (**Email each time a vulnerability is found** option)
1426
- in the user interface, a warning is shown in your repository's file and code views if there are any vulnerable dependencies (**UI alerts** option)

lib/graphql/static/changelog.json

+14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
[
2+
{
3+
"schemaChanges": [
4+
{
5+
"title": "The GraphQL schema includes these changes:",
6+
"changes": [
7+
"Field `isRequired` was added to object type `CheckRun`",
8+
"Field `isRequired` was added to object type `StatusContext`"
9+
]
10+
}
11+
],
12+
"previewChanges": [],
13+
"upcomingChanges": [],
14+
"date": "2021-03-18"
15+
},
216
{
317
"schemaChanges": [
418
{

lib/graphql/static/prerendered-objects.json

+2-2
Large diffs are not rendered by default.

lib/graphql/static/schema-dotcom.json

+40
Original file line numberDiff line numberDiff line change
@@ -8340,6 +8340,26 @@
83408340
"kind": "scalars",
83418341
"href": "/graphql/reference/scalars#string"
83428342
},
8343+
{
8344+
"name": "isRequired",
8345+
"description": "<p>Whether this check run is required to pass before merging.</p>",
8346+
"type": "Boolean!",
8347+
"id": "boolean",
8348+
"kind": "scalars",
8349+
"href": "/graphql/reference/scalars#boolean",
8350+
"arguments": [
8351+
{
8352+
"name": "pullRequestId",
8353+
"description": "<p>The pull request this check is required for.</p>",
8354+
"type": {
8355+
"name": "ID!",
8356+
"id": "id",
8357+
"kind": "scalars",
8358+
"href": "/graphql/reference/scalars#id"
8359+
}
8360+
}
8361+
]
8362+
},
83438363
{
83448364
"name": "name",
83458365
"description": "<p>The name of the check for this check run.</p>",
@@ -48997,6 +49017,26 @@
4899749017
"kind": "scalars",
4899849018
"href": "/graphql/reference/scalars#string"
4899949019
},
49020+
{
49021+
"name": "isRequired",
49022+
"description": "<p>Whether this status is required to pass before merging.</p>",
49023+
"type": "Boolean!",
49024+
"id": "boolean",
49025+
"kind": "scalars",
49026+
"href": "/graphql/reference/scalars#boolean",
49027+
"arguments": [
49028+
{
49029+
"name": "pullRequestId",
49030+
"description": "<p>The pull request this status is required for.</p>",
49031+
"type": {
49032+
"name": "ID!",
49033+
"id": "id",
49034+
"kind": "scalars",
49035+
"href": "/graphql/reference/scalars#id"
49036+
}
49037+
}
49038+
]
49039+
},
4900049040
{
4900149041
"name": "state",
4900249042
"description": "<p>The state of this status context.</p>",

lib/graphql/static/schema-ghae.json

+40
Original file line numberDiff line numberDiff line change
@@ -7527,6 +7527,26 @@
75277527
"kind": "scalars",
75287528
"href": "/graphql/reference/scalars#string"
75297529
},
7530+
{
7531+
"name": "isRequired",
7532+
"description": "<p>Whether this check run is required to pass before merging.</p>",
7533+
"type": "Boolean!",
7534+
"id": "boolean",
7535+
"kind": "scalars",
7536+
"href": "/graphql/reference/scalars#boolean",
7537+
"arguments": [
7538+
{
7539+
"name": "pullRequestId",
7540+
"description": "<p>The pull request this check is required for.</p>",
7541+
"type": {
7542+
"name": "ID!",
7543+
"id": "id",
7544+
"kind": "scalars",
7545+
"href": "/graphql/reference/scalars#id"
7546+
}
7547+
}
7548+
]
7549+
},
75307550
{
75317551
"name": "name",
75327552
"description": "<p>The name of the check for this check run.</p>",
@@ -45359,6 +45379,26 @@
4535945379
"kind": "scalars",
4536045380
"href": "/graphql/reference/scalars#string"
4536145381
},
45382+
{
45383+
"name": "isRequired",
45384+
"description": "<p>Whether this status is required to pass before merging.</p>",
45385+
"type": "Boolean!",
45386+
"id": "boolean",
45387+
"kind": "scalars",
45388+
"href": "/graphql/reference/scalars#boolean",
45389+
"arguments": [
45390+
{
45391+
"name": "pullRequestId",
45392+
"description": "<p>The pull request this status is required for.</p>",
45393+
"type": {
45394+
"name": "ID!",
45395+
"id": "id",
45396+
"kind": "scalars",
45397+
"href": "/graphql/reference/scalars#id"
45398+
}
45399+
}
45400+
]
45401+
},
4536245402
{
4536345403
"name": "state",
4536445404
"description": "<p>The state of this status context.</p>",

0 commit comments

Comments
 (0)