From 67e634274870b6345bfa40e5a7450b7c6913b121 Mon Sep 17 00:00:00 2001 From: dessant Date: Sat, 17 Nov 2018 20:26:20 +0200 Subject: [PATCH 1/6] chore: add prettier --- .prettierrc | 2 ++ package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 8 insertions(+) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..b617dac --- /dev/null +++ b/.prettierrc @@ -0,0 +1,2 @@ +singleQuote: true +bracketSpacing: false diff --git a/package.json b/package.json index fcb4b4a..096c665 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "devDependencies": { "nodemon": "1.18.4", "npm-check-updates": "^2.14.2", + "prettier": "^1.15.2", "smee-client": "^1.0.2", "standard-version": "^4.4.0" }, diff --git a/yarn.lock b/yarn.lock index 75212ac..1f57e7c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3094,6 +3094,11 @@ prepend-http@^1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" +prettier@^1.15.2: + version "1.15.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.15.2.tgz#d31abe22afa4351efa14c7f8b94b58bb7452205e" + integrity sha512-YgPLFFA0CdKL4Eg2IHtUSjzj/BWgszDHiNQAe0VAIBse34148whfdzLagRL+QiKS+YfK5ftB6X4v/MBw8yCoug== + probot-config@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/probot-config/-/probot-config-0.2.0.tgz#50af0349d37c367e182a06a9dafc7e3b76a6a8b8" From 3755a4fe5244a375590289076c34ded401ba453b Mon Sep 17 00:00:00 2001 From: dessant Date: Fri, 18 Jan 2019 12:20:10 +0200 Subject: [PATCH 2/6] chore: update dependencies --- package.json | 18 ++-- yarn.lock | 286 +++++++++++++++++++++++++++++---------------------- 2 files changed, 174 insertions(+), 130 deletions(-) diff --git a/package.json b/package.json index 096c665..86dc2c1 100644 --- a/package.json +++ b/package.json @@ -22,22 +22,22 @@ "src" ], "dependencies": { - "joi": "^13.7.0", - "probot": "^7.2.0", - "probot-config": "^0.2.0", - "probot-messages": "^0.1.0", - "probot-scheduler": "^1.2.0", + "joi": "^14.3.1", + "probot": "^7.5.0", + "probot-config": "^1.0.1", + "probot-messages": "^0.1.1", + "probot-scheduler": "probot/scheduler#75bc5dd3fcac5bf6448ce85c63d1e5c2971c11a8", "uuid": "^3.3.2" }, "devDependencies": { - "nodemon": "1.18.4", - "npm-check-updates": "^2.14.2", - "prettier": "^1.15.2", + "nodemon": "1.18.9", + "npm-check-updates": "^2.15.0", + "prettier": "^1.15.3", "smee-client": "^1.0.2", "standard-version": "^4.4.0" }, "engines": { - "node": ">=8.9.0" + "node": ">=8.12.0" }, "keywords": [ "github", diff --git a/yarn.lock b/yarn.lock index 1f57e7c..49fa23c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,9 +2,10 @@ # yarn lockfile v1 -"@octokit/rest@^15.11.0": - version "15.12.1" - resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-15.12.1.tgz#f0dc169f336f8fd05ae8d8c83371b2f0c0dd8de1" +"@octokit/rest@^15.18.0": + version "15.18.1" + resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-15.18.1.tgz#ec7fb0f8775ef64dc095fae6635411d3fbff9b62" + integrity sha512-g2tecjp2TEtYV8bKAFvfQtu+W29HM7ektmWmw8zrMy9/XCKDEYRErR2YvvhN9+IxkLC4O3lDqYP4b6WgsL6Utw== dependencies: before-after-hook "^1.1.0" btoa-lite "^1.0.0" @@ -23,6 +24,11 @@ buffer-equal-constant-time "^1.0.1" debug "^4.0.0" +"@types/supports-color@^5.3.0": + version "5.3.0" + resolved "https://registry.yarnpkg.com/@types/supports-color/-/supports-color-5.3.0.tgz#eb6a52e9531fb3ebcd401cec774d1bdfb571f793" + integrity sha512-WxwTXnHTIsk7srax1icjLgX+6w1MUAJbhyCpRP/45paEElsPDQUJZDgr1UpKuL2S3Tb+ZyX9MjWwmcSD4bUoOQ== + JSONStream@^1.0.4: version "1.3.1" resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.1.tgz#707f761e01dae9e16f1bcf93703b78c70966579a" @@ -486,9 +492,10 @@ charenc@~0.0.1: version "0.0.2" resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667" -chokidar@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.0.3.tgz#dcbd4f6cbb2a55b4799ba8a840ac527e5f4b1176" +chokidar@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.0.4.tgz#356ff4e2b0e8e43e322d18a372460bbcf3accd26" + integrity sha512-z9n7yt9rOvIJrMhvDtDictKrkFHeihkNl6uWMmZlmL6tJtX9Cs+87oK+teBx+JIgzvbX3yZHT3eF8vpbDxHJXQ== dependencies: anymatch "^2.0.0" async-each "^1.0.0" @@ -497,17 +504,23 @@ chokidar@^2.0.2: inherits "^2.0.1" is-binary-path "^1.0.0" is-glob "^4.0.0" + lodash.debounce "^4.0.8" normalize-path "^2.1.1" path-is-absolute "^1.0.0" readdirp "^2.0.0" - upath "^1.0.0" + upath "^1.0.5" optionalDependencies: - fsevents "^1.1.2" + fsevents "^1.2.2" chownr@^1.0.1, chownr@~1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181" +ci-info@^1.5.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.6.0.tgz#2ca20dbb9ceb32d4524a683303313f0304b1e497" + integrity sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A== + cint@^8.2.1: version "8.2.1" resolved "https://registry.yarnpkg.com/cint/-/cint-8.2.1.tgz#70386b1b48e2773d0d63166a55aff94ef4456a12" @@ -606,14 +619,19 @@ combined-stream@^1.0.5, combined-stream@~1.0.5: dependencies: delayed-stream "~1.0.0" -commander@^2.11.0, commander@^2.9.0: - version "2.12.2" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.12.2.tgz#0f5946c427ed9ec0d91a46bb9def53e54650e555" - commander@^2.12.2: version "2.15.1" resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f" +commander@^2.19.0: + version "2.19.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a" + integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg== + +commander@^2.9.0: + version "2.12.2" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.12.2.tgz#0f5946c427ed9ec0d91a46bb9def53e54650e555" + compare-func@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/compare-func/-/compare-func-1.3.2.tgz#99dd0ba457e1f9bc722b12c08ec33eeab31fa648" @@ -917,10 +935,20 @@ decode-uri-component@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" +deep-extend@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== + deep-extend@~0.4.0: version "0.4.2" resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" +deepmerge@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-2.2.1.tgz#5d3ff22a01c00f645405a2fbc17d0778a1801170" + integrity sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA== + defaults@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" @@ -989,9 +1017,10 @@ dot-prop@^4.1.0: dependencies: is-obj "^1.0.0" -dotenv@~6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-6.0.0.tgz#24e37c041741c5f4b25324958ebbc34bca965935" +dotenv@~6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-6.2.0.tgz#941c0410535d942c8becf28d3f357dbd9d476064" + integrity sha512-HygQCKUBSFl8wKQZBSemMywRWcEDNidvNbjGVyZu3nbZ8qq9ubiPoGLMdRDpfSrpkkm9BXYFkpKxxFX38o/76w== dotgitignore@^1.0.3: version "1.0.3" @@ -1010,10 +1039,6 @@ duplexer3@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" -duplexer@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" - ecc-jsbn@~0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" @@ -1093,18 +1118,6 @@ etag@~1.8.1: version "1.8.1" resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" -event-stream@~3.3.0: - version "3.3.4" - resolved "https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.4.tgz#4ab4c9a0f5a54db9338b4c34d86bfce8f4b35571" - dependencies: - duplexer "~0.1.1" - from "~0" - map-stream "~0.1.0" - pause-stream "0.0.11" - split "0.3" - stream-combiner "~0.0.4" - through "~2.3.1" - eventsource@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/eventsource/-/eventsource-1.0.5.tgz#1f012c9df0bd8832fd6b1744fea00ccdd479f046" @@ -1319,10 +1332,6 @@ fresh@0.5.2: version "0.5.2" resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" -from@~0: - version "0.1.7" - resolved "https://registry.yarnpkg.com/from/-/from-0.1.7.tgz#83c60afc58b9c56997007ed1a768b3ab303a44fe" - fs-access@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/fs-access/-/fs-access-1.0.1.tgz#d6a87f262271cefebec30c553407fb995da8777a" @@ -1356,12 +1365,13 @@ fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" -fsevents@^1.1.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.3.tgz#08292982e7059f6674c93d8b829c1e8604979ac0" +fsevents@^1.2.2: + version "1.2.6" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.6.tgz#d3a1864a71876a2eb9b244e3bd8f606eb09568c0" + integrity sha512-BalK54tfK0pMC0jQFb2oHn1nz7JNQD/2ex5pBnCHgBi2xG7VV0cAOGy2RS2VbCqUXx5/6obMrMcQTJ8yjcGzbg== dependencies: nan "^2.9.2" - node-pre-gyp "^0.9.0" + node-pre-gyp "^0.10.0" fstream-ignore@^1.0.0: version "1.0.5" @@ -1670,6 +1680,11 @@ hoek@5.x.x: version "5.0.3" resolved "https://registry.yarnpkg.com/hoek/-/hoek-5.0.3.tgz#b71d40d943d0a95da01956b547f83c4a5b4a34ac" +hoek@6.x.x: + version "6.1.2" + resolved "https://registry.yarnpkg.com/hoek/-/hoek-6.1.2.tgz#99e6d070561839de74ee427b61aa476bd6bddfd6" + integrity sha512-6qhh/wahGYZHFSFw12tBbJw5fsAhhwrrG/y3Cs0YMTv2WzMnL0oLPnQJjv1QJvEfylRSOFuP+xCu+tdx0tD16Q== + hosted-git-info@^2.1.4, hosted-git-info@^2.1.5, hosted-git-info@^2.4.2: version "2.5.0" resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c" @@ -1801,9 +1816,10 @@ is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" -is-base64@0.0.5: - version "0.0.5" - resolved "https://registry.yarnpkg.com/is-base64/-/is-base64-0.0.5.tgz#39ecd12e937c667edd3b17fa677036825483b477" +is-base64@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/is-base64/-/is-base64-0.1.0.tgz#a6f20610c6ef4863a51cba32bc0222544b932622" + integrity sha512-WRRyllsGXJM7ZN7gPTCCQ/6wNPTRDwiWdPK66l5sJzcU/oOzcIcRRf0Rux8bkpox/1yjt0F6VJRsQOIG2qz5sg== is-binary-path@^1.0.0: version "1.0.1" @@ -1821,6 +1837,13 @@ is-builtin-module@^1.0.0: dependencies: builtin-modules "^1.0.0" +is-ci@^1.0.10: + version "1.2.1" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.2.1.tgz#e3779c8ee17fccf428488f6e281187f2e632841c" + integrity sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg== + dependencies: + ci-info "^1.5.0" + is-data-descriptor@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" @@ -2013,11 +2036,12 @@ jju@^1.1.0: version "1.3.0" resolved "https://registry.yarnpkg.com/jju/-/jju-1.3.0.tgz#dadd9ef01924bc728b03f2f7979bdbd62f7a2aaa" -joi@^13.7.0: - version "13.7.0" - resolved "https://registry.yarnpkg.com/joi/-/joi-13.7.0.tgz#cfd85ebfe67e8a1900432400b4d03bbd93fb879f" +joi@^14.3.1: + version "14.3.1" + resolved "https://registry.yarnpkg.com/joi/-/joi-14.3.1.tgz#164a262ec0b855466e0c35eea2a885ae8b6c703c" + integrity sha512-LQDdM+pkOrpAn4Lp+neNIFV3axv1Vna3j38bisbQhETPMANYRbFJFUyOZcOClYvM/hppMhGWuKSFEK9vjrB+bQ== dependencies: - hoek "5.x.x" + hoek "6.x.x" isemail "3.x.x" topo "3.x.x" @@ -2210,6 +2234,11 @@ lodash.clonedeep@~4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" +lodash.debounce@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" + integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= + lodash.includes@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f" @@ -2318,10 +2347,6 @@ map-obj@^1.0.0, map-obj@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" -map-stream@~0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/map-stream/-/map-stream-0.1.0.tgz#e56aa94c4c8055a16404a0674b78f215f7c8e194" - map-visit@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" @@ -2530,9 +2555,10 @@ ncp@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ncp/-/ncp-2.0.0.tgz#195a21d6c46e361d2fb1281ba38b91e9df7bdbb3" -needle@^2.2.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.1.tgz#b5e325bd3aae8c2678902fa296f729455d1d3a7d" +needle@^2.2.1: + version "2.2.4" + resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.4.tgz#51931bff82533b1928b7d1d69e01f1b00ffd2a4e" + integrity sha512-HyoqEb4wr/rsoaIDfTH2aVL9nWtQqba2/HvMv+++m8u0dz808MaagKILxtfeSN7QU7nvbQ79zk3vYOJp9zsNEA== dependencies: debug "^2.1.2" iconv-lite "^0.4.4" @@ -2572,17 +2598,18 @@ node-gyp@~3.4.0: tar "^2.0.0" which "1" -node-pre-gyp@^0.9.0: - version "0.9.1" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.9.1.tgz#f11c07516dd92f87199dbc7e1838eab7cd56c9e0" +node-pre-gyp@^0.10.0: + version "0.10.3" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.10.3.tgz#3070040716afdc778747b61b6887bf78880b80fc" + integrity sha512-d1xFs+C/IPS8Id0qPTZ4bUT8wWryfR/OzzAFxweG+uLN85oPzyo2Iw6bVlLQ/JOdgNonXLCoRyqDzDWq4iw72A== dependencies: detect-libc "^1.0.2" mkdirp "^0.5.1" - needle "^2.2.0" + needle "^2.2.1" nopt "^4.0.1" npm-packlist "^1.1.6" npmlog "^4.0.2" - rc "^1.1.7" + rc "^1.2.7" rimraf "^2.6.1" semver "^5.3.0" tar "^4" @@ -2591,20 +2618,21 @@ node-uuid@~1.4.7: version "1.4.8" resolved "https://registry.yarnpkg.com/node-uuid/-/node-uuid-1.4.8.tgz#b040eb0923968afabf8d32fb1f17f1167fdab907" -nodemon@1.18.4: - version "1.18.4" - resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-1.18.4.tgz#873f65fdb53220eb166180cf106b1354ac5d714d" +nodemon@1.18.9: + version "1.18.9" + resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-1.18.9.tgz#90b467efd3b3c81b9453380aeb2a2cba535d0ead" + integrity sha512-oj/eEVTEI47pzYAjGkpcNw0xYwTl4XSTUQv2NPQI6PpN3b75PhpuYk3Vb3U80xHCyM2Jm+1j68ULHXl4OR3Afw== dependencies: - chokidar "^2.0.2" + chokidar "^2.0.4" debug "^3.1.0" ignore-by-default "^1.0.1" minimatch "^3.0.4" - pstree.remy "^1.1.0" + pstree.remy "^1.1.6" semver "^5.5.0" supports-color "^5.2.0" touch "^3.1.0" undefsafe "^2.0.2" - update-notifier "^2.3.0" + update-notifier "^2.5.0" "nopt@2 || 3", nopt@~3.0.6: version "3.0.6" @@ -2661,9 +2689,10 @@ npm-cache-filename@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/npm-cache-filename/-/npm-cache-filename-1.0.2.tgz#ded306c5b0bfc870a9e9faf823bc5f283e05ae11" -npm-check-updates@^2.14.2: - version "2.14.2" - resolved "https://registry.yarnpkg.com/npm-check-updates/-/npm-check-updates-2.14.2.tgz#1adb0d5fa48be8a6243cf335c7a2d6bbb0356e87" +npm-check-updates@^2.15.0: + version "2.15.0" + resolved "https://registry.yarnpkg.com/npm-check-updates/-/npm-check-updates-2.15.0.tgz#7c0f540c048fc801bfd11add8708479a6b82c32e" + integrity sha512-0ZUokfgS+4uPVSVWP3CMie7kQwngiQag2e70CdcnUfBM7/tOUmxb0DDMfxqshw4MvgqlPsxSYprzKaBGlvXqnA== dependencies: bluebird "^3.4.3" chalk "^1.1.3" @@ -3051,12 +3080,6 @@ path-type@^2.0.0: dependencies: pify "^2.0.0" -pause-stream@0.0.11: - version "0.0.11" - resolved "https://registry.yarnpkg.com/pause-stream/-/pause-stream-0.0.11.tgz#fe5a34b0cbce12b5aa6a2b403ee2e73b602f1445" - dependencies: - through "~2.3" - performance-now@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" @@ -3094,44 +3117,49 @@ prepend-http@^1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" -prettier@^1.15.2: - version "1.15.2" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.15.2.tgz#d31abe22afa4351efa14c7f8b94b58bb7452205e" - integrity sha512-YgPLFFA0CdKL4Eg2IHtUSjzj/BWgszDHiNQAe0VAIBse34148whfdzLagRL+QiKS+YfK5ftB6X4v/MBw8yCoug== +prettier@^1.15.3: + version "1.15.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.15.3.tgz#1feaac5bdd181237b54dbe65d874e02a1472786a" + integrity sha512-gAU9AGAPMaKb3NNSUUuhhFAS7SCO4ALTN4nRIn6PJ075Qd28Yn2Ig2ahEJWdJwJmlEBTUfC7mMUSFy8MwsOCfg== -probot-config@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/probot-config/-/probot-config-0.2.0.tgz#50af0349d37c367e182a06a9dafc7e3b76a6a8b8" +probot-config@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/probot-config/-/probot-config-1.0.1.tgz#8d4f5eae7f0b0777e0386de8c55a173a434c0dad" + integrity sha512-xfQ+Fw8KuxSLj9kET/FN4kdgduVDWpibGP/vNueuhq1bmzRosiFbs/XsB3uUjpm+TWdt37TuwAvFOfvAJm7Sig== dependencies: + deepmerge "^2.2.1" js-yaml "^3.10.0" -probot-messages@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/probot-messages/-/probot-messages-0.1.0.tgz#0a6b279486b2bb40a25e37960f7341ac40e5b0c9" +probot-messages@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/probot-messages/-/probot-messages-0.1.1.tgz#815b2651e45854fa8554df7a1333a98c4e53462a" + integrity sha512-hxG2zlLGJiIP7WYOiN0npEyXTmBiizWxow9s9aBgM70/YOyZpKgxUETesFCgpkOO71lYg/A3eF6AeKQ5IBDKSQ== -probot-scheduler@^1.2.0: +probot-scheduler@probot/scheduler#75bc5dd3fcac5bf6448ce85c63d1e5c2971c11a8: version "1.2.0" - resolved "https://registry.yarnpkg.com/probot-scheduler/-/probot-scheduler-1.2.0.tgz#5aba76e589a214934e9db4c39368af592f4dc8b7" + resolved "https://codeload.github.com/probot/scheduler/tar.gz/75bc5dd3fcac5bf6448ce85c63d1e5c2971c11a8" dependencies: bottleneck "^2.0.1" -probot@^7.2.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/probot/-/probot-7.2.0.tgz#2c9f3904032a208df802dc868aa2198dbf8a5216" +probot@^7.5.0: + version "7.5.0" + resolved "https://registry.yarnpkg.com/probot/-/probot-7.5.0.tgz#17f4441210c95b822a53dc9748fb17261a1aacdf" + integrity sha512-i7YCcSWf0tT2FPlIqgtJC2ZV/jelB2y3tf+TRWrvt4kJAgYEhgrofyM2pl/f+lg7xdULP/9FNAayn0sjv/u7kg== dependencies: - "@octokit/rest" "^15.11.0" + "@octokit/rest" "^15.18.0" "@octokit/webhooks" "^5.0.2" + "@types/supports-color" "^5.3.0" bottleneck "^2.8.0" bunyan "^1.8.12" bunyan-format "^0.2.1" bunyan-sentry-stream "^1.1.0" cache-manager "^2.4.0" - commander "^2.11.0" - dotenv "~6.0.0" + commander "^2.19.0" + dotenv "~6.2.0" express "^4.16.2" express-async-errors "^3.0.0" hbs "^4.0.1" - is-base64 "0.0.5" + is-base64 "0.1.0" js-yaml "^3.9.1" jsonwebtoken "^8.1.0" pkg-conf "^2.0.0" @@ -3140,6 +3168,7 @@ probot@^7.2.0: raven "^2.4.2" resolve "^1.4.0" semver "^5.5.0" + supports-color "^6.0.0" update-dotenv "^1.1.0" uuid "^3.2.1" @@ -3172,21 +3201,14 @@ proxy-addr@~2.0.3: forwarded "~0.1.2" ipaddr.js "1.6.0" -ps-tree@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/ps-tree/-/ps-tree-1.1.0.tgz#b421b24140d6203f1ed3c76996b4427b08e8c014" - dependencies: - event-stream "~3.3.0" - pseudomap@^1.0.1, pseudomap@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" -pstree.remy@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.0.tgz#f2af27265bd3e5b32bbfcc10e80bac55ba78688b" - dependencies: - ps-tree "^1.1.0" +pstree.remy@^1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.6.tgz#73a55aad9e2d95814927131fbf4dc1b62d259f47" + integrity sha512-NdF35+QsqD7EgNEI5mkI/X+UwaxVEbQaz9f4IooEmMUv6ZPmlTQYGjBPJGgrlzNdjSvIy4MWMg6Q6vCgBO2K+w== punycode@2.x.x: version "2.1.0" @@ -3251,7 +3273,7 @@ rc-config-loader@^2.0.1: path-exists "^2.1.0" require-from-string "^2.0.1" -rc@^1.0.1, rc@^1.1.6, rc@^1.1.7: +rc@^1.0.1, rc@^1.1.6: version "1.2.2" resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.2.tgz#d8ce9cb57e8d64d9c7badd9876c7c34cbe3c7077" dependencies: @@ -3260,6 +3282,16 @@ rc@^1.0.1, rc@^1.1.6, rc@^1.1.7: minimist "^1.2.0" strip-json-comments "~2.0.1" +rc@^1.2.7: + version "1.2.8" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" + integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== + dependencies: + deep-extend "^0.6.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + read-cmd-shim@~1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/read-cmd-shim/-/read-cmd-shim-1.0.1.tgz#2d5d157786a37c055d22077c32c53f8329e91c7b" @@ -3809,12 +3841,6 @@ split2@^2.0.0: dependencies: through2 "^2.0.2" -split@0.3: - version "0.3.3" - resolved "https://registry.yarnpkg.com/split/-/split-0.3.3.tgz#cd0eea5e63a211dfff7eb0f091c4133e2d0dd28f" - dependencies: - through "2" - split@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/split/-/split-1.0.1.tgz#605bd9be303aa59fb35f9229fbea0ddec9ea07d9" @@ -3867,12 +3893,6 @@ static-extend@^0.1.1: version "1.4.0" resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087" -stream-combiner@~0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/stream-combiner/-/stream-combiner-0.0.4.tgz#4d5e433c185261dde623ca3f44c586bcf5c4ad14" - dependencies: - duplexer "~0.1.1" - string-width@^1.0.1, string-width@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" @@ -3975,6 +3995,13 @@ supports-color@^5.2.0: dependencies: has-flag "^3.0.0" +supports-color@^6.0.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3" + integrity sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ== + dependencies: + has-flag "^3.0.0" + tar@^2.0.0, tar@~2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" @@ -4016,7 +4043,7 @@ through2@^2.0.0, through2@^2.0.2: readable-stream "^2.1.5" xtend "~4.0.1" -through@2, "through@>=2.2.7 <3", through@~2.3, through@~2.3.1: +through@2, "through@>=2.2.7 <3": version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" @@ -4179,15 +4206,16 @@ unzip-response@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" -upath@^1.0.0: - version "1.0.5" - resolved "https://registry.yarnpkg.com/upath/-/upath-1.0.5.tgz#02cab9ecebe95bbec6d5fc2566325725ab6d1a73" +upath@^1.0.5: + version "1.1.0" + resolved "https://registry.yarnpkg.com/upath/-/upath-1.1.0.tgz#35256597e46a581db4793d0ce47fa9aebfc9fabd" + integrity sha512-bzpH/oBhoS/QI/YtbkqCg6VEiPYjSZtrHQM6/QnJS6OL9pKUFLqb3aFh4Scvwm45+7iAgiMkLhSbaZxUqmrprw== update-dotenv@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/update-dotenv/-/update-dotenv-1.1.0.tgz#1b5cd677ce42148fc8c8ed299e064fefd99ea57b" -update-notifier@^2.2.0, update-notifier@^2.3.0: +update-notifier@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.3.0.tgz#4e8827a6bb915140ab093559d7014e3ebb837451" dependencies: @@ -4201,6 +4229,22 @@ update-notifier@^2.2.0, update-notifier@^2.3.0: semver-diff "^2.0.0" xdg-basedir "^3.0.0" +update-notifier@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.5.0.tgz#d0744593e13f161e406acb1d9408b72cad08aff6" + integrity sha512-gwMdhgJHGuj/+wHJJs9e6PcCszpxR1b236igrOkUofGhqJuG+amlIKwApH1IW1WWl7ovZxsX49lMBWLxSdm5Dw== + dependencies: + boxen "^1.2.1" + chalk "^2.0.1" + configstore "^3.0.0" + import-lazy "^2.1.0" + is-ci "^1.0.10" + is-installed-globally "^0.1.0" + is-npm "^1.0.0" + latest-version "^3.0.0" + semver-diff "^2.0.0" + xdg-basedir "^3.0.0" + urix@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" From dfa9e82b4a43d98dd7d9d4e32e90789efe6ce35a Mon Sep 17 00:00:00 2001 From: dessant Date: Fri, 18 Jan 2019 13:31:00 +0200 Subject: [PATCH 3/6] fix: use `is:unlocked` search qualifier Closes #5. --- src/lock.js | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/src/lock.js b/src/lock.js index a110cf1..4a94018 100644 --- a/src/lock.js +++ b/src/lock.js @@ -21,7 +21,7 @@ module.exports = class Lock { const lockComment = this.getConfigValue(type, 'lockComment'); const setLockReason = this.getConfigValue(type, 'setLockReason'); - const results = await this.getLockableIssues(type); + const results = await this.search(type); for (const result of results) { const issue = {...repo, number: result.number}; @@ -58,43 +58,52 @@ module.exports = class Lock { } } - search(type) { + async search(type) { const {owner, repo} = this.context.repo(); const daysUntilLock = this.getConfigValue(type, 'daysUntilLock'); const exemptLabels = this.getConfigValue(type, 'exemptLabels'); - const skipCreatedBeforeTimestamp = this.getConfigValue(type, 'skipCreatedBefore'); + const skipCreatedBefore = this.getConfigValue(type, 'skipCreatedBefore'); const timestamp = this.getUpdatedTimestamp(daysUntilLock); - let query = `repo:${owner}/${repo} is:closed updated:<${timestamp}`; + let query = `repo:${owner}/${repo} updated:<${timestamp} is:closed is:unlocked`; + if (exemptLabels.length) { const queryPart = exemptLabels .map(label => `-label:"${label}"`) .join(' '); query += ` ${queryPart}`; } + + if (skipCreatedBefore) { + query += ` created:>${skipCreatedBefore}`; + } + if (type === 'issues') { query += ' is:issue'; } else { query += ' is:pr'; } - if (skipCreatedBeforeTimestamp) { - query += ` created:>${skipCreatedBeforeTimestamp}`; - } - this.log.info({repo: {owner, repo}}, `Searching ${type}`); - return this.context.github.search.issues({ + const results = (await this.context.github.search.issues({ q: query, sort: 'updated', order: 'desc', per_page: 30 - }); - } + })).data.items; - async getLockableIssues(type) { - const results = await this.search(type); - return results.data.items.filter(issue => !issue.locked); + // `is:unlocked` search qualifier is undocumented, warn on wrong results + const wrongResults = results.filter( + issue => issue.state === 'open' || issue.locked + ); + if (wrongResults.length) { + const issues = wrongResults.map(issue => issue.number); + this.log.warn({query, issues}, 'Wrong search results'); + return []; + } + + return results; } getUpdatedTimestamp(days) { From 21181a8da04b33a103f6d4b5305554058722e404 Mon Sep 17 00:00:00 2001 From: dessant Date: Fri, 18 Jan 2019 13:43:55 +0200 Subject: [PATCH 4/6] chore: update description --- LICENSE | 2 +- README.md | 28 ++++++++++++++++++---------- assets/app-description.md | 8 +++++--- 3 files changed, 24 insertions(+), 14 deletions(-) diff --git a/LICENSE b/LICENSE index b81ae74..a0cce70 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017-2018 Armin Sebastian +Copyright (c) 2017-2019 Armin Sebastian Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 7493cea..fdf8176 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ that locks closed issues and pull requests after a period of inactivity. The continued development of Lock Threads is made possible thanks to the support of awesome backers. If you'd like to join them, -please consider contributing with [Patreon](https://goo.gl/qRhKSW), -[PayPal](https://goo.gl/5FnBaw) or [Bitcoin](https://goo.gl/uJUAaU). +please consider contributing with [Patreon](https://www.patreon.com/dessant), +[PayPal](https://www.paypal.me/ArminSebastian) or [Bitcoin](https://goo.gl/uJUAaU). ## Usage @@ -23,13 +23,18 @@ please consider contributing with [Patreon](https://goo.gl/qRhKSW), 2. Create `.github/lock.yml` based on the template below 3. It will start scanning for closed issues and/or pull requests within an hour +⚠️ **If possible, install the app only for select repositories. +Do not leave the `All repositories` option selected, unless you intend +to use the app for all current and future repositories.** + #### Configuration -Create `.github/lock.yml` in the default branch to enable the app. +Create `.github/lock.yml` in the default branch to enable the app, +or add it at the same file path to a special repository named `.github`. The file can be empty, or it can override any of these default settings: ```yaml -# Configuration for lock-threads - https://github.com/dessant/lock-threads +# Configuration for Lock Threads - https://github.com/dessant/lock-threads # Number of days of inactivity before a closed issue or pull request is locked daysUntilLock: 365 @@ -78,15 +83,16 @@ applying or removing milestones, or pushing commits. An easy way to check and see which issues or pull requests will initially be locked is to add the `updated` search qualifier to either the issue -or pull request page filter for your repository: `is:closed updated:<2016-12-20`. +or pull request page filter for your repository: +`is:closed is:unlocked updated:<2016-12-20`. Adjust the date to be 365 days ago (or whatever you set for `daysUntilLock`) to see which issues or pull requests will be locked. -## Why are only some issues and pull requests locked? +## Why are only some issues and pull requests processed? To avoid triggering abuse prevention mechanisms on GitHub, only 30 issues -and pull requests will be locked per hour. If your repository has more -than that, it will just take a few hours or days to lock them all. +and pull requests will be handled per hour. If your repository has more +than that, it will just take a few hours or days to process them all. ## Deployment @@ -95,5 +101,7 @@ instance of this app. ## License -Lock Threads is released under the terms of the MIT License. -Please refer to the [LICENSE](LICENSE) file. +Copyright (c) 2017-2019 Armin Sebastian + +This software is released under the terms of the MIT License. +See the [LICENSE](LICENSE) file for further information. diff --git a/assets/app-description.md b/assets/app-description.md index ee3e8f0..1e903ca 100644 --- a/assets/app-description.md +++ b/assets/app-description.md @@ -8,12 +8,14 @@ A GitHub App that locks closed issues and pull requests after a period of inacti 2. Create `.github/lock.yml` based on the template below 3. It will start scanning for closed issues and/or pull requests within an hour +⚠️ **If possible, install the app only for select repositories. Do not leave the `All repositories` option selected, unless you intend to use the app for all current and future repositories.** + #### Configuration -Create `.github/lock.yml` in the default branch to enable the app. The file can be empty, or it can override any of these default settings: +Create `.github/lock.yml` in the default branch to enable the app, or add it at the same file path to a special repository named `.github`. The file can be empty, or it can override any of these default settings: ```yaml -# Configuration for lock-threads - https://github.com/dessant/lock-threads +# Configuration for Lock Threads - https://github.com/dessant/lock-threads # Number of days of inactivity before a closed issue or pull request is locked daysUntilLock: 365 @@ -55,4 +57,4 @@ setLockReason: true ## Supporting the Project -The continued development of Lock Threads is made possible thanks to the support of awesome backers. If you'd like to join them, please consider contributing with [Patreon](https://goo.gl/qRhKSW), [PayPal](https://goo.gl/5FnBaw) or [Bitcoin](https://goo.gl/uJUAaU). +The continued development of Lock Threads is made possible thanks to the support of awesome backers. If you'd like to join them, please consider contributing with [Patreon](https://www.patreon.com/dessant), [PayPal](https://www.paypal.me/ArminSebastian) or [Bitcoin](https://goo.gl/uJUAaU). From d2787cc33a45b756c7ae088a8a21b8c4e901943f Mon Sep 17 00:00:00 2001 From: dessant Date: Fri, 18 Jan 2019 13:55:34 +0200 Subject: [PATCH 5/6] chore: update documentation link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fdf8176..fe4b62b 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ setLockReason: true ## How are issues and pull requests determined to be inactive? -The app uses GitHub's [updated](https://git.io/vbR9z) search qualifier +The app uses GitHub's [updated](https://git.io/fhRnE) search qualifier to determine inactivity. Any change to an issue or pull request is considered an update, including comments, changing labels, applying or removing milestones, or pushing commits. From 00e6b14ad3511d03619de183213476180ff3ef72 Mon Sep 17 00:00:00 2001 From: dessant Date: Fri, 18 Jan 2019 14:02:00 +0200 Subject: [PATCH 6/6] chore(release): 0.8.1 --- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf949f2..46e3724 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [0.8.1](https://github.com/dessant/lock-threads/compare/v0.8.0...v0.8.1) (2019-01-18) + + +### Bug Fixes + +* use `is:unlocked` search qualifier ([dfa9e82](https://github.com/dessant/lock-threads/commit/dfa9e82)), closes [#5](https://github.com/dessant/lock-threads/issues/5) + + + # [0.8.0](https://github.com/dessant/lock-threads/compare/v0.7.1...v0.8.0) (2018-11-08) diff --git a/package.json b/package.json index 86dc2c1..eca36f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lock-threads", - "version": "0.8.0", + "version": "0.8.1", "description": "A GitHub App built with Probot that locks closed issues and pull requests after a period of inactivity.", "author": "Armin Sebastian", "license": "MIT",