GitHub App icon

GitHub App

Consume GitHub API using GitHub App authentication

Organization → Get Repositories

AI-generated

Overview

This node operation fetches repositories for a specified GitHub organization. It allows users to specify the organization owner and supports returning either all repositories or a limited number based on user input. This is useful for scenarios where you want to automate the retrieval of repository data from an organization, such as for reporting, monitoring, or integration with other tools.

Use Case Examples

  1. Retrieve all repositories of the 'n8n-io' organization to monitor project activity.
  2. Fetch a limited number of repositories from a specific organization for display in a dashboard.

Properties

Name Meaning
Repository Owner The GitHub organization owner whose repositories are to be fetched. It supports selection by list, URL, or name.
Return All Boolean flag to determine whether to return all repositories or limit the number of results.
Limit The maximum number of repositories to return when 'Return All' is false. The value ranges from 1 to 100.

Output

JSON

  • ``
    • id - The unique identifier of the repository.
    • name - The name of the repository.
    • full_name - The full name of the repository including the owner.
    • private - Indicates if the repository is private.
    • owner
      * login - The login name of the repository owner.
    • html_url - The URL to the repository on GitHub.
    • description - The description of the repository.
    • fork - Indicates if the repository is a fork.
    • created_at - The creation date of the repository.
    • updated_at - The last update date of the repository.
    • pushed_at - The last push date to the repository.

Dependencies

  • GitHub API authentication via GitHub App credentials

Troubleshooting

  • Ensure the 'Repository Owner' input is valid and correctly formatted as a GitHub organization name or URL.
  • If the node returns an authentication error, verify that the GitHub App credentials are correctly configured and have the necessary permissions to access the organization's repositories.
  • When 'Return All' is set to false, ensure the 'Limit' value is within the allowed range (1-100).
  • If the node fails with a 404 error, check that the specified organization exists and the authenticated GitHub App has access to it.

Links

Discussion