Repository: probot/settings
Pull request #388 (2020-12-15 21:00:20)

fix(deps): bump probot from 11.0.0-beta.3 to 11.0.0-beta.4
Bumps [probot](https://github.com/probot/probot) from 11.0.0-beta.3 to 11.0.0-beta.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/probot/probot/releases">probot's releases</a>.</em></p>
<blockquote>
<h2>v11.0.0-beta.4</h2>
<h3>BREAKING CHANGES</h3>
<ul>
<li>
<p><code>({ app, getRouter }) =&gt; {}</code>  is now <code>(app, { getRouter })</code></p>
<p>see <a href="https://github-redirect.dependabot.com/probot/probot/pull/1441">probot/probot#1441</a> and discussion at <a href="https://github-redirect.dependabot.com/probot/probot/issues/1286#issuecomment-744094299">probot/probot#1286</a></p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/probot/probot/commit/067cc31f89c85b4cb6164a5cab665dd60f6236b4"><code>067cc31</code></a> <code>({ app, getRouter }) =&gt; {}</code>  is now <code>(app, { getRouter })</code></li>
<li><a href="https://github.com/probot/probot/commit/dd7e8528176a17cf082d274d1ebaea7365018818"><code>dd7e852</code></a> docs(webhooks): typo in usage example (<a href="https://github-redirect.dependabot.com/probot/probot/issues/1445">#1445</a>) thanks <a href="https://github.com/homeles">@homeles</a></li>
<li>See full diff in <a href="https://github.com/probot/probot/compare/v11.0.0-beta.3...v11.0.0-beta.4">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=probot&package-manager=npm_and_yarn&previous-version=11.0.0-beta.3&new-version=11.0.0-beta.4)](https://dependabot.com/compatibility-score/?dependency-name=probot&package-manager=npm_and_yarn&previous-version=11.0.0-beta.3&new-version=11.0.0-beta.4)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
If all status checks pass Dependabot will automatically merge this pull request.

[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in the `.dependabot/config.yml` file in this repo:
- Update frequency
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)



</details>

dependabot-preview[bot]: One of your CI runs failed on this pull request, so Dependabot won't merge it.

- [build](https://github.com/probot/settings/runs/1559837521)
- [build](https://github.com/probot/settings/runs/1559837409)

Dependabot will still automatically merge this pull request if you amend it and your tests pass.

Patch:
diff --git a/index.js b/index.js
index c3d0c11..3830063 100644
--- a/index.js
+++ b/index.js
@@ -1,6 +1,9 @@
 const mergeArrayByName = require('./lib/mergeArrayByName')
 
-module.exports = ({ app: robot }, _, Settings = require('./lib/settings')) => {
+/**
+ * @param {import('probot').Probot} robot
+ */
+module.exports = (robot, _, Settings = require('./lib/settings')) => {
   async function syncSettings (context, repo = context.repo()) {
     const config = await context.config('settings.yml', {}, { arrayMerge: mergeArrayByName })
     return Settings.sync(context.octokit, repo, config)
diff --git a/package-lock.json b/package-lock.json
index 926a291..54c7eb4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -842,9 +842,9 @@
       }
     },
     "@octokit/webhooks": {
-      "version": "7.20.0",
-      "resolved": "https://registry.npmjs.org/@octokit/webhooks/-/webhooks-7.20.0.tgz",
-      "integrity": "sha512-SVz4SRxHHvI0Whojcl/J9HnWVk3cKX+LmARJMEQBxTWGt2Cf94fcDlTExqWPLg6SzPyC62JT3OaCA2V4NJOwzQ==",
+      "version": "7.20.1",
+      "resolved": "https://registry.npmjs.org/@octokit/webhooks/-/webhooks-7.20.1.tgz",
+      "integrity": "sha512-9Mjn5gUDiE/RN0iInT+aPIIAOPxrSgEwscnueNgqUaFgEiLmpzXncTDbtT3LKRURONTH5OTCuL6G/YxOJZgvaQ==",
       "requires": {
         "@octokit/request-error": "^2.0.2",
         "aggregate-error": "^3.1.0",
@@ -861,12 +861,12 @@
       }
     },
     "@probot/octokit-plugin-config": {
-      "version": "1.0.0",
-      "resolved": "https://registry.npmjs.org/@probot/octokit-plugin-config/-/octokit-plugin-config-1.0.0.tgz",
-      "integrity": "sha512-mxFe5Tq9DalqWFMczu55hNowj6zFuNEkKALEn6WAmAgpJ5FKKbSFMfqWyyPvQIV59Dn58wFJBOgAByjFK5m/HA==",
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/@probot/octokit-plugin-config/-/octokit-plugin-config-1.0.1.tgz",
+      "integrity": "sha512-o0+PuMNIuPCaSvDWliAI/J4NkrJvIinswbMxPHPBMwImE2/DYhQKRO9bWWkdNtXLSuFMVE1tUkCqP7lJorAAmw==",
       "requires": {
         "@types/js-yaml": "^3.12.5",
-        "js-yaml": "^3.14.0"
+        "js-yaml": "^3.14.1"
       }
     },
     "@probot/pino": {
@@ -1073,9 +1073,9 @@
       }
     },
     "@types/express-serve-static-core": {
-      "version": "4.17.15",
-      "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.15.tgz",
-      "integrity": "sha512-pb71P0BrBAx7cQE+/7QnA1HTQUkdBKMlkPY7lHUMn0YvPJkL2UA+KW3BdWQ309IT+i9En/qm45ZxpjIcpgEhNQ==",
+      "version": "4.17.17",
+      "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.17.tgz",
+      "integrity": "sha512-YYlVaCni5dnHc+bLZfY908IG1+x5xuibKZMGv8srKkvtul3wUuanYvpIj9GXXoWkQbaAdR+kgX46IETKUALWNQ==",
       "requires": {
         "@types/node": "*",
         "@types/qs": "*",
@@ -2248,9 +2248,9 @@
       }
     },
     "commander": {
-      "version": "6.2.0",
-      "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.0.tgz",
-      "integrity": "sha512-zP4jEKbe8SHzKJYQmq8Y9gYjtO/POJLgIdKgV7B9qNmABVFVc+ctqSX6iXh4mCpJfRBOabiZ2YKPg8ciDw6C+Q=="
+      "version": "6.2.1",
+      "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz",
+      "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA=="
     },
     "component-emitter": {
       "version": "1.3.0",
@@ -7445,9 +7445,9 @@
       }
     },
     "probot": {
-      "version": "11.0.0-beta.3",
-      "resolved": "https://registry.npmjs.org/probot/-/probot-11.0.0-beta.3.tgz",
-      "integrity": "sha512-+b8z7TA871awK6Gy7KLUc6XBxWYb4+1kwrQuhMvu4QaOgf3qlELFPmtyRfebx80+Q9VUn9H/bxwnn6dGGHL/CA==",
+      "version": "11.0.0-beta.4",
+      "resolved": "https://registry.npmjs.org/probot/-/probot-11.0.0-beta.4.tgz",
+      "integrity": "sha512-eVl2Aoe1re0LIwmryDH5urILbVciawgc+cQXNLR3wEjWF1Zp/qvEMZFX9CFxibQT7pcc+zOUfaVbsd1UNvWXDg==",
       "requires": {
         "@octokit/core": "^3.2.4",
         "@octokit/plugin-enterprise-compatibility": "^1.2.8",
diff --git a/package.json b/package.json
index 86edb52..7c3e30c 100644
--- a/package.json
+++ b/package.json
@@ -22,7 +22,7 @@
   "dependencies": {
     "deepmerge": "^4.2.2",
     "js-yaml": "^3.14.1",
-    "probot": "11.0.0-beta.3"
+    "probot": "11.0.0-beta.4"
   },
   "devDependencies": {
     "@travi/any": "^2.0.15",


Test patch:
diff --git a/test/unit/index.test.js b/test/unit/index.test.js
index 8e77cec..ed18ce5 100644
--- a/test/unit/index.test.js
+++ b/test/unit/index.test.js
@@ -30,7 +30,7 @@ describe('plugin', () => {
     }
     sync = jest.fn()
 
-    plugin({ app }, {}, { sync, FILE_NAME: '.github/settings.yml' })
+    plugin(app, {}, { sync, FILE_NAME: '.github/settings.yml' })
   })
 
   describe('with settings modified on master', () => {