Intellij IDEA 在查看 GitHub PR 的时候提示不能载入 data 错误

在通过 Intellij IDEA 查看可用的 PR 的时候,你可能会遇到下面的错误:

Can't load data from GitHub
[Although you appear to have the correct authorization credentials, the `cwiki-us-spring` organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited. For more information on these restrictions, including how to whitelist this app, visit https://docs.github.com/articles/restricting-access-to-your-organization-s-data/].

提示的错误信息如上。

上面的提示内容是因为你的仓库的限制,导致你没有办法查看特定的仓库的 PR。

原因和解决办法

这个问题的原因是因为仓库的限制导致你没有办法通过 Intellij IDEA 来查看。

你可以通过设置你的 Organization 的 Third-party application access policy 被设置为 Access restricted

你可以通过删除这个 Access restricted,然后再次在 Intellij IDEA 上刷新就可以看到可用的 PR 了。

当然这个前提是你需要有 GitHub Organization 的权限才可以。

返回 Intellij IDEA 后重新刷新。

重新刷新后,可以查看已有在 GitHub 上的 PR。

https://www.ossez.com/t/intellij-idea-github-pr-data/809

原文地址:https://www.cnblogs.com/huyuchengus/p/14227382.html