@mattpolzin/harmony 2.4.1 → 2.6.0
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.
- package/README.md +13 -1
- package/harmony +1027 -688
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Your Personal Access Token should have the following permissions:
|
|
|
21
21
|
- `read:discussion`
|
|
22
22
|
- `read:enterprise` (Read enterprise profile data)
|
|
23
23
|
|
|
24
|
-
You can
|
|
24
|
+
You can either add the PAT to your environment as the `GITHUB_PAT` variable (perhaps exporting it from your shell resource file or profile) or you can store your PAT in Harmony's config file. The first time you start Harmony, it will ask you to configure your PAT if you don't want to use the Environment variable. You only need one of (a) the ENV var and (b) the config property and the environment variable will take precedence if you have both set.
|
|
25
25
|
|
|
26
26
|
### NPM
|
|
27
27
|
You can install Harmony via npm directly by running `npm install -g @mattpolzin/harmony`.
|
|
@@ -159,6 +159,8 @@ Running `harmony contribute` will print the URI of the oldest PR waiting for you
|
|
|
159
159
|
|
|
160
160
|
You can skip PRs and retrieve the next-oldest one by passing a dash followed by the number to skip (e.g. `-2` to skip the two oldest waiting PRs).
|
|
161
161
|
|
|
162
|
+
You can also more permanently ignore a particular PR (perhaps it has gone stagnant but your org does not want to close it for whatever reason). To do this, use the `--ignore` or `-i` option and pass it the GitHub URI or the Pull Request Number of a PR to ignore. This PR will be omitted from consideration for the `contribute` command from then on. This only impacts your local machine where the ignore list is stored in Harmony's config file.
|
|
163
|
+
|
|
162
164
|
You can simultaneously get the URI for a PR to review and checkout the branch needing review by passing the `--checkout` or `-c` option to the `contribute` command.
|
|
163
165
|
|
|
164
166
|
Many operating systems have an `open` command (though the name "open" is not ubiquitous); this means you can run something like `open $(harmony contribute)` to open a web browser to the PR that Harmony is suggesting.
|
|
@@ -179,6 +181,16 @@ Retrieve a URI for a PR to contribute a review and check the git branch out as w
|
|
|
179
181
|
harmony contribute --checkout
|
|
180
182
|
```
|
|
181
183
|
|
|
184
|
+
Permanently ignore a PR by URI:
|
|
185
|
+
```shell
|
|
186
|
+
harmony contribute --ignore https://github.com/myorg/myrepo/pull/1234
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Permanently ignore a PR by its number:
|
|
190
|
+
```shell
|
|
191
|
+
harmony contribute --ignore 1234
|
|
192
|
+
```
|
|
193
|
+
|
|
182
194
|
### Who Am I
|
|
183
195
|
Running `harmony whoami` will print information about the currently configured and authenticated user.
|
|
184
196
|
|