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

Handle incorrect return type from Octokit paginate plugin #12791

Merged
merged 2 commits into from Jul 25, 2022
Merged

Handle incorrect return type from Octokit paginate plugin #12791

merged 2 commits into from Jul 25, 2022

Conversation

ericvoshall
Copy link
Contributor

@ericvoshall ericvoshall commented Jul 22, 2022

Hey, I just made a Pull Request!

Handle an issue with an incorrect return type from the Octokit paginate plugin. This fixes #12761.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

Signed-off-by: Eric Voshall <6836155+ericvoshall@users.noreply.github.com>
Signed-off-by: Eric Voshall <6836155+ericvoshall@users.noreply.github.com>
@github-actions
Copy link
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage/integration packages/integration patch v1.2.2

@benjdlambert
Copy link
Member

Is this something to do with the code requiring a later version of octokit than what you have installed or are the types outdated? It would be interesting to know a little more what's going on here.

Copy link
Member

@benjdlambert benjdlambert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's get this in for now, as I want to get this fixed and shipped for tomorrow at least.

@benjdlambert
Copy link
Member

Thanks for this! 🙏

@benjdlambert benjdlambert merged commit 13fe10a into backstage:master Jul 25, 2022
@ericvoshall
Copy link
Contributor Author

Thanks for the merge!

Is this something to do with the code requiring a later version of octokit than what you have installed or are the types outdated? It would be interesting to know a little more what's going on here.

It's an issue with the types - there's an issue open in the project here for the same thing.

@ericvoshall ericvoshall deleted the fix/12761 branch July 25, 2022 13:25
@nodify-at
Copy link
Contributor

@benjdlambert do you plan to release a hotfix for this change or should we use the next version? Our catalog scanning is failing because it can not handle the repositories.

@benjdlambert
Copy link
Member

1.5 is planned for next week, so we will release it then. If you need it sooner then feel free to jump on the next release train. Using backstage-cli versions:bump --release next should work 🤞

@mwz
Copy link
Contributor

mwz commented Aug 11, 2022

Hi, any chance this could be released as a patch in the 1.4 series while we wait for 1.5 as it's causing issues in the latest stable release?

@nodify-at
Copy link
Contributor

nodify-at commented Aug 11, 2022

@mwz I didn't try it but you can force via yarn to use an older version of octokit.

  "resolutions": {
     `"@octokit/rest": "^18.12.0"`
  }

@ericvoshall
Copy link
Contributor Author

We used patch-package to fix this until the official release comes out.

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.

Error reading GitHub URLs
4 participants