Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency probot to v12 - autoclosed #522

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 24, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
probot (source) 9.15.1 -> 12.3.3 age adoption passing confidence

Release Notes

probot/probot (probot)

v12.3.3

Compare Source

Bug Fixes

v12.3.2

Compare Source

Bug Fixes

v12.3.1

Compare Source

Bug Fixes

v12.3.0

Compare Source

Features

v12.2.9

Compare Source

Bug Fixes

v12.2.8

Compare Source

Bug Fixes

v12.2.7

Compare Source

Bug Fixes

v12.2.6

Compare Source

Bug Fixes

v12.2.5

Compare Source

Bug Fixes

v12.2.4

Compare Source

Bug Fixes

v12.2.3

Compare Source

Bug Fixes
  • deps: bump eventsource from 1.1.0 to 2.0.2 (7fd06d6)

v12.2.2

Compare Source

Bug Fixes

v12.2.1

Compare Source

Bug Fixes

v12.2.0

Compare Source

Features
  • customize account name for manifest creation flow using GH_ORG environment variable (#​1606) (992b480)

v12.1.4

Compare Source

Bug Fixes

v12.1.3

Compare Source

Bug Fixes

v12.1.2

Compare Source

Bug Fixes
  • typescript: add types for context.{repo,issue,pullRequest} (#​1622) (638a3b2)

v12.1.1

Compare Source

Bug Fixes

v12.1.0

Compare Source

Features

v12.0.0

Compare Source

Features
BREAKING CHANGES
  • remove '*' event
  • app.webhooks.middleware has been removed in @octokit/webhooks v9
  • removes the webhookPath option on new Probot({}) for the webhooks middleware

Co-authored-by: wolfy1339 [email protected]

v11.4.1

Compare Source

Bug Fixes
  • support setting baseUrl on Octokit constructor instead of Probot constructor (#​1552) (453ddd2)

v11.4.0

Compare Source

Features

v11.3.2

Compare Source

Bug Fixes

v11.3.1

Compare Source

Bug Fixes
  • setup: do not enter setup mode if HOST environment variable is set (#​1538) (4d70d69)

v11.3.0

Compare Source

Features

v11.2.4

Compare Source

Bug Fixes

v11.2.3

Compare Source

Bug Fixes

v11.2.2

Compare Source

Bug Fixes
  • add workaround for "appId option is required" when in setup mode (#​1513) (e11b91e)

v11.2.1

Compare Source

Bug Fixes

v11.2.0

Compare Source

Features

v11.1.1

Compare Source

Bug Fixes

v11.1.0

Compare Source

Features
  • add onAny and onError methods from @octokit/webhooks (#​1480) (9a24f9d)

v11.0.6

Compare Source

Bug Fixes

v11.0.5

Compare Source

Bug Fixes
  • clarify error message in case of invalid app authentication (#​1465) thanks @​eXpire163 (5f1831b)

v11.0.4

Compare Source

Bug Fixes
  • TypeScript: fix description of context.pullRequest method (#​1461) (a5779ff)

v11.0.3

Compare Source

Bug Fixes

v11.0.2

Compare Source

Bug Fixes
  • typescript: remove options.webhookProxy from Probot constructor (#​1459) (01bb678)

v11.0.1

Compare Source

Bug Fixes

v11.0.0

Compare Source

BREAKING CHANGES

For a smooth upgrade, make sure to update to the latest Probot v10 version first (npm install probot@10), run your tests, and address all deprecation messages. Nearly all removed APIs have previously been deprecated.

  • deprecated context.octokit.* have been removed via @octokit/plugin-rest-endpoint-methods v4

  • probot.server property removed. Build your own server instead using import { Server } from "probot"

  • probot.load() is now asynchronous and no longer returns the instance

  • express-async-errors is no longer used.

  • Probot constructor parameter no longer supported in createNodeMiddleware(app, { Probot }). Pass a probot instance instead: createNodeMiddleware(app, { probot })

  • getOptions() has been removed. Use { probot: createProbot() } instead

  • probot.load(appFn) no longer accepts appFn to be a path string. Pass the actual function instead.

  • probot.setup() removed. Use the new Server class instead:

    const { Server, Probot } = require("probot")
    const server = new Server({
      // optional:
      host,
      port,
      webhookPath,
      webhookProxy,
      Probot: Probot.defaults({ id, privateKey, ... })
    })
    
    // load probot app function
    await server.load((app) => {})
    
    // start listening to requests
    await server.start()
    // stop server with: await server.stop()

    If you have more than one app function, combine them in a function instead

    const app1 = require("./app1")
    const app2 = require("./app2")
    
    module.exports = function app ({ probot, getRouter }) {
      await app1({ probot, getRouter })
      await app2({ probot, getRouter })
    }
  • probot.start() / probot.stop() removed. Use the new Server class instead:

    const { Server, Probot } = require("probot")
    const server = new Server({
      Probot: Probot.defaults({ id, privateKey, ... })
      // optional:
      host,
      port,
      webhookPath,
      webhookProxy,
    })
    
    // load probot app function
    await server.load((app) => {})
    
    // start listening to requests
    await server.start()
    // stop server with: await server.stop()
  • REDIS_URL is ignored when using Probot constructor. Use new Probot({ redisConfig: redis://... }) instead

  • Probot constructor no longer reads environment variables. Pass options instead, or import { createProbot } from "probot" instead

  • Probot.run() has been removed. Use import { run} from "probot" instead

  • context.github has been removed. Use context.octokit instead

  • context.event has been removed. Use context.name instead

  • app.route() has been removed. Use the getRouter() argument from the app function instead: (app, { getRouter }) => { ... }

  • app.router has been removed. Use getRouter() from the app function instead: (app, { getRouter }) => { ... }

  • probot.logger has been removed. Use probot.log instead

  • new Probot({ id }) has been removed. Use new Probot({ appId }) instead

  • new Probot({ cert }) has been removed. Use new Probot({ privateKey }) instead

  • probot.webhook has been removed. Use probot.webhooks instead

  • createProbot(options) no longer supports any keys besides overrides, defaults, or env

  • options.throttleOptions has been removed. Set options.Octokit to ProbotOctokit.defaults({ throttle }) instead

  • import { Application } from probot has been removed. Use import { Probot } from probot instead, the APIs are the same

v10.19.0

Compare Source

Features

v10.18.0

Compare Source

Features
Deprecations
  • probot.load() (3d4b363)
  • probot.start() / probot.stop() / probot.setup() (7a8f268)
  • Deprecates new Probot({ id }) (a94fdca)
Bug Fixes
  • `createProbot() without options (8c01e90)
  • load app function only once when using createNodeMiddleware (#​1432) (60b702b)
  • server: log error requests as [METHOD] /[PATH] [STATUS] - [NUM]ms, e.g POST / 500 - 123ms (9d767e1)

v10.17.3

Compare Source

Bug Fixes

v10.17.2

Compare Source

Bug Fixes

v10.17.1

Compare Source

Bug Fixes
  • set default log level correctly to "info" (49153b8)

v10.17.0

Compare Source

Features
  • import { run } from "probot". Deprecates Probot.run() (f35b58a)
  • new Probot({ baseUrl }). Deprecates GHE_HOST / GHE_PROTOCOL when using with the Probot constructor (7abbef7)
  • new Probot({ logLevel }). Deprecates LOG_LEVEL when using Probot constructor (7c46218)
  • deprecate INSTALLATION_TOKEN_TTL (dfc59fc)
  • deprecate LOG_FORMAT, LOG_LEVEL_IN_STRING, SENTRY_DSN environment variables when using Probot constructor. Pass a custom log instance instead: (514c764)
  • deprecate REDIS_URL environment variable when using with the Probot constructor. Use new Probot({ redisConfig: "redis://..." }) instead (1dbd999)

v10.16.0

Compare Source

Features

v10.15.0

Compare Source

Features

v10.14.1

Compare Source

Bug Fixes

v10.14.0

Compare Source

Features
  • deprecate { Application } export. Use { Probot } instead, it has the same APIs now. (#​1408) (0e52e05)

v10.13.0

Compare Source

Features

v10.12.0

Compare Source

Features
  • getRouter argument for app function (({ app, getRouter }) => {}) (#​1406) (de3adc1)

v10.11.0

Compare Source

Features

v10.10.2

Compare Source

Bug Fixes
  • stop using .webhooks.on("*", handler) in favor of `.webhooks.onAny(handler) (ab6fcb1)

v10.10.1

Compare Source

Bug Fixes

v10.10.0

Compare Source

Features

v10.9.5

Compare Source

Bug Fixes
  • use webhooks.onError() instead of deprecated webhooks.on("error", ...) (#​1390) (a5b36b3)

v10.9.4

Compare Source

Bug Fixes
  • typescript: TypeScript issues TS2305,TS2707,TS7006 (41ee70c), closes #​1387

v10.9.3

Compare Source

Bug Fixes

v10.9.2

Compare Source

Bug Fixes

v10.9.1

Compare Source

Bug Fixes
  • do not overwrite options.throttle passed to {Octokit: ProbotOctokit.defaults(options)} (#​1373) (9483546)

v10.9.0

Compare Source

Features

v10.8.1

Compare Source

Bug Fixes
  • use @probot/octokit-plugin-config for context.config (#​1362) (a235671)

    If you mocked http requests for configuration files, you will have to adapt them. Instead of returning a JSON response with a { content } object, where content is a base64 encoded version of your raw configuration, you can now return the content without encoding directly. Example

    Before

    nock("https://api.github.com")
      .get("/repos/wip/app/contents/.github%2Fwip.yml")
      .reply(200, {
        content: Buffer.from("terms: 🚧").toString("base64"),
      });

    After

    nock("https://api.github.com")
      .get("/repos/wip/app/contents/.github%2Fwip.yml")
      .reply(200, "terms: 🚧");

v10.8.0

Compare Source

Features

v10.7.1

Compare Source

Bug Fixes

v10.7.0

Compare Source

Features
  • setup: support registration using an existing GitHub app (#​1345) (d907bbd)

v10.6.0

Compare Source

Features

v10.5.0

Compare Source

Features

v10.4.1

Compare Source

Bug Fixes

v10.4.0

Compare Source

Features

v10.3.0

Compare Source

Features

v10.2.0

Compare Source

Features
  • sentry: set user ID to installation.id and username to repository owner login (when present) (#​1337) (4cf7de9)

v10.1.5

Compare Source

Bug Fixes

v10.1.4

Compare Source

Bug Fixes
  • prevent double new lines when using LOG_FORMAT=json (86c1973)

v10.1.3

Compare Source

Bug Fixes
  • "Cannot find module ../lib/private-key" error when running probot receive (#​1332) (d671d82)

v10.1.2

Compare Source

Bug Fixes
  • trigger release to update docs on probot.github.com (4c88da9)

v10.1.1

Compare Source

v10 release notes

This is the first stable release for v10. See all breaking changes and new features at
https://github.com/probot/probot/releases/tag/v10.0.0

Bug Fixes
  • app.auth(installationId) returns octokit instance with all required installation authentication settings (#​1326) (410302f)

v10.1.0

Compare Source

Features

v10.0.1

Compare Source

Bug Fixes

v10.0.0

Compare Source

Breaking changes
  • @octokit/rest has been updated from v16 to v17. See release notes. Important: If you currently mocked context.github.* methods in your test, replace these with http mocks using nock instead, otherwise your tests will create methods that no longer exist and you will see errors in production although your tests passed. See https://github.com/wip/app/pull/238 for an example

  • URL parameters are now always encoded when using context.github.* methods. For example, if you use context.github.repos.getContent( owner, repo, path ) make sure to not encode the value for path. Also if you were mocking http requests in your tests, replace e.g. repos/octocat/hello-world/contents/.github/config.yml with repos/octocat/hello-world/contents/.github%2Fconfig.yml

  • require Node 10.21+

  • Logging: an object with extra information must be passed as first argument. Passing it as last argument is no longer supported.

    before

    context.log.info('something happened', {extra: 'info'})

    after

    context.log.info({extra: 'info'}, 'something happened')
  • The logging output changed. Before, probot used bunyan with all kind of hacks and customizations for its log output. Now we use pino. We still do the formatting and sending errors to Sentry in the same process, but the logic is now encapsulated in @probot/pino. We might decouple it in future as part of making Probot more suitable for serverless/function environments

  • context.issue() now returns .issue_number instead of .number. Use context.pullRequest() for octokit.pulls.* method calls.

  • registry_package event was renamed to package

  • The probot package no longer exports Octokit. Use ProbotOctokit instead.

    const { ProbotOctokit, ProbotOctokitCore } = require('probot')
  • Probot no longer accepts options.throttlingOptions. In order to disable throttling for testing, set options.Octokit to ProbotOctokit.defaults({ retry: { enabled: false }, throttle: { enabled: false } }):

    const { Probot, ProbotOctokit } = require('probot')
    
    const probot = new Probot({
      Octokit: ProbotOctokit.defaults({ retry: { enabled: false }, throttle: { enabled: false } })
    })
  • Undocumented & untested APIs removed

    • probot.errorHandler
    • probot.httpServer
    • app.log.target has been removed.
    • router option for Application contructor: new Application({ router })
Features

image

  • Significant lower memory usage
  • update to @octokit/rest to v17
  • update to @octokit/webhooks to v7
  • context.pullRequest()
  • probot.log (probot.logger is now deprecated)
  • probot.stop() (Replaces undocumented probot.httpServer)
  • replace bunyan with pino for logging
  • use a single Octokit instance with JWT auth
Bug Fixes
  • use JWT auth for marketplace endpoints

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/probot-12.x branch 5 times, most recently from bb74810 to e45851c Compare July 3, 2021 01:44
@renovate renovate bot force-pushed the renovate/probot-12.x branch 8 times, most recently from 76b31ff to ecf3db2 Compare July 12, 2021 02:22
@renovate renovate bot force-pushed the renovate/probot-12.x branch 2 times, most recently from 5a301ae to 2f69f42 Compare July 26, 2021 01:41
@renovate renovate bot force-pushed the renovate/probot-12.x branch from 2f69f42 to 97fc75a Compare August 2, 2021 03:16
@renovate renovate bot force-pushed the renovate/probot-12.x branch from 97fc75a to bacf31e Compare August 9, 2021 03:16
@renovate renovate bot force-pushed the renovate/probot-12.x branch from bacf31e to c5c127b Compare August 16, 2021 03:57
@renovate renovate bot force-pushed the renovate/probot-12.x branch 3 times, most recently from 932e380 to 6d70f9e Compare August 30, 2021 03:48
@renovate renovate bot force-pushed the renovate/probot-12.x branch 3 times, most recently from 193e8af to c8abf74 Compare September 6, 2021 03:09
@renovate renovate bot force-pushed the renovate/probot-12.x branch 2 times, most recently from 165fe19 to 56599b3 Compare September 20, 2021 03:27
@renovate renovate bot force-pushed the renovate/probot-12.x branch 2 times, most recently from 527805b to d2f6aae Compare September 27, 2021 04:34
@renovate renovate bot force-pushed the renovate/probot-12.x branch 2 times, most recently from c0bce6d to d801cbc Compare October 11, 2021 02:41
@renovate renovate bot force-pushed the renovate/probot-12.x branch from 8786672 to bd8be8c Compare January 3, 2022 23:12
@renovate renovate bot force-pushed the renovate/probot-12.x branch from bd8be8c to 644d90d Compare January 11, 2022 02:18
@renovate renovate bot force-pushed the renovate/probot-12.x branch from 644d90d to 0a8c1ff Compare March 7, 2022 12:51
@renovate renovate bot force-pushed the renovate/probot-12.x branch from 0a8c1ff to e8c64aa Compare March 26, 2022 13:40
@renovate renovate bot force-pushed the renovate/probot-12.x branch 2 times, most recently from ec2bf79 to 4741205 Compare June 24, 2022 05:33
@renovate renovate bot force-pushed the renovate/probot-12.x branch 2 times, most recently from bd0d8a0 to bf2bdcd Compare July 5, 2022 18:53
@renovate renovate bot force-pushed the renovate/probot-12.x branch from bf2bdcd to a1a5541 Compare August 29, 2022 22:17
@renovate renovate bot force-pushed the renovate/probot-12.x branch from a1a5541 to 270665a Compare September 25, 2022 22:27
@renovate renovate bot force-pushed the renovate/probot-12.x branch from 270665a to b95801d Compare November 20, 2022 18:15
@renovate renovate bot force-pushed the renovate/probot-12.x branch from b95801d to 13eb776 Compare March 16, 2023 16:10
@renovate renovate bot force-pushed the renovate/probot-12.x branch 6 times, most recently from 30fddfa to a84fabe Compare March 25, 2023 04:34
@renovate renovate bot force-pushed the renovate/probot-12.x branch from a84fabe to 3a07d76 Compare June 14, 2023 21:48
@renovate renovate bot force-pushed the renovate/probot-12.x branch from 3a07d76 to 90d8fa1 Compare September 4, 2023 19:55
@renovate renovate bot force-pushed the renovate/probot-12.x branch 4 times, most recently from ac25718 to d392ea1 Compare October 23, 2023 19:59
@renovate renovate bot force-pushed the renovate/probot-12.x branch from d392ea1 to 11c1b67 Compare November 14, 2023 09:58
@renovate renovate bot force-pushed the renovate/probot-12.x branch from 11c1b67 to 15c2e30 Compare November 15, 2023 19:47
@renovate renovate bot changed the title fix(deps): update dependency probot to v12 fix(deps): update dependency probot to v12 - autoclosed Dec 16, 2023
@renovate renovate bot closed this Dec 16, 2023
@renovate renovate bot deleted the renovate/probot-12.x branch December 16, 2023 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants