From 30c143022edac868339be3a367e98d7238326ebd Mon Sep 17 00:00:00 2001 From: Antonio Bustos Date: Thu, 13 Feb 2020 09:27:55 +0100 Subject: [PATCH 1/6] Add `gh` GitHub cli page --- pages/common/gh.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/gh.md diff --git a/pages/common/gh.md b/pages/common/gh.md new file mode 100644 index 00000000000000..8ab41239ed3966 --- /dev/null +++ b/pages/common/gh.md @@ -0,0 +1,32 @@ +# gh + +> Work seamlessly with GitHub from the command line. +> More information: . + +- View and filter a repository’s open issues. + +`gh issue list` + +- Create a new issue + +`gh issue create` + +- View an issue in the browser + +`gh issue view` + +- Create a pull request. + +`gh pr create` + +- Check out pull requests locally. + +`gh pr checkout` + +- Check on the status of your pull requests. + +`gh pr status` + +- View a pull request in the browser + +`gh pr view` From be98992cdfcc4722711680bf3e09a34479a02262 Mon Sep 17 00:00:00 2001 From: Antonio Bustos Date: Thu, 13 Feb 2020 09:54:44 +0100 Subject: [PATCH 2/6] Fix example description colon issue (linting) --- pages/common/gh.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/common/gh.md b/pages/common/gh.md index 8ab41239ed3966..8363549522a902 100644 --- a/pages/common/gh.md +++ b/pages/common/gh.md @@ -3,30 +3,30 @@ > Work seamlessly with GitHub from the command line. > More information: . -- View and filter a repository’s open issues. +- View and filter a repository’s open issues: `gh issue list` -- Create a new issue +- Create a new issue: `gh issue create` -- View an issue in the browser +- View an issue in the browser: `gh issue view` -- Create a pull request. +- Create a pull request: `gh pr create` -- Check out pull requests locally. +- Check out pull requests locally: `gh pr checkout` -- Check on the status of your pull requests. +- Check on the status of your pull requests: `gh pr status` -- View a pull request in the browser +- View a pull request in the browser: `gh pr view` From 95b407300ff136da31c4f6698d81cb69012b4b4f Mon Sep 17 00:00:00 2001 From: Antonio Bustos Date: Thu, 13 Feb 2020 12:51:37 +0100 Subject: [PATCH 3/6] Update descriptions --- pages/common/gh.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/gh.md b/pages/common/gh.md index 8363549522a902..538c20b9db6216 100644 --- a/pages/common/gh.md +++ b/pages/common/gh.md @@ -3,7 +3,7 @@ > Work seamlessly with GitHub from the command line. > More information: . -- View and filter a repository’s open issues: +- View and filter repository’s open issues: `gh issue list` @@ -23,7 +23,7 @@ `gh pr checkout` -- Check on the status of your pull requests: +- Check the status of your pull requests: `gh pr status` From 556b2af4de9ea03e7a99ab669a30612b9278c000 Mon Sep 17 00:00:00 2001 From: Antonio Bustos Date: Thu, 13 Feb 2020 12:53:03 +0100 Subject: [PATCH 4/6] Re-arrange order of descriptions --- pages/common/gh.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pages/common/gh.md b/pages/common/gh.md index 538c20b9db6216..bc03b845949ac2 100644 --- a/pages/common/gh.md +++ b/pages/common/gh.md @@ -3,22 +3,14 @@ > Work seamlessly with GitHub from the command line. > More information: . -- View and filter repository’s open issues: - -`gh issue list` - -- Create a new issue: - -`gh issue create` - -- View an issue in the browser: - -`gh issue view` - - Create a pull request: `gh pr create` +- View a pull request in the browser: + +`gh pr view` + - Check out pull requests locally: `gh pr checkout` @@ -27,6 +19,14 @@ `gh pr status` -- View a pull request in the browser: +- Create a new issue: -`gh pr view` +`gh issue create` + +- View and filter repository’s open issues: + +`gh issue list` + +- View an issue in the browser: + +`gh issue view` From 4de8dd9c0f85a051d6b3e31549468d34dbd5cc97 Mon Sep 17 00:00:00 2001 From: Antonio Bustos Date: Thu, 13 Feb 2020 18:19:47 +0100 Subject: [PATCH 5/6] Add missing required arguments --- pages/common/gh.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/gh.md b/pages/common/gh.md index bc03b845949ac2..e6e16118988103 100644 --- a/pages/common/gh.md +++ b/pages/common/gh.md @@ -9,11 +9,11 @@ - View a pull request in the browser: -`gh pr view` +`gh pr view {{1}}` - Check out pull requests locally: -`gh pr checkout` +`gh pr checkout {{2}}` - Check the status of your pull requests: @@ -29,4 +29,4 @@ - View an issue in the browser: -`gh issue view` +`gh issue view {{3}}` From 4f5e60e10ea42f04295a9b9160ebcd9f1a09dfca Mon Sep 17 00:00:00 2001 From: Antonio Bustos Date: Thu, 13 Feb 2020 19:54:04 +0100 Subject: [PATCH 6/6] Use word numbers instead --- pages/common/gh.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/gh.md b/pages/common/gh.md index e6e16118988103..89081c975d523a 100644 --- a/pages/common/gh.md +++ b/pages/common/gh.md @@ -9,11 +9,11 @@ - View a pull request in the browser: -`gh pr view {{1}}` +`gh pr view {{pr_number}}` - Check out pull requests locally: -`gh pr checkout {{2}}` +`gh pr checkout {{pr_number}}` - Check the status of your pull requests: @@ -29,4 +29,4 @@ - View an issue in the browser: -`gh issue view {{3}}` +`gh issue view {{issue_number}}`