@mattpolzin/harmony 4.1.0 → 4.4.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 +14 -2
- package/harmony +1848 -1546
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,6 +46,11 @@ You can add Harmony to your Flake inputs as follows:
|
|
|
46
46
|
|
|
47
47
|
Then, in your outputs, bring Harmony into a package install list as `harmony.packages.<system>.harmony`.
|
|
48
48
|
|
|
49
|
+
Harmony builds are cached in Cachix so you can take advantage of those builds by
|
|
50
|
+
adding `gh-harmony.cachix.org` to the list of `substituters` and
|
|
51
|
+
`gh-harmony.cachix.org-1:KX5tTtEt3Y6an8pywe3Cy6jR9bUo+1Cl7hJmh+5eI4I=` to the
|
|
52
|
+
list of `trusted-public-keys`.
|
|
53
|
+
|
|
49
54
|
### From Source
|
|
50
55
|
The build script assumes a HEAD build of Idris 2 is installed on your system. For an alternative, see the [Docker Build](#docker-build) instructions below.
|
|
51
56
|
|
|
@@ -84,7 +89,7 @@ eval "$(harmony --zsh-completion-script)"
|
|
|
84
89
|
## Usage
|
|
85
90
|
The first time you start Harmony in any particular folder, you will be asked to provide some information about the GitHub repository you are working with. This information is stored in a file named `harmony.json` in the current working directory.
|
|
86
91
|
|
|
87
|
-
Note that the GitHub organization and repository are both slugs, not names. These are the values you find in a GitHub URL pointing to your repository. Harmony
|
|
92
|
+
Note that the GitHub organization and repository are both slugs, not names. These are the values you find in a GitHub URL pointing to your repository. Harmony works with personal repositories but some of Harmony's features are not available for these repos because they do not have teams or members.
|
|
88
93
|
```
|
|
89
94
|
$ harmony sync
|
|
90
95
|
Creating a new configuration (storing in harmony.json)...
|
|
@@ -107,7 +112,10 @@ Would you like harmony to request team reviews in addition to individuals when i
|
|
|
107
112
|
Creating config...
|
|
108
113
|
```
|
|
109
114
|
|
|
110
|
-
Once configured, Harmony supports the following commands: `config`, `branch`, `pr`, `label`, `request
|
|
115
|
+
Once configured, Harmony supports the following commands: `config`, `branch`, `pr`, `label`, `request` (also aliased to `rq`), `contribute`, `whoami`, `reflect`, `list`, `graph`, `health`, and `sync`.
|
|
116
|
+
|
|
117
|
+
**Note on color output:**
|
|
118
|
+
Harmony uses colored output for some commands. You can adjust these colors slightly with the `theme` configuration option. You can also use the `NO_COLOR` environment variable to disable all colored output. Lastly, Harmony will avoid colored output when it determines `stdout` is not a TTY device (as is the case for e.g. redirecting harmony output into a file or piping into `cat`: `harmony ... | cat`).
|
|
111
119
|
|
|
112
120
|
### Config
|
|
113
121
|
Running `harmony config <property>` will read the given configuration property. `harmony config <property> <value>` will set the configuration property.
|
|
@@ -118,6 +126,8 @@ Not all configuration properties can be read/set with this command.
|
|
|
118
126
|
- `requestUsers` (`true`/`false`) -- When requesting a team as a reviewer, pick a user to review as well.
|
|
119
127
|
- `commentOnRequest` (`true`/`false`) -- When requesting a reviewer chosen by Harmony, comment on the pull request.
|
|
120
128
|
- `defaultRemote` (optional string) -- When pushing new branches, what remote destination should be used.
|
|
129
|
+
- `mainBranch` (optional string) -- When creating a PR, this is the default base branch.
|
|
130
|
+
- `theme` (`dark`/`light`) -- Use colors suited better for either a dark or light Terminal background.
|
|
121
131
|
- `githubPAT` (optional string) -- If the `$GITHUB_PAT` environment variable is not set, this Personal Access Token is used to authenticate with GitHub.
|
|
122
132
|
|
|
123
133
|
### Branch
|
|
@@ -220,6 +230,8 @@ Running `harmony reflect` will show a summary of your review requests and author
|
|
|
220
230
|

|
|
221
231
|
|
|
222
232
|
### List
|
|
233
|
+
Running `harmony list` will list all the teams for the configured GitHub organization.
|
|
234
|
+
|
|
223
235
|
Running `harmony list <team>` will list the members of the given GitHub Team.
|
|
224
236
|
|
|
225
237
|
### Graph
|