Commit Graph

1666 Commits

Author SHA1 Message Date
Gregor Martynus f35b58a54c feat: `import { run } from "probot"`. Deprecates Probot.run() 2020-11-19 16:36:25 -08:00
Gregor Martynus 3f0974b4d2 refactor: move probot commands into `src/bin/` folder 2020-11-19 16:36:25 -08:00
Gregor Martynus 74f1f16bcd build(package): lock file 2020-11-19 16:36:25 -08:00
Gregor Martynus f829f9505a test: remove unused nock import 2020-11-19 16:36:25 -08:00
Gregor Martynus d96c65f09f refactor: remove obsolete TODO from deprecated Application class 2020-11-19 16:36:25 -08:00
Gregor Martynus dfc59fc20c feat: deprecate `INSTALLATION_TOKEN_TTL` 2020-11-19 16:36:25 -08:00
dependabot[bot] 39675d8c7e
build(deps-dev): bump semantic-release from 17.2.1 to 17.2.3
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.2.1 to 17.2.3.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](https://github.com/semantic-release/semantic-release/compare/v17.2.1...v17.2.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-18 15:40:56 -08:00
Gregor Martynus 47d9f3a2e1
feat: use `@probot/get-private-key` (#1414)
part of #1309
2020-11-18 12:14:03 -08:00
Gregor Martynus 0527b98039
feat: `context.octokit`. Deprecates `context.github` (#1413) 2020-11-17 16:43:43 -08:00
Gregor Martynus 9351df4b5e
fix(deps): update `@octokit/core` to latest (#1412) 2020-11-16 10:04:36 -08:00
Gregor Martynus 2fcc0b5c5c docs(hello-world): `app` is now a `Probot` instance 2020-11-12 16:38:57 -08:00
Gregor Martynus 0e52e05319
feat: deprecate `{ Application }` export. Use `{ Probot }` instead, it has the same APIs now. (#1408) 2020-11-12 11:46:22 -08:00
Gregor Martynus 1812cfeb2f
feat: `probot.on()` / `probot.receive()` / `probot.auth()` (#1407) 2020-11-12 09:27:21 -08:00
Gregor Martynus de3adc1169
feat: `getRouter` argument for app function (`({ app, getRouter }) => {}`) (#1406) 2020-11-11 22:28:49 -08:00
Gregor Martynus 4bfae5a54f
feat: `(app) => {}` is now `({ app }) => {}` (#1405)
deprecates `(app) => {}`
2020-11-11 14:25:36 -08:00
Gregor Martynus ab6fcb1dc4 fix: stop using `.webhooks.on("*", handler)` in favor of `.webhooks.onAny(handler) 2020-11-11 11:39:22 -08:00
Gregor Martynus 133b332b0c test: `probot.load()` accepts array of app functions 2020-11-10 11:33:08 -08:00
Gregor Martynus 3a02fa3d19 refactor: remove support for undocumented/untested `"plugins"` array in `package.json` 2020-11-05 23:51:28 -08:00
Gregor Martynus 58b2e1ddfd refactor: remove private `probot.apps` property 2020-11-05 23:35:03 -08:00
Christophe Hurpeau 2b30518fbd
fix: correct payload type by omitting context keys (#1389) 2020-11-01 14:26:47 -08:00
Gregor Martynus 8ba3a8e8a4
feat: use `octokit-auth-probot` (#1392) 2020-10-28 12:24:47 -07:00
Jimgao 506a5ed08b
docs(webhooks): update links to GitHub docs (#1393) 2020-10-27 21:47:34 -07:00
AJ Schmidt a5b36b3344
fix: use `webhooks.onError()` instead of deprecated `webhooks.on("error", ...)` (#1390) 2020-10-26 12:02:16 -07:00
Gregor Martynus 41ee70cbf1 fix(typescript): TypeScript issues TS2305,TS2707,TS7006
fixes #1387
2020-10-22 10:00:39 -07:00
Ankeet Maini c7ead98f78
refactor: use `WebhookEvents` export instead of an internal one. (#1381) 2020-10-13 11:38:13 -07:00
Gregor Martynus 8ddac1f6bb style: prettier 2020-10-08 10:20:13 -07:00
Gregor Martynus 05abeef921
fix(types): set correct type for `context` passed to event handler (#1378)
follow up to https://github.com/probot/probot/pull/1374/files\#r501871740
2020-10-08 10:09:24 -07:00
Gregor Martynus 630d78e347
fix(typescript): adapt for latest `@octokit/webhooks` (#1374)
Co-authored-by: Ankeet Maini <ankeet.maini@gmail.com>
2020-10-08 09:36:13 -07:00
Gregor Martynus 9483546c74
fix: do not overwrite `options.throttle` passed to `{Octokit: ProbotOctokit.defaults(options)} (#1373) 2020-10-04 14:11:15 -07:00
Gregor Martynus f537204987
feat: deprecate `new Application({ throttleOptions })` (#1365) 2020-09-28 22:46:11 -07:00
Gregor Martynus c758898b8a build(package): lock file 2020-09-28 20:40:04 -07:00
Gregor Martynus a235671fe9
fix: use `@probot/octokit-plugin-config` for `context.config` (#1362)
* build(deps): `@probot/octokit-plugin-config`

* test(context.config): adapt http mocks for `@probot/octokit-plugin-config`

* fix: use `@probot/octokit-plugin-config`

* test(context.config): remove tests that test internal behavior of `@probot/octokit-plugin-config`
2020-09-28 16:15:59 -07:00
Gregor Martynus 89538b073e
test(context.config): rewrite to integration tests (#1363) 2020-09-28 15:28:59 -07:00
Gregor Martynus c8f7f7374d
docs(development): update for latest changes to `probot` and `create-probot-app` (#1356) 2020-09-21 16:09:16 -07:00
Max Baumann a03c610a49
feat: add restart message (#1353) 2020-09-19 11:17:05 -07:00
Alex dc4cd53198
fix: remove redundant v from Node.js version log string (#1352) 2020-09-18 12:45:52 -07:00
Max Baumann d907bbda0c
feat(setup): support registration using an existing GitHub app (#1345) 2020-09-18 09:17:51 -07:00
Max Baumann 31fdd619ac
feat: export WebhookPayloadWithRepository (#1348) 2020-09-18 09:13:35 -07:00
Alex 86b0408f13
feat: log Node.js version at startup (#1346)
Co-authored-by: Gregor Martynus <gregor@martynus.net>
2020-09-18 09:12:31 -07:00
Max Baumann 235e308e35
fix: use custom host in new welcome message (#1347) 2020-09-18 08:46:55 -07:00
Max Baumann 7c1b4880a0
ci: add CODECOV_TOKEN env variable (#1350) 2020-09-18 08:37:45 -07:00
Alex ed7a5134be
feat: add HOST/--host option (#1335) 2020-09-17 23:33:32 -07:00
Max Baumann 240e77ca3c
feat: increase readability of welcome message at setup (#1343) 2020-09-16 17:09:52 -07:00
dependabot[bot] b9904882f4
build(deps): bump node-fetch from 2.6.0 to 2.6.1 (#1339)
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-11 12:46:41 -07:00
Gregor Martynus 4cf7de9902
feat(sentry): set user ID to `installation.id` and username to repository owner login (when present) (#1337) 2020-09-07 12:55:21 -07:00
Frank Zhao e0760b0ef9
fix: remove redundant string in deprecation warning (#1336)
Signed-off-by: Frankzhaopku <syzhao1988@126.com>
2020-09-07 10:23:54 -07:00
Gregor Martynus 86c19733ca fix: prevent double new lines when using `LOG_FORMAT=json`
fixes https://github.com/probot/probot/issues/1334
2020-09-06 13:01:34 -07:00
Gregor Martynus d671d82642
fix: "Cannot find module `../lib/private-key`" error when running `probot receive` (#1332) 2020-09-03 09:58:31 -07:00
Gregor Martynus 1f4a038400 ci(docs): update docs when new tag was created 2020-09-01 16:00:41 -07:00
Gregor Martynus 890483da26 build: trigger docs build 2020-09-01 15:44:52 -07:00