@mattpolzin/harmony 6.0.0 → 6.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +36 -25
  2. package/harmony +1733 -1686
  3. package/man/harmony.1 +24 -83
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,9 @@
1
- % harmony(1) Version 6.0.0 | Harmony User's Guide
1
+ <!--
2
+ This file is auto-generated.
3
+
4
+ Edit the files in the `docs/` directory and run `make README.md` and `make
5
+ manpage` to regenerate those respective files.
6
+ -->
2
7
 
3
8
  # NAME
4
9
  Harmony - Harmonize with coworkers around GitHub reviewing
@@ -56,24 +61,8 @@ to run all the tests:
56
61
  - `xargs`
57
62
 
58
63
  ## Installation
59
- For any installation, you need to have a GitHub
60
- [Personal Access Token](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token).
61
-
62
- Your Personal Access Token should have the following permissions:
63
- - `repo` (Full control of private repositories)
64
- - `read:org` (Read org and team membership, read org projects)
65
- - `read:user`
66
- - `user:email`
67
- - `read:discussion`
68
- - `read:enterprise` (Read enterprise profile data)
69
-
70
- You can either add the PAT to your environment as the `GITHUB_PAT` (or
71
- alternatively `GH_TOKEN`) variable (perhaps exporting it from your shell
72
- resource file or profile) or you can store your PAT in Harmony's config file.
73
- The first time you start Harmony, it will ask you to configure your PAT if you
74
- don't want to use the Environment variable. You only need one of (a) the ENV var
75
- and (b) the config property and the environment variable will take precedence if
76
- you have both set.
64
+ You can install Harmony in several different ways, though by far the easiest is
65
+ to install it via the Node Package Manager (NPM).
77
66
 
78
67
  ### NPM
79
68
  You can install Harmony via npm directly by running
@@ -131,21 +120,40 @@ globally:
131
120
  npm install --global
132
121
  ```
133
122
 
134
- ### Bash completion
123
+ ## Bash completion
135
124
  Set up Bash completion by adding the following to your Bash resource file or
136
125
  profile:
137
126
  ```shell
138
127
  eval "$(harmony --bash-completion-script)"
139
128
  ```
140
129
 
141
- ### Zsh completion
130
+ ## Zsh completion
142
131
  Zsh completion is supported via `bashcompinit` and can be loaded by adding the
143
132
  following to your Zsh resource file or profile:
144
133
  ```shell
145
134
  eval "$(harmony --zsh-completion-script)"
146
135
  ```
147
136
 
148
- ## Usage
137
+ ## Initial configuration
138
+ For most things harmony does, you need to have a GitHub
139
+ [Personal Access Token](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token).
140
+
141
+ Your Personal Access Token should have the following permissions:
142
+ - `repo` (Full control of private repositories)
143
+ - `read:org` (Read org and team membership, read org projects)
144
+ - `read:user`
145
+ - `user:email`
146
+ - `read:discussion`
147
+ - `read:enterprise` (Read enterprise profile data)
148
+
149
+ You can either add the PAT to your environment as the `GITHUB_PAT` (or
150
+ alternatively `GH_TOKEN`) variable (perhaps exporting it from your shell
151
+ resource file or profile) or you can store your PAT in Harmony's config file.
152
+ The first time you start Harmony, it will ask you to configure your PAT if you
153
+ don't want to use the Environment variable. You only need one of (a) the ENV var
154
+ and (b) the config property and the environment variable will take precedence if
155
+ you have both set.
156
+
149
157
  The first time you start Harmony in any particular folder, you will be asked to
150
158
  provide some information about the GitHub repository you are working with. This
151
159
  information is stored in a file named `harmony.json` in the current working
@@ -177,9 +185,10 @@ Would you like harmony to request team reviews in addition to individuals when i
177
185
  Creating config...
178
186
  ```
179
187
 
180
- Once configured, Harmony supports the following commands: `config`, `branch`,
181
- `pr`, `quick`, `label`, `request` (also aliased to `rq`), `contribute`,
182
- `whoami`, `reflect`, `list`, `graph`, `health`, and `sync`.
188
+ ## Usage
189
+ Once configured, Harmony supports the following commands that are documented
190
+ below: `config`, `branch`, `pr`, `quick`, `label`, `request` (also aliased to
191
+ `rq`), `contribute`, `whoami`, `reflect`, `list`, `graph`, `health`, and `sync`.
183
192
 
184
193
  **Note on color output:**
185
194
  Harmony uses colored output for some commands. You can adjust these colors
@@ -300,6 +309,7 @@ Graph all open PRs grouped by the month when each was created.
300
309
  The idea is that a healthy repository does not have many old PRs still open
301
310
  because those PRs represent effort spent by developers that hasn't yet paid off.
302
311
 
312
+ <!-- image location is intentionally relative to repository root -->
303
313
  ![Health Screenshot](./docs/images/health.png)
304
314
 
305
315
  ## `help [subcommand]`
@@ -390,6 +400,7 @@ description.
390
400
  ## `reflect`
391
401
  Show a summary of your review requests and authored pull requests.
392
402
 
403
+ <!-- image location is intentionally relative to repository root -->
393
404
  ![Reflect Screenshot](./docs/images/reflect.png)
394
405
 
395
406
  ## `request {team-slug | +user-login} [options]`