@mattpolzin/harmony 1.1.1 → 1.3.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.
- harmony-npm/README.md +13 -2
- harmony-npm/harmony +5193 -2803
- harmony-npm/package.json +1 -1
harmony-npm/README.md
CHANGED
|
@@ -13,6 +13,14 @@ Alternatively, you can build Harmony with Docker (see [Docker Build](#docker-bui
|
|
|
13
13
|
## Installation
|
|
14
14
|
For any installation, you need to have a GitHub [Personal Access Token](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token).
|
|
15
15
|
|
|
16
|
+
Your Personal Access Token should have the following permissions:
|
|
17
|
+
- `repo` (Full control of private repositories)
|
|
18
|
+
- `read:org` (Read org and team membership, read org projects)
|
|
19
|
+
- `read:user`
|
|
20
|
+
- `user:email`
|
|
21
|
+
- `read:discussion`
|
|
22
|
+
- `read:enterprise` (Read enterprise profile data)
|
|
23
|
+
|
|
16
24
|
You can eiher 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.
|
|
17
25
|
|
|
18
26
|
### NPM
|
|
@@ -93,7 +101,7 @@ Many operating systems have an `open` command (though the name "open" is not ubi
|
|
|
93
101
|
### PR
|
|
94
102
|
Running `harmony pr` with a branch checked out will reach out to GitHub to determine if there is an open PR for that branch. If there is a PR, Harmony will print a URI that can be used to view the PR. IF there is not a PR, Harmony will help you create one.
|
|
95
103
|
|
|
96
|
-
If you need to create a PR still, you will be prompted for a branch to open the PR against (merge into, eventually), a title for the PR, and a description for the PR. If you have an `EDITOR` environment variable set, Harmony will use that editor to get the PR description from you. If you have a PR template at `.github/PULL_REQUEST_TEMPLATE.md`, Harmony will also preload that into your editor. If you do not have an `EDITOR` environment variable set, you will still be able to enter a description from the command line
|
|
104
|
+
If you need to create a PR still, you will be prompted for a branch to open the PR against (merge into, eventually), a title for the PR, and a description for the PR. If you have an `EDITOR` environment variable set, Harmony will use that editor to get the PR description from you. If you have a PR template at `.github/PULL_REQUEST_TEMPLATE.md`, Harmony will also preload that into your editor. If you do not have an `EDITOR` environment variable set, you will still be able to enter a description from the command line but PR templates are only supported when an `EDITOR` is specified.
|
|
97
105
|
|
|
98
106
|
Many operating systems have an `open` command (though the name "open" is not ubiquitous); this means you can run something like `open $(harmony pr)` to open a web browser to an existing PR for the current branch.
|
|
99
107
|
|
|
@@ -155,12 +163,15 @@ Running `harmony list <team>` will list the members of the given GitHub Team.
|
|
|
155
163
|
### Graph
|
|
156
164
|
Running `harmony graph <team>` will graph the relative review workload of each of the members of the given GitHub Team.
|
|
157
165
|
|
|
166
|
+
You can optionally graph completed PR reviews with the `--completed` flag as well, though these are not considered for Harmony's weighting algorithm for review workload.
|
|
167
|
+
|
|
158
168
|
### Config
|
|
159
|
-
Running `harmony config <property>` read the given configuration property. `harmony config <property> <value>` will set the configuration property.
|
|
169
|
+
Running `harmony config <property>` will read the given configuration property. `harmony config <property> <value>` will set the configuration property.
|
|
160
170
|
|
|
161
171
|
Not all configuration properties can be read/set with this command.
|
|
162
172
|
#### Properties
|
|
163
173
|
- `assignTeams` -- When picking a reviewer from a team, assign the team as a reviewer as well.
|
|
174
|
+
- `assignUsers` -- When assigning a team as a reviewer, pick a user to review as well.
|
|
164
175
|
- `commentOnAssign` -- When assigning a reviewer chosen by Harmony, comment on the pull request.
|
|
165
176
|
- `defaultRemote` -- When pushing new branches, what remote destination should be used.
|
|
166
177
|
- `githubPAT` -- If the `$GITHUB_PAT` environment variable is not set, this Personal Access Token is used to authenticate with GitHub.
|