GitHub Repository List

Overview

The GitHub Repository List Snap lists repositories accessible to the authenticated account, outputting one document per repository.

Use the Organization field to scope results to a specific organization, or leave it blank to return all repositories accessible to the account. Use Name include and Name exclude to filter results by regular expression patterns applied to the repository name.


GitHub Repository List Snap overview

Supported Accounts

Prerequisites

None.

Snap views

Type Description Examples of upstream and downstream Snaps
Input

This Snap has at most one document input view.

When connected, field values from the incoming document can be referenced in expression-enabled fields using the $ notation.

Output

This Snap has one document output view.

Each accessible repository is emitted as a separate document containing fields such as name, full_name, owner, description, default_branch, visibility, fork and archived flags, timestamps, and a direct link URL.

Learn more about Error handling.

Snap settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description
Label*

String

Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline.

Default value: GitHub Repository List

Organization

String/Expression

Enter the name of the GitHub organization whose repositories you want to list. Leave blank to return all repositories accessible to the authenticated account, including personal and organization repositories.

Default value: None

Example: SnapLogic

Type

Dropdown list
Select the repository scope to apply when listing repositories.
  • all: Returns all accessible repositories.
  • public: Returns only public repositories.
  • private: Returns only private repositories.
  • forks: Returns only repositories that are forks of another repository.
  • sources: Returns only original repositories, excluding forks.
  • member: Returns repositories the authenticated user belongs to. The Organization field must be blank when using this option.

Default value: all

Example: public

Name include

String/Expression

Enter a regular expression to retain only repositories whose names match the pattern. The match is case-insensitive. Leave blank to include all repositories.

Default value: None

Example: snap.*

Name exclude

String/Expression

Enter a regular expression to exclude repositories whose names match the pattern. The match is case-insensitive. Applied after Name include. Leave blank to exclude nothing.

Default value: None

Example: .*test.*

Snap execution

Dropdown list
Choose one of the three modes in which the Snap executes. Available options are:
  • Validate & Execute: Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.
  • Execute only: Performs full execution of the Snap during pipeline execution without generating preview data.
  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Default value: Validate & execute

Troubleshooting

Error Reason Resolution
Invalid regular expression: <pattern> The value entered in Name include or Name exclude is not a valid regular expression. Correct the regular expression syntax and run the pipeline again. For example, use snap.* to match names starting with "snap".
Invalid organization: <value> The Organization field contains a slash or other invalid character. Enter a simple organization name without slashes, for example SnapLogic.