[!env:CHEZMOI_GITHUB_TOKEN] skip '$CHEZMOI_GITHUB_TOKEN not set'

# test gitHubKeys template function
exec chezmoi execute-template '{{ (index (gitHubKeys "twpayne") 0).Key }}'
stdout ^ssh-rsa

# test gitHubLatestRelease template function
exec chezmoi execute-template '{{ (gitHubLatestRelease "twpayne/chezmoi").TagName }}'
stdout ^v2\.

# test gitHubLatestTag template function
exec chezmoi execute-template '{{ (gitHubLatestTag "twpayne/chezmoi").Name }}'
stdout ^v2\.
