We have a page for our integration that lists some getting-started steps. We would like to display on the page whether or not the integration has been installed on the repository they’re trying to work on. This is useful because many of our users are members of a large org that hasn’t necessarily installed the integration on their repository and they’re not admins of the org, so they can’t go check themselves. We have discussed the following options:
- Maintain a table ourselves of
org/repo -> installationIdmappings that we update when install events are fired. This will also involve some sort of batch that syncs the table from time to time, since webhooks will end up getting dropped, etc.
- Attempt to perform an action only an installed integration could perform and catch the error – replying that the integration is not installed on the repository if so.
Is there a more straightforward way of doing this? Perhaps an api endpoint that returns true or false about whether your integration is installed?
I guess this was just a long way of asking if there is a
org/repo -> installationId endpoint and if not, can one be created?