Skip to content

Instantly share code, notes, and snippets.

@JoshuaTheMiller
Last active December 11, 2023 17:55
Show Gist options
  • Select an option

  • Save JoshuaTheMiller/591c1fe0dd991c26fa7c1fa3b7df8e42 to your computer and use it in GitHub Desktop.

Select an option

Save JoshuaTheMiller/591c1fe0dd991c26fa7c1fa3b7df8e42 to your computer and use it in GitHub Desktop.
LinkedIn Comments in need of Formatting
OriginalPost https://www.linkedin.com/feed/update/urn:li:activity:7139016138994126848?utm_source=share&utm_medium=member_desktop

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment