Skip to content

Commit 14ac43d

Browse files
authored
Branch was updated using the 'autoupdate branch' Actions workflow.
2 parents 907c165 + 6e20ed7 commit 14ac43d

18 files changed

Lines changed: 230 additions & 43 deletions

app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"env": {
44
"NODE_ENV": "production",
55
"NPM_CONFIG_PRODUCTION": "true",
6-
"ENABLED_LANGUAGES": "en"
6+
"ENABLED_LANGUAGES": "en",
7+
"WEB_CONCURRENCY": "1"
78
},
89
"buildpacks": [
910
{ "url": "heroku/nodejs" }

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24946,6 +24946,11 @@ type RefUpdateRule {
2494624946
"""
2494724947
requiredStatusCheckContexts: [String]
2494824948

24949+
"""
24950+
Are reviews from code owners required to update matching branches.
24951+
"""
24952+
requiresCodeOwnerReviews: Boolean!
24953+
2494924954
"""
2495024955
Are merge commits prohibited from being pushed to this branch.
2495124956
"""
@@ -24956,6 +24961,11 @@ type RefUpdateRule {
2495624961
"""
2495724962
requiresSignatures: Boolean!
2495824963

24964+
"""
24965+
Is the viewer allowed to dismiss reviews.
24966+
"""
24967+
viewerAllowedToDismissReviews: Boolean!
24968+
2495924969
"""
2496024970
Can the viewer push to the branch
2496124971
"""

data/graphql/schema.docs.graphql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26875,6 +26875,11 @@ type RefUpdateRule {
2687526875
"""
2687626876
requiredStatusCheckContexts: [String]
2687726877

26878+
"""
26879+
Are reviews from code owners required to update matching branches.
26880+
"""
26881+
requiresCodeOwnerReviews: Boolean!
26882+
2687826883
"""
2687926884
Are merge commits prohibited from being pushed to this branch.
2688026885
"""
@@ -26885,6 +26890,11 @@ type RefUpdateRule {
2688526890
"""
2688626891
requiresSignatures: Boolean!
2688726892

26893+
"""
26894+
Is the viewer allowed to dismiss reviews.
26895+
"""
26896+
viewerAllowedToDismissReviews: Boolean!
26897+
2688826898
"""
2688926899
Can the viewer push to the branch
2689026900
"""

lib/app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const express = require('express')
2+
3+
const app = express()
4+
require('../middleware')(app)
5+
module.exports = app

lib/check-node-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ const { engines } = require('../package.json')
55
if (!semver.satisfies(process.version, engines.node)) {
66
console.error(`\n\nYou're using Node.js ${process.version}, but ${engines.node} is required`)
77
console.error('Visit nodejs.org to download an installer for the latest LTS version.\n\n')
8-
process.exit()
8+
process.exit(1)
99
}

lib/graphql/static/changelog.json

Lines changed: 14 additions & 0 deletions
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 `requiresCodeOwnerReviews` was added to object type `RefUpdateRule`",
8+
"Field `viewerAllowedToDismissReviews` was added to object type `RefUpdateRule`"
9+
]
10+
}
11+
],
12+
"previewChanges": [],
13+
"upcomingChanges": [],
14+
"date": "2021-03-19"
15+
},
216
{
317
"schemaChanges": [
418
{

lib/graphql/static/prerendered-objects.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

lib/graphql/static/schema-dotcom.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38492,6 +38492,14 @@
3849238492
"kind": "scalars",
3849338493
"href": "/graphql/reference/scalars#string"
3849438494
},
38495+
{
38496+
"name": "requiresCodeOwnerReviews",
38497+
"description": "<p>Are reviews from code owners required to update matching branches.</p>",
38498+
"type": "Boolean!",
38499+
"id": "boolean",
38500+
"kind": "scalars",
38501+
"href": "/graphql/reference/scalars#boolean"
38502+
},
3849538503
{
3849638504
"name": "requiresLinearHistory",
3849738505
"description": "<p>Are merge commits prohibited from being pushed to this branch.</p>",
@@ -38508,6 +38516,14 @@
3850838516
"kind": "scalars",
3850938517
"href": "/graphql/reference/scalars#boolean"
3851038518
},
38519+
{
38520+
"name": "viewerAllowedToDismissReviews",
38521+
"description": "<p>Is the viewer allowed to dismiss reviews.</p>",
38522+
"type": "Boolean!",
38523+
"id": "boolean",
38524+
"kind": "scalars",
38525+
"href": "/graphql/reference/scalars#boolean"
38526+
},
3851138527
{
3851238528
"name": "viewerCanPush",
3851338529
"description": "<p>Can the viewer push to the branch.</p>",

lib/graphql/static/schema-ghae.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35590,6 +35590,14 @@
3559035590
"kind": "scalars",
3559135591
"href": "/graphql/reference/scalars#string"
3559235592
},
35593+
{
35594+
"name": "requiresCodeOwnerReviews",
35595+
"description": "<p>Are reviews from code owners required to update matching branches.</p>",
35596+
"type": "Boolean!",
35597+
"id": "boolean",
35598+
"kind": "scalars",
35599+
"href": "/graphql/reference/scalars#boolean"
35600+
},
3559335601
{
3559435602
"name": "requiresLinearHistory",
3559535603
"description": "<p>Are merge commits prohibited from being pushed to this branch.</p>",
@@ -35606,6 +35614,14 @@
3560635614
"kind": "scalars",
3560735615
"href": "/graphql/reference/scalars#boolean"
3560835616
},
35617+
{
35618+
"name": "viewerAllowedToDismissReviews",
35619+
"description": "<p>Is the viewer allowed to dismiss reviews.</p>",
35620+
"type": "Boolean!",
35621+
"id": "boolean",
35622+
"kind": "scalars",
35623+
"href": "/graphql/reference/scalars#boolean"
35624+
},
3560935625
{
3561035626
"name": "viewerCanPush",
3561135627
"description": "<p>Can the viewer push to the branch.</p>",

lib/prefix-stream-write.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = function prefixStreamWrite (writableStream, prefix) {
2+
const oldWrite = writableStream.write
3+
4+
function newWrite (...args) {
5+
const [chunk, encoding] = args
6+
7+
// Prepend the prefix if the chunk is either a string or a Buffer.
8+
// Otherwise, just leave it alone to be safe.
9+
if (typeof chunk === 'string') {
10+
// Only prepend the prefix is the `encoding` is safe or not provided.
11+
// If it's a function, it is third arg `callback` provided as optional second
12+
if (!encoding || encoding === 'utf8' || typeof encoding === 'function') {
13+
args[0] = prefix + chunk
14+
}
15+
} else if (Buffer.isBuffer(chunk)) {
16+
args[0] = Buffer.concat([Buffer.from(prefix), chunk])
17+
}
18+
19+
return oldWrite.apply(this, args)
20+
}
21+
22+
writableStream.write = newWrite
23+
24+
return writableStream
25+
}

0 commit comments

Comments
 (0)