Gregor Martynus
93007b63c4
fix(probot): passes logger to webhooks ( #2011 )
2024-04-30 20:35:38 -04:00
Aaron Dewes
f97fc64dac
test: Ensure we can run both ESM and CJS ( #1956 )
2024-01-28 17:29:34 +01:00
renovate[bot]
d7ae857632
chore(deps): update vitest monorepo to v1 (major) ( #1948 )
...
* chore(deps): update vitest monorepo to v1
* update snapshots
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: uzlopak <aras.abbasi@googlemail.com>
2024-01-25 22:07:37 +00:00
wolfy1339
948a1b7147
feat: v13 ( #1874 )
...
BREAKING CHANGE: Drop support for NodeJS < 18
BREAKING CHANGE: replace node-fetch with the Fetch API
BREAKING CHANGE: default webhookPath is now /api/github/webhooks
BREAKING CHANGE: probot receive now only supports payloads in JSON format, previously also (unintionally) allowed JS.
closes #1643
---------
Co-authored-by: Aras Abbasi <aras.abbasi@googlemail.com>
Co-authored-by: Alexander Fortin <shaftoe@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Aaron Dewes <aaron.dewes@protonmail.com>
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
Co-authored-by: Aaron Dewes <aaron@runcitadel.space>
Co-authored-by: prettier-toc-me[bot] <56236715+prettier-toc-me[bot]@users.noreply.github.com>
Co-authored-by: Yaseen <9275716+ynx0@users.noreply.github.com>
2024-01-25 16:03:28 -05:00
Shingo Sato
6c5840d2df
feat(server): add logging options ( #1645 )
2023-01-16 16:01:34 +01:00
David Brodski
646b6a9276
fix: logging of first octokit instance is not set ( #1676 ) - thanks @kammerjaeger @markjm
2022-06-01 16:41:57 -07:00
Aadil Siddiqui
420f88612d
fix: Replaced hbs with express-handlebars ( #1659 )
...
Addresses https://securitylab.github.com/advisories/GHSL-2021-020-pillarjs-hbs/
2022-03-08 07:50:55 -08:00
Yadhav Jayaraman
992b480073
feat: customize account name for manifest creation flow using `GH_ORG` environment variable ( #1606 )
2022-01-10 16:34:23 -08:00
rethab
bb068d9ae2
fix: log json in production ( #1598 )
...
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
2021-12-08 10:33:37 -08:00
David Brodski
02a57d1bd2
refactor: remove fallback to `.owner.name` when `.owner.login` is not set. `.owner.login` is always set ( #1623 )
2021-11-29 16:30:21 -08:00
Gregor Martynus
4b3ae0eee5
feat: update `@octokit/webhooks` to v9 ( #1559 )
...
BREAKING CHANGE: remove '*' event
BREAKING CHANGE: app.webhooks.middleware has been removed in `@octokit/webhooks` v9
BREAKING CHANGE: removes the `webhookPath` option on `new Probot({})` for the webhooks middleware
Co-authored-by: wolfy1339 <webmaster@wolfy1339.com>
2021-06-24 12:00:09 -07:00
Gregor Martynus
453ddd29bb
fix: support setting `baseUrl` on Octokit constructor instead of Probot constructor ( #1552 )
2021-06-07 11:38:32 -07:00
Jacopo Daeli
01c2006700
feat(logger): custom message key ( #1546 )
2021-06-01 20:23:40 +00:00
David Brodski
4d70d69c92
fix(setup): do not enter setup mode if `HOST` environment variable is set ( #1538 )
2021-05-28 12:17:02 -07:00
Gregor Martynus
e11b91e838
fix: add workaround for "appId option is required" when in setup mode ( #1513 )
2021-04-23 12:12:29 -07:00
Gregor Martynus
d70c4af748
build(package): fix description
2021-04-05 19:11:56 -07:00
wolfy1339
9a24f9dcb5
feat: add `onAny` and `onError` methods from `@octokit/webhooks` ( #1480 )
...
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
2021-03-01 10:14:14 -08:00
Gregor Martynus
c612fc903d
docs: update for serverless/function milestone and new v11 APIs ( #1467 )
2021-02-12 13:08:51 -08:00
Chris
5f1831b99a
fix: clarify error message in case of invalid app authentication ( #1465 ) thanks @eXpire163
2021-01-20 14:09:40 -08:00
Björn Brauer
2275698633
fix: correctly import (transpiled) app function for run and receive ( #1457 ) thanks @ZauberNerd
2021-01-14 15:38:32 -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
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
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
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
5c2d3c39d5
test: rewrite server tests to test new `Server` class
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
f41af1827e
build: typescript 4.1
2020-12-07 21:14:05 -08:00
Gregor Martynus
d203219707
fix: `app.route()` with `(app) => {}` app function ( #1430 )
2020-12-06 15:04:35 -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
f829f9505a
test: remove unused nock import
2020-11-19 16:36:25 -08:00