Extract Metadata
AI-generatedSummary
Extract rich metadata from a specified GitHub repository branch, including file counts, language breakdowns, file hashes, timestamps, git commit info, directory structure, technology detection, and repository statistics, depending on the selected metadata depth.
Inputs
- Repository Owner (required) — GitHub repository owner (user or organization) to analyze.
- Repository Name (required) — Name of the GitHub repository to analyze.
- Branch (required) — Git branch on the repository to analyze; defaults to 'main'.
- Metadata Depth (required) — Extent of metadata to extract, ranging from 'Basic' (file count and language only) to 'Complete' (all available metadata).
- Additional Options — Optional settings: limit scanned files (Max Files), filter by file extensions, exclude directories by patterns, include SHA256 hashes, file modification timestamps, git commit information (detailed+ depth), detected technologies (detailed+ depth), and repository metadata such as stars, forks, license, etc.
Output shape
a single JSON object
Returns a JSON object containing metadata about the GitHub repo according to the selected depth and options. The structure includes file details, language data, optionally hashes, timestamps, git commit info, technologies detected, and repository info. Errors produce an object with an 'error' message.
Examples
Example 1: Extract standard metadata with hashes and timestamps for a repository's main branch.
Set Repository Owner and Repository Name, use default branch 'main', select 'Standard' metadata depth, and optionally customize additional options like Max Files or file extensions.