Limitations
- Like other GitHub actions, calls are subject to GitHub API rate limits. Heavy automation or tight loops can cause intermittent failures until rate limits reset.
Prerequisites
- Your admin must install and configure the GitHub connector, add the GitHub actions pack under Admin > Actions, and enable this action.
- A GitHub app must be installed on the relevant organization(s) and linked to the correct GitHub datasource in the Glean admin console.
Supported parameters
| Parameters | Type | Description |
|---|---|---|
| Include anonymous | String | Anonymous access level filter or flag. |
| Owner | String | Required. Owner of the repository. |
| Page | Integer | Page number for paginated results. Defaults to 1. |
| Results per page | Integer | Number of results per page. Defaults to 30. |
| Repository | String | Required. Name of the repository. |
Usage example
You want to identify the top contributors to your open source project to recognize their work in the monthly newsletter. Instruction to an agent: “Show me all contributors to the openai/gpt-4 repository, including anonymous contributors. Get the first 50 contributors.” Resulting behavior:-
Calls List repository contributors with:
-
Ownerset to “openai”. -
Repositoryset to “gpt-4”. -
Include anonymousset to true to include anonymous contributors. -
Results per pageset to 50 to retrieve a larger batch. -
Pageset to 1 (default) for the first page.
-
-
Retrieves contributor data including:
- Contributor username or identifier
- Contribution count
- Profile information
- Whether the contributor is anonymous
- Presents the list of contributors sorted by contribution count.
- User can review the list and identify top contributors for recognition.
Results per page to control batch size (default is 30). For repositories with many contributors, use the Page parameter to iterate through multiple pages. The action returns contributors based on the GitHub API’s definition, which typically includes users with committed code that was merged into the repository.
Troubleshooting
Authentication or authorization failure
Authentication or authorization failure
FAQs
Can I include anonymous contributors in the results?
Can I include anonymous contributors in the results?
Yes. Use the
Include anonymous parameter to control whether anonymous contributors are included in the results.