Перейти к основному содержимому Перейти к дополнительному содержимому

GitHub

The Qlik GitHub connector uses the GitHub REST API to access data from your GitHub repositories, such as the change details of a single commit.

Ways to access your data

To access your GitHub data create a connection and select GitHub as your data source. You are redirected to a GitHub login page. Log into your GitHub account using your credentials to receive an authentication code, and enter this code into the connector.

Creating a data source connection

Loading data from tables

After you authenticate the connector with your account credentials, use the tables to fetch your data. Some tables are preconfigured to access a specific set of data while others let you create custom queries. The table below outlines some of the use cases for some of the tables that are available.

Tables that can be loaded
Table Available in Description
Branches Диспетчер данных and Редактор загрузки данных Lists all branches for a specified repository.
Commits Диспетчер данных and Редактор загрузки данных Lists repository commits after a specified date. The table returns a list of commits and the associated SHA key, which is required to run other tables.
FileChanges Редактор загрузки данных Lists which files were changed during a single commit.
Issues Диспетчер данных and Редактор загрузки данных List issues for a repository.
ListTags Диспетчер данных and Редактор загрузки данных List tags for a repository.
OrganisationRepositories Диспетчер данных and Редактор загрузки данных Fetch the list of repositories for a specified organization. This table requires the name of the organization.
PullRequests Редактор загрузки данных Lists all pull requests for a specified repository.
PullRequestsComments Редактор загрузки данных List comments on a pull request.
PullRequestsCommits Редактор загрузки данных List commits on a pull request. The response includes a maximum of 250 commits (API limit).
PullRequestsFiles Редактор загрузки данных List pull requests files. The response includes a maximum of 300 files (API limit).
PullRequestsReviews Редактор загрузки данных List reviews on a pull request.
RateLimit Редактор загрузки данных Shows your current API rate limit status.
Releases Диспетчер данных and Редактор загрузки данных Information about published releases. This returns a list of releases, which does not include regular Git tags that have not been associated with a release.
RepositoryComments Диспетчер данных and Редактор загрузки данных List comments on all pull requests in a repository.
RequestedUserReview Редактор загрузки данных List user review requests.
SingleCommitStats Редактор загрузки данных Use this table to fetch the change stats for a single commit.
Statuses Диспетчер данных, Редактор загрузки данных and standalone Shows the commit statuses.
StatusHistory Диспетчер данных, Редактор загрузки данных and standalone Shows the statuses history.
UserRepositories Диспетчер данных and Редактор загрузки данных Use this table to fetch the list of repositories for the authenticated user. The repository names are required to run other tables.

To select and load data from a table, enter the required table parameters and click Preview data. Required parameters are marked with an asterisk (*) in the dialog. The table fields are displayed under the Data preview tab. You can select fields individually by selecting the box beside each field name. Select Insert script after you have made your selection.

Creating a connection and selecting data

Listing issues with the Issues table

The Issues table lets you list issues for a specific repository, using the repository name and the date range of the query. You can use the Issue State menu to limit the query to the type of issues you are interested in. Your options are:

  • open
  • closed
  • all

Working with the GitHub API quota limits

The Веб-коннекторы Qlik use the GitHub API to extract data from GitHub and load it into your Qlik Sense app. While reloading your GitHub-based app, you might receive an error message that the connector has reached the GitHub API rate limit and that all subsequent API calls will fail until the connector falls back under the throttling limit. If you receive this error message, then you have exceeded one of the API rate limits.

Примечание к подсказкеUse the RateLimit table to see your remaining API quota.

You receive an error message that you have reached the API rate limit

Reference - GitHub documentation

You can refer to the GitHub developer documentation to learn more about the requirements and restriction imposed by the GitHub API.

Troubleshooting

You receive an error message that you have reached the API rate limit

Возможная причина

You have exceeded the API limits that are imposed on the Веб-коннекторы Qlik by the GitHub API.

Предлагаемые меры

To reduce the impact of reaching the API rate limits, develop your app with the following in mind:

  • Extract only the data you need.
  • Reload one GitHub-based application at a time.
  • Ensure that loops in your script that make API calls will not result in infinite loops.

Помогла ли вам эта страница?

Если вы обнаружили какую-либо проблему на этой странице и с ее содержанием — будь то опечатка, пропущенный шаг или техническая ошибка, сообщите нам об этом, чтобы мы смогли ее исправить!