Skip to content

Commit 40a4b95

Browse files
authored
Merge branch 'main' into patch-1
2 parents 91976e6 + fd33888 commit 40a4b95

File tree

86 files changed

+33
-52
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+33
-52
lines changed

.all-contributorsrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,24 @@
322322
"content",
323323
"doc"
324324
]
325+
},
326+
{
327+
"login": "Ruth",
328+
"name": "Ruth",
329+
"avatar_url": "https://avatars0.githubusercontent.com/u/85029?v=4",
330+
"profile": "https://github.com/ruth",
331+
"contributions": [
332+
"content"
333+
]
334+
},
335+
{
336+
"login": "wi5nia",
337+
"name": "Tomasz Wisniewski",
338+
"avatar_url": "https://avatars2.githubusercontent.com/u/12593852?v=4",
339+
"profile": "http://tomaszwisniewski.com",
340+
"contributions": [
341+
"doc"
342+
]
325343
}
326344
],
327345
"contributorsPerLine": 7,

.github/allowed-actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = [
2323
'juliangruber/approve-pull-request-action@v1',
2424
'juliangruber/find-pull-request-action@v1',
2525
'juliangruber/read-file-action@v1',
26-
'pascalgn/automerge-action@135f0bdb927d9807b5446f7ca9ecc2c51de03c4a',
26+
'pascalgn/automerge-action@c9bd182',
2727
'peter-evans/create-issue-from-file@v2',
2828
'peter-evans/create-pull-request@v2',
2929
'rachmari/actions-add-new-issue-to-column@v1.1.1',

.github/workflows/automerge.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ on:
2020
jobs:
2121
automerge:
2222
runs-on: ubuntu-latest
23-
if: contains(github.event.pull_request.labels.*.name, 'automerge')
23+
if: contains(github.event.pull_request.labels.*.name, 'automerge') || contains(github.event.pull_request.labels.*.name, 'autosquash')
2424
steps:
2525
- name: automerge
26-
uses: "pascalgn/automerge-action@135f0bdb927d9807b5446f7ca9ecc2c51de03c4a"
26+
uses: "pascalgn/automerge-action@c9bd182"
2727
env:
2828
GITHUB_TOKEN: "${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}"
29-
MERGE_LABELS: "automerge"
30-
MERGE_REMOVE_LABELS: ""
29+
MERGE_METHOD_LABELS: "automerge=merge,autosquash=squash"
3130
MERGE_COMMIT_MESSAGE: "pull-request-title"
3231
MERGE_METHOD: "merge"
3332
MERGE_FORKS: "true"
3433
MERGE_RETRIES: "50"
35-
MERGE_RETRY_SLEEP: "10000"
36-
UPDATE_LABELS: "automerge"
34+
MERGE_RETRY_SLEEP: "10000" # ten seconds
35+
UPDATE_LABELS: "automerge,autosquash"
3736
UPDATE_METHOD: "merge"

.github/workflows/autosquash.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/start-new-engineering-pr-workflow.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66

77
jobs:
88
triage:
9-
if: github.repository == 'github/docs-internal'
109
runs-on: ubuntu-latest
1110
continue-on-error: true
1211
env:

README.md

Lines changed: 2 additions & 0 deletions
-68.6 KB

assets/images/contribution_cta.png

-31.1 KB
-49.4 KB
-24.5 KB
-36.4 KB
-65.8 KB
-95.9 KB
-33.1 KB
-45.5 KB
-19.9 KB

assets/images/octocat-books.png

-142 KB

content/rest/reference/interactions.md

Lines changed: 3 additions & 3 deletions

middleware/events.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function airtablePost (req, res, next) {
3535
return res.status(201).send({ id: records[0].getId() })
3636
} catch (err) {
3737
console.error('unable to POST event', err)
38-
return res.status(err.statusCode).send(err)
38+
return res.status(502).send({})
3939
}
4040
}
4141

@@ -52,11 +52,11 @@ router.post('/', async (req, res, next) => {
5252
const fields = omit(req.body, OMIT_FIELDS)
5353
try {
5454
const hydroRes = await req.hydro.publish(req.hydro.schemas[req.body.type], fields)
55-
if (!hydroRes.ok) return res.status(500).json({})
55+
if (!hydroRes.ok) return res.status(502).json({})
5656
return res.status(201).json(fields)
5757
} catch (err) {
5858
if (process.env.NODE_ENV === 'development') console.log(err)
59-
return res.status(500).json({})
59+
return res.status(502).json({})
6060
}
6161
})
6262

@@ -82,7 +82,7 @@ router.put('/:id', async (req, res, next) => {
8282
return res.status(200).send({})
8383
} catch (err) {
8484
console.error('unable to PUT event', err)
85-
return res.status(err.statusCode).send(err)
85+
return res.status(502).send({})
8686
}
8787
})
8888

0 commit comments

Comments
 (0)