Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,5 @@ We get the _ghInstallationId_ from **chatopsinstallations** table (_chatOpsInsta

We get the _ghArtifactId_, _ghArtifactType_ from the chatopssubscriptions table.

_ghInstallationId_ is used to get authorization to the github client which will be used to make the api calls to get details about the artifact (This will tell us if the app has been uninstalled from the repo/account after the subscription).

**The following details are passed to the GithubApi:**
* if _ghArtifactType_ is 'Repo': _ghArtifactId_ is passed, it contains the repository id.
* if _ghArtifactType_is 'Account': _ghArtifactId_ is passed, it contains the user id.


if the authorization is successfull, using the GithubAPI We will get the details about each subscription.

Results are displayed as hyperlinks. Text will be the full_name of the repository or the github account name. The hyperlinks will redirect to the repository or the github user account.

If the user is not signed in, the card will be the showing the message ***Not subscribe to any repositories or accounts.***
_ghInstallationId_ is used to get authorization to the github client which will be used to make the api calls to get details about the artifact (This will tell us if the app has been uninstalled from the repo/account after the subscription)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

test