Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Give clearer error when app isn't installed #35

@kousu

Description

@kousu

I spent a while puzzling over this error

Screenshot 2022-04-09 at 02-13-49 Sync Upstream · neuropoly_gitea@fb17c4b

Eventually I debugged it and figured out it was failing in

} = await octokit.rest.apps.getRepoInstallation({ owner, repo }));

which is because I'd neglected to Install the OAuth app I'd created to my repo.

Do you think there's a way to make this clearer? Could we put an extra try-catch around that line with a link to https://docs.github.com/en/developers/apps/managing-github-apps/installing-github-apps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions