Commit Graph

1709 Commits

Author SHA1 Message Date
Armin Sebastian dc7dc324c2
docs: remove probot-messages extension (#1455) 2021-01-08 11:30:35 -08:00
dependabot[bot] 59f07c9bfc
build(deps): bump node-notifier from 8.0.0 to 8.0.1 (#1449)
Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/mikaelbr/node-notifier/releases)
- [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md)
- [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-21 12:40:36 -08:00
Gregor Martynus 335684509e
fix: import app functions transpiled from TypeScript (#1448) 2020-12-17 15:03:59 -08:00
Gregor Martynus 15e4b00702 feat: probot v11
BREAKING CHANGE: TBD
2020-12-15 13:54:49 -08:00
Gregor Martynus 42b043e588
feat: un-deprecate `(app) => {}`. Deprecate `({ app, getRouter }) => {}` in favor of `(app, { getRouter }) => {}` (#1441)
see discussion at https://github.com/probot/probot/issues/1286#issuecomment-744094299
2020-12-15 11:04:32 -08:00
Oscar Romero 41820c3358
docs(webhooks): typo in usage example (#1445) thanks @homeles 2020-12-14 14:56:45 -08:00
dependabot[bot] a028c3d793
build(deps): bump highlight.js from 10.3.1 to 10.4.1 (#1429)
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 10.3.1 to 10.4.1.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/master/CHANGES.md)
- [Commits](https://github.com/highlightjs/highlight.js/compare/10.3.1...10.4.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-08 12:19:53 -08:00
Gregor Martynus 3aa0d5fd53
docs: log stubbing (#1355)
resolves #1273
2020-12-08 11:58:27 -08:00
Gregor Martynus f6a7970292
refactor: `webhooks.on("*")` is now `webhooks.onAny()` (#1401) 2020-12-07 21:41:58 -08:00
Gregor Martynus 60b702bd05 fix: load app function only once when using createNodeMiddleware (#1432) 2020-12-07 21:14:05 -08:00
Gregor Martynus 8c01e90ecc fix: `createProbot() without options 2020-12-07 21:14:05 -08:00
Gregor Martynus d315f0c2b6 feat: `createProbot()`, `createNodeMiddleware(app, { probot })`. Deprecates `getOptions`, `createNodeMiddleware(app, { Probot })` (#1431) 2020-12-07 21:14:05 -08:00
Gregor Martynus d1a66fc59e test: remove `test/fixtures/test-private-key.pem` from gitignore 2020-12-07 21:14:05 -08:00
Gregor Martynus 0343d5119e docs(Serverless deployment): add node middleware 2020-12-07 21:14:05 -08:00
Gregor Martynus bdbe94ee42 feat: createNodeMiddleware 2020-12-07 21:14:05 -08:00
Gregor Martynus a771d25303 feat: `getOptions({ env, defaults, overrides })` 2020-12-07 21:14:05 -08:00
Gregor Martynus 3d4b363261 feat: deprecate `probot.load()` 2020-12-07 21:14:05 -08:00
Gregor Martynus 7a8f268561 feat: deprecate `probot.start()` / `probot.stop()` / `probot.setup()` 2020-12-07 21:14:05 -08:00
Gregor Martynus a5c78b18e4 docs(testing): remove unused `id` option from code example 2020-12-07 21:14:05 -08:00
Gregor Martynus a94fdca9fd feat: `new Probot({ appId })`. Deprecates `new Probot({ id })` 2020-12-07 21:14:05 -08:00
Gregor Martynus 2ff5d21e2a feat: `Probot.version`, `Probot.defaults()` 2020-12-07 21:14:05 -08:00
Gregor Martynus e0d34c7f80 test: move server tests into `test/server.test.ts` 2020-12-07 21:14:05 -08:00
Gregor Martynus 3d90806c95 feat: `run(appFn, { env })` 2020-12-07 21:14:05 -08:00
Gregor Martynus 5c2d3c39d5 test: rewrite server tests to test new `Server` class 2020-12-07 21:14:05 -08:00
Gregor Martynus 9d767e191e fix(server): log error requests as `[METHOD] /[PATH] [STATUS] - [NUM]ms`, e.g `POST / 500 - 123ms` 2020-12-07 21:14:05 -08:00
Gregor Martynus 8a3599db82 feat: use new `Server` class when using `probot run` binary 2020-12-07 21:14:05 -08:00
Gregor Martynus 966ea5aabe test: rename `test/index.ts` to `test/probot.ts` 2020-12-07 21:14:05 -08:00
Gregor Martynus 6af93d0d3d test(run): move tests to `test/run.test.js` 2020-12-07 21:14:05 -08:00
Gregor Martynus d673f3b8fd test: import types 2020-12-07 21:14:05 -08:00
Gregor Martynus 5e8dcc6798 refactor: cleanup 2020-12-07 21:14:05 -08:00
Gregor Martynus f41af1827e build: typescript 4.1 2020-12-07 21:14:05 -08:00
Gregor Martynus e2c35c20d6
docs(README): remove pull reminders badge 2020-12-07 10:54:03 -08:00
Gregor Martynus d203219707 fix: `app.route()` with `(app) => {}` app function (#1430) 2020-12-06 15:04:35 -08:00
Gregor Martynus 0ec5f23098
fix: remove `GHE_HOST` deprecation message when using `probot run` cli (#1423)
fixes #1422
2020-11-22 11:04:36 -08:00
Gregor Martynus 49153b8dd4 fix: set default log level correctly to `"info"` 2020-11-19 21:14:42 -08:00
Gregor Martynus 7abbef776c feat: `new Probot({ baseUrl })`. Deprecates `GHE_HOST` / `GHE_PROTOCOL` when using with the `Probot` constructor 2020-11-19 16:36:25 -08:00
Gregor Martynus cea4318106 docs: `context.github` is now `context.octokit` 2020-11-19 16:36:25 -08:00
Gregor Martynus e67b78511f refactor: move GHE_HOST check into `bin/probot` 2020-11-19 16:36:25 -08:00
Gregor Martynus 1dbd999982 feat: deprecate `REDIS_URL` environment variable when using with the `Probot` constructor. Use `new Probot({ redisConfig: "redis://..." })` instead 2020-11-19 16:36:25 -08:00
Gregor Martynus 514c7645e8 feat: deprecate `LOG_FORMAT`, `LOG_LEVEL_IN_STRING`, `SENTRY_DSN` environment variables when using `Probot` constructor. Pass a custom log instance instead:
```
import { Probot } from "probot";
import pino from "pino";
import { getTransformStream } from "@probot/pino";

const transform = getTransformStream({
  level: "info",
  logFormat: "pretty",
  logLevelInString: false,
  sentryDsn: "https://1234abcd@sentry.io/12345
});

transform.pipe(pino.destination(1));
const log = pino(pinoOptions, transform);

new Probot({ log })
```
2020-11-19 16:36:25 -08:00
Gregor Martynus f50f68f485 refactor: `getLog(level)` -> `getLog({ level })` 2020-11-19 16:36:25 -08:00
Gregor Martynus 7c46218da8 feat: `new Probot({ logLevel })`. Deprecates `LOG_LEVEL` when using `Probot` constructor 2020-11-19 16:36:25 -08:00
Gregor Martynus 8ee18cdd4a refactor: move `Probot` code to `src/probot.ts` 2020-11-19 16:36:25 -08:00
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