GitIngest
Open a selected GitHub repository in GitIngest.
By Adam Hart
Available in ActionClip 2.3.3 and above. Download the action file, open it in ActionClip, then review it before choosing Add Action. Get ActionClip if you haven’t installed it yet.
What it does
Select one GitHub repository URL to open its GitIngest page in your default browser. GitIngest can turn an accessible repository into a text digest for use with an AI assistant. This action opens the website without changing your selected text or showing a success popup. Repository paths, query parameters, and fragments are preserved. Invalid selections show an error.
How to use it
- Available in ActionClip 2.3.3 and above.
- Choose Download action and open the downloaded .actionclip file.
- Review the action and choose Add Action.
- Select the text you want to use and choose GitIngest.
Requirements
ActionClip 2.3.3 or later, an internet connection, and a default browser. The repository must be accessible through GitIngest.
Privacy
Opens gitingest.com in your browser with the complete converted repository URL, including any query parameters and fragment. GitIngest receives the repository URL and your browser may send normal website information. This action does not read repository files or send an API key.
Example
Input
https://github.com/yt-dlp/yt-dlpOutput
Opens https://gitingest.com/yt-dlp/yt-dlp in your default browser.View action source
selected_url={{selected_text}}
scheme=${selected_url%%://*}
address=${selected_url#*://}
host=${address%%/*}
repository_path=${address#*/}
repository_pattern='^[A-Za-z0-9][A-Za-z0-9-]*/[A-Za-z0-9_.-]+([/?#][^[:space:]\\]*)?$'
repository_name=${repository_path#*/}
repository_name=${repository_name%%[/?#]*}
if [[ "$selected_url" != *://* || ( "${scheme:l}" != http && "${scheme:l}" != https ) || ( "${host:l}" != github.com && "${host:l}" != www.github.com ) || ! "$repository_path" =~ "$repository_pattern" || "$repository_name" == . || "$repository_name" == .. ]]; then
printf '%s\n' 'Select one GitHub repository URL.' >&2
exit 1
fi
target_url="https://gitingest.com/$repository_path"
open "$target_url" >/dev/null