From bd8d6f8600de4ba0cf5d2ec2311ddae1398acbe3 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Wed, 10 Aug 2022 07:11:12 -0700 Subject: [PATCH] :recycle: Renamed txt file on git cli, exemplified pull --- git_create_and_delete_repo_from_cli.txt | 5 ----- git_from_cli.txt | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 5 deletions(-) delete mode 100644 git_create_and_delete_repo_from_cli.txt create mode 100644 git_from_cli.txt 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