This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
hello, all!
i recently wanted to automate uploading and modifying github files, and the rest api was a good fit for me.
here is the instruction i found on how to generate your own token
https://channel9.msdn.com/Blogs/trevor-powershell/Automating-the-GitHub-REST-API-Using-PowerShell
and here's my result
https://github.com/gangstanthony/PowerShell/blob/master/GithubRestApi.ps1
it contains the following functions that work as you might expect
git-createfile
git-getfile
git-updatefile
git-deletefile
git-uploadfile
and here's a link to the rest api reference if you want to build out something else
https://docs.github.com/en/rest/reference/repos#get-repository-content
*edit: updated tutorial url:
Subreddit
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/PowerShell/...