Skip to content

Commit 1b9a3d0

Browse files
authored
Merge branch 'main' into all-contributors/add-wi5nia
2 parents 3753412 + e9cb750 commit 1b9a3d0

File tree

87 files changed

+17
-54
lines changed

Some content is hidden

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

87 files changed

+17
-54
lines changed

.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.
-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/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning-in-your-ci-system.md

Lines changed: 1 addition & 1 deletion

content/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning.md

Lines changed: 1 addition & 1 deletion

content/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-the-codeql-workflow-for-compiled-languages.md

Lines changed: 1 addition & 1 deletion

content/rest/reference/interactions.md

Lines changed: 3 additions & 3 deletions
Lines changed: 1 addition & 0 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)