diff --git a/git_create_and_delete_repo_from_cli.txt b/git_create_and_delete_repo_from_cli.txt deleted file mode 100644 index b48d9033..00000000 --- a/git_create_and_delete_repo_from_cli.txt +++ /dev/null @@ -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 diff --git a/git_from_cli.txt b/git_from_cli.txt new file mode 100644 index 00000000..c6dc8c21 --- /dev/null +++ b/git_from_cli.txt @@ -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 " \ + 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