OriginalPost |
---|
This could depend on the version of GitHub you are using, but here is the API reference for what you want to do (their reference docs are pretty great!): https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#update-a-repository
# GitHub CLI api
# https://cli.github.com/manual/gh_api
gh api \
--method PATCH \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/OWNER/REPO \
-f homepage='https://TheLinkToYourSite.com' \
Where
- OWNER is replaced by the name of the Org/User the repo is under
- REPO is replaced by the name of the repo
- https://TheLinkToYourSite.com is replaced by your URL