You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+24-9Lines changed: 24 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,27 +6,42 @@
6
6
7
7
Hi! Thanks for your interest in contributing to the GitHub CLI!
8
8
9
-
Given that this project is very early and still in beta, we're only accepting pull requests for bug fixes right now. We'd love to
10
-
hear about ideas for new features as issues, though!
9
+
We accept pull requests for bug fixes and features where we've discussed the approach in an issue and given the go-ahead for a community member to work on it. We'd also love to hear about ideas for new features as issues.
11
10
12
11
Please do:
13
12
14
13
* open an issue if things aren't working as expected
15
14
* open an issue to propose a significant change
16
-
* open a PR to fix a bug
15
+
* open a pull request to fix a bug
16
+
* open a pull request to fix documentation about a command
17
+
* open a pull request if a member of the GitHub CLI team has given the ok after discussion in an issue
17
18
18
-
## Submitting a bug fix
19
+
Please avoid:
19
20
20
-
0. Clone this repository
21
-
0. Create a new branch: `git checkout -b my-branch-name`
22
-
0. Make your change, add tests, and ensure tests pass
23
-
0. Make a PR: `gh pr create --web`
21
+
* adding installation instructions specifically for your OS/package manager
22
+
23
+
## Building the project
24
+
25
+
Prerequisites:
26
+
- Go 1.14
27
+
28
+
Build with: `make` or `go build -o bin/gh ./cmd/gh`
29
+
30
+
Run the new binary as: `./bin/gh`
31
+
32
+
Run tests with: `make test` or `go test ./...`
33
+
34
+
## Submitting a pull request
35
+
36
+
1. Create a new branch: `git checkout -b my-branch-name`
37
+
1. Make your change, add tests, and ensure tests pass
38
+
1. Submit a pull request: `gh pr create --web`
24
39
25
40
Contributions to this project are [released][legal] to the public under the [project's open source license][license].
26
41
27
42
Please note that this project adheres to a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms.
28
43
29
-
We generate manual pages from source on every release! You do not need to submit PRs for those specifically; the docs will get updated if your PR gets accepted.
44
+
We generate manual pages from source on every release. You do not need to submit pull requests for documentation specifically; manual pages for commands will automatically get updated after your pull requests gets accepted.
Copy file name to clipboardExpand all lines: README.md
+30-9Lines changed: 30 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# gh - The GitHub CLI tool
1
+
# GitHub CLI
2
2
3
3
`gh` is GitHub on the command line, and it's now available in beta. It brings pull requests, issues, and other GitHub concepts to
4
4
the terminal next to where you are already working with `git` and your code.
@@ -7,7 +7,7 @@ the terminal next to where you are already working with `git` and your code.
7
7
8
8
## Availability
9
9
10
-
While in beta, GitHub CLI is available for repos hosted on GitHub.com only. It does not currently support repositories hosted on GitHub Enterprise Server or other hosting providers.
10
+
While in beta, GitHub CLI is available for repos hosted on GitHub.com only. It does not currently support repositories hosted on GitHub Enterprise Server or other hosting providers. We are planning support for GitHub Enterprise Server after GitHub CLI is out of beta (likely toward the end of 2020), and we want to ensure that the API endpoints we use are more widely available for GHES versions that most GitHub customers are on.
11
11
12
12
## We need your feedback
13
13
@@ -21,26 +21,40 @@ And if you spot bugs or have features that you'd really like to see in `gh`, ple
21
21
22
22
-`gh pr [status, list, view, checkout, create]`
23
23
-`gh issue [status, list, view, create]`
24
+
-`gh repo [view, create, clone, fork]`
25
+
-`gh config [get, set]`
24
26
-`gh help`
25
27
26
-
Check out the [docs][] for more information.
28
+
## Documentation
27
29
30
+
Read the [official docs](https://cli.github.com/manual/) for more information.
28
31
29
32
## Comparison with hub
30
33
31
34
For many years, [hub][] was the unofficial GitHub CLI tool. `gh` is a new project for us to explore
32
35
what an official GitHub CLI tool can look like with a fundamentally different design. While both
33
36
tools bring GitHub to the terminal, `hub` behaves as a proxy to `git` and `gh` is a standalone
34
-
tool.
37
+
tool. Check out our [more detailed explanation](/docs/gh-vs-hub.md) to learn more.
35
38
36
39
37
-
## Installation and Upgrading
40
+
<!-- this anchor is linked to from elsewhere, so avoid renaming it -->
41
+
## Installation
38
42
39
43
### macOS
40
44
45
+
`gh` is available via Homebrew and MacPorts.
46
+
47
+
#### Homebrew
48
+
41
49
Install: `brew install github/gh/gh`
42
50
43
-
Upgrade: `brew update && brew upgrade gh`
51
+
Upgrade: `brew upgrade gh`
52
+
53
+
#### MacPorts
54
+
55
+
Install: `sudo port install gh`
56
+
57
+
Upgrade: `sudo port selfupdate && sudo port upgrade gh`
44
58
45
59
### Windows
46
60
@@ -80,9 +94,16 @@ MSI installers are available for download on the [releases page][].
80
94
Install and upgrade:
81
95
82
96
1. Download the `.deb` file from the [releases page][]
0 commit comments