stale icon indicating copy to clipboard operation
stale copied to clipboard

Missing getInstallations method in latest version of octokit

Open jakeswenson opened this issue 4 years ago • 14 comments

I'm trying to add probot-stale as a composed app, but it's failng to load because getInstallations is not a function. It seems it was renamed to listInstallations according to this PR: https://github.com/angular/github-robot/commit/19f42906cb944f6b71730853e1efd9e77c25457d#diff-dc25f195229dc07dc2800f765f2fb98fL27

jakeswenson avatar Nov 07 '19 15:11 jakeswenson

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.78. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Nov 07 '19 15:11 issue-label-bot[bot]

Here is the exact error on startup:

15:37:31.994Z ERROR probot: github.apps.getInstallations is not a function
  TypeError: github.apps.getInstallations is not a function
      at eachInstallation (/bot/node_modules/probot-scheduler/index.js:74:29)

jakeswenson avatar Nov 07 '19 15:11 jakeswenson

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

stale[bot] avatar Feb 05 '20 21:02 stale[bot]

Is this still relevant?

Yes

If so, what is blocking it?

The Author of you.

Is there anything you can do to help move it forward?

No, the latest version of github needs to be pushed to NPM! It's not a hard fix

jakeswenson avatar Feb 08 '20 16:02 jakeswenson

@JasonEtco ^

jakeswenson avatar Feb 08 '20 16:02 jakeswenson

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

stale[bot] avatar May 09 '20 03:05 stale[bot]

yes

jakeswenson avatar May 18 '20 20:05 jakeswenson

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

stale[bot] avatar Aug 16 '20 21:08 stale[bot]

I am facing the same issue , do you have any update ?

rthadur avatar Sep 25 '20 18:09 rthadur

I only have this problem when working with stale and pr-triage

❯ 06:36:04.951Z ERROR probot: github.apps.getInstallations is not a function                                                                     ─╯
  TypeError: github.apps.getInstallations is not a function
      at eachInstallation (/app/node_modules/stale/node_modules/probot-scheduler/index.js:74:29)

jizusun avatar Sep 29 '20 06:09 jizusun

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

stale[bot] avatar May 10 '21 18:05 stale[bot]

please fix this

rkoster avatar Jun 01 '21 13:06 rkoster

Works when downgrading probot to match: https://github.com/probot/stale/blob/master/package.json#L21

GitHub
A GitHub App built with Probot that closes abandoned Issues and Pull Requests after a period of inactivity. - probot/stale

rkoster avatar Jun 01 '21 14:06 rkoster

Hi @rkoster, @jakeswenson @jakeswenson, Have you resolved this issue ? Am still seeing this? Could you please share the fix ?

sgowroji avatar Dec 16 '22 07:12 sgowroji