Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

PR Triage stopped picking up new PRs and reviews #221

Closed
stevelacey opened this issue Feb 20, 2020 · 7 comments · Fixed by #222
Closed

PR Triage stopped picking up new PRs and reviews #221

stevelacey opened this issue Feb 20, 2020 · 7 comments · Fixed by #222

Comments

@stevelacey
Copy link

stevelacey commented Feb 20, 2020

Is your feature request related to a problem? Please describe.

I don't think we changed anything on our organization but PR Triage no longer labels things correctly at all:

  • New PRs are not labelled unreviewed, that consistently never happens
  • PRs are not relabelled when PRs are approved or changes requested, also never happens
    • Note: even if we apply the unreviewed label ourselves (no idea if this would matter)
  • PRs ARE relabelled correctly when merges happen... this seems to still work fine, any existing labels are removed and the PR: Merged label is added

Describe the solution you'd like

I would like PR Triage to work correctly as it did a couple of weeks ago 🙃

Describe alternatives you've considered

We've attempted reinstalling the app numerous times, my best guess is that something changes about the way hooks work, and now PR Triage is only picking up the merge hook? I am curious if anyone else is experiencing this or it's something unique about our organization.

@maestromac
Copy link

We're having the same issue too.

@allout58
Copy link
Contributor

I've had the issue recently too. Pulled down the the repo and set up a dev app for some debugging. It appears that Probot got updated again, changing the API so the app can't get the list of reviews anymore. I'll try to put together a PR shortly to fix it.

@allout58
Copy link
Contributor

If I'm reading the code correctly, Draft PRs should also get the correct label, it's just the labels that depend on looking at the actual reviews (the useful part) that are erroring.

allout58 added a commit to allout58/app that referenced this issue Feb 20, 2020
It seems like Octokit, the JS library for accessing the GitHub API, changed how Pull Requests are accessed, changing the name from `pullRequests` to `pulls`. This PR implements the name change

Closes pr-triage#221
@twomedia
Copy link

Experiencing this as well

@sotayamashita
Copy link
Member

sotayamashita commented Mar 3, 2020

@stevelacey @maestromac @allout58 @twomedia

I am sorry not to fix this issue very quickly but @allout58 created a pull request for it. 🎉 🙇
I am gonna think of the way to prevent the issue again.

@allout58
Copy link
Contributor

allout58 commented Mar 3, 2020

I think TypeScript could help, in that it would complain if things like this changed underneath the code. I'm more familiar with using TS completely, but I believe there is a way to get it to just run type checks on JS code

@sotayamashita
Copy link
Member

@allout58 I am thinking to migrate it with TypeScript. Let's discuss here #228

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants