mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Merge pull request #1727 from PowerShell/SteveL-MSFT-patch-1
Update readme.md
This commit is contained in:
commit
49756c375a
1 file changed
+3
-3
@@ -1,4 +1,4 @@
|
||||
This demo shows interacting with the Github API via Invoke-RestMethod.
|
||||
This demo shows interacting with the Github API via Invoke-RestMethod.
|
||||
NOTE: A repo URL must be specified in these scripts and a Github PAT token with access to the repo must be generated and specified
|
||||
|
||||
rest.ps1:
|
||||
@@ -6,8 +6,8 @@ Invoke-RestMethod is used to get the json of a repo as a PowerShell object,
|
||||
the object is then manipulated and the "private" parameter is changed to 'false'.
|
||||
The object is converted back to json formating and Posted back to the repo API
|
||||
|
||||
The benefit of PS is shown at the end of the script with PS objects.
|
||||
The benefit of PowerShell is shown at the end of the script with PS objects.
|
||||
Enabling users to get info on multiple repos and then sort that data as objects.
|
||||
|
||||
curlDemo.txt:
|
||||
This shos the equavilent bash commmands to change the private status of a Github repo
|
||||
This shows the equavilent bash commmands to change the private status of a Github repo
|
||||
Reference in new issue
Block a user