♻️ Renamed txt file on git cli, exemplified pull
This commit is contained in:
parent
0ae3afbf81
commit
bd8d6f8600
2 changed files with 16 additions and 5 deletions
|
|
@ -1,5 +0,0 @@
|
||||||
# Create github repository from cli
|
|
||||||
curl -u $USER:$GH_TOKEN https://api.github.com/user/repos -d '{"name": "testrepo"}'
|
|
||||||
|
|
||||||
# Delete github repository from cli
|
|
||||||
curl -i -H 'Authorization: token $GH_TOKEN' -X 'DELETE' https://api.github.com/repos/$USER/testrepo --http1.1
|
|
||||||
16
git_from_cli.txt
Normal file
16
git_from_cli.txt
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
# Create github repository from cli
|
||||||
|
curl -u $USER:$GH_TOKEN https://api.github.com/user/repos -d '{"name": "testrepo"}'
|
||||||
|
|
||||||
|
# Delete github repository from cli
|
||||||
|
curl -i -H 'Authorization: token $GH_TOKEN' -X 'DELETE' https://api.github.com/repos/$USER/testrepo --http1.1
|
||||||
|
|
||||||
|
# View pull requests
|
||||||
|
curl https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/pulls
|
||||||
|
|
||||||
|
# Create pull request
|
||||||
|
curl \
|
||||||
|
-X POST \
|
||||||
|
-H "Accept: application/vnd.github+json" \
|
||||||
|
-H "Authorization: token <TOKEN>" \
|
||||||
|
https://api.github.com/repos/OWNER/REPO/pulls \
|
||||||
|
-d '{"title":"Amazing new feature","body":"Please pull these awesome changes in!","head":"octocat:new-feature","base":"master"}' --http1.1
|
||||||
Loading…
Add table
Add a link
Reference in a new issue