@mattpolzin/harmony 5.8.0 → 6.1.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 +46 -27
- package/harmony +3429 -2841
- package/man/harmony.1 +32 -85
- package/package.json +2 -3
package/man/harmony.1
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" Automatically generated by Pandoc 3.7.0.2
|
|
2
2
|
.\"
|
|
3
|
-
.TH "harmony" "1" "" "Version
|
|
3
|
+
.TH "harmony" "1" "" "Version 6.1.0" "Harmony User\(cqs Guide"
|
|
4
4
|
.SH NAME
|
|
5
5
|
Harmony \- Harmonize with coworkers around GitHub reviewing
|
|
6
6
|
.SH SYNOPSIS
|
|
@@ -92,8 +92,26 @@ Each release page also indicates the version of Idris 2 that particular
|
|
|
92
92
|
release will build against.
|
|
93
93
|
.PP
|
|
94
94
|
Alternatively, you can build Harmony with Docker (see Docker Build).
|
|
95
|
-
.SS
|
|
96
|
-
|
|
95
|
+
.SS Testing
|
|
96
|
+
Tests can be run with \f[CR]make test\f[R].
|
|
97
|
+
You\(cqll need a few common tools in your \f[CR]PATH\f[R] to run all the
|
|
98
|
+
tests: \- \f[CR]realpath\f[R] \- \f[CR]sed\f[R] \- \f[CR]xargs\f[R]
|
|
99
|
+
.SS Bash completion
|
|
100
|
+
Set up Bash completion by adding the following to your Bash resource
|
|
101
|
+
file or profile:
|
|
102
|
+
.IP
|
|
103
|
+
.EX
|
|
104
|
+
eval \(dq$(harmony \-\-bash\-completion\-script)\(dq
|
|
105
|
+
.EE
|
|
106
|
+
.SS Zsh completion
|
|
107
|
+
Zsh completion is supported via \f[CR]bashcompinit\f[R] and can be
|
|
108
|
+
loaded by adding the following to your Zsh resource file or profile:
|
|
109
|
+
.IP
|
|
110
|
+
.EX
|
|
111
|
+
eval \(dq$(harmony \-\-zsh\-completion\-script)\(dq
|
|
112
|
+
.EE
|
|
113
|
+
.SS Initial configuration
|
|
114
|
+
For most things harmony does, you need to have a GitHub \c
|
|
97
115
|
.UR https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token
|
|
98
116
|
Personal Access Token
|
|
99
117
|
.UE \c
|
|
@@ -114,80 +132,7 @@ The first time you start Harmony, it will ask you to configure your PAT
|
|
|
114
132
|
if you don\(cqt want to use the Environment variable.
|
|
115
133
|
You only need one of (a) the ENV var and (b) the config property and the
|
|
116
134
|
environment variable will take precedence if you have both set.
|
|
117
|
-
.SS NPM
|
|
118
|
-
You can install Harmony via npm directly by running
|
|
119
|
-
\f[CR]npm install \-g \(atmattpolzin/harmony\f[R].
|
|
120
|
-
.SS GitHub Release
|
|
121
|
-
You can install any Harmony release by downloading the
|
|
122
|
-
\f[CR]harmony\-npm.tar.gz\f[R] file from the GitHub Release page,
|
|
123
|
-
unzipping it, and running \f[CR]npm install \-\-global\f[R].
|
|
124
|
-
.SS Nix Flake
|
|
125
|
-
You can add Harmony to your Flake inputs as follows:
|
|
126
|
-
.IP
|
|
127
|
-
.EX
|
|
128
|
-
inputs = {
|
|
129
|
-
...
|
|
130
|
-
harmony.url = \(dqgithub:mattpolzin/harmony\(dq;
|
|
131
|
-
harmony.inputs.nixpkgs.follows = \(dqnixpkgs\(dq;
|
|
132
|
-
};
|
|
133
|
-
.EE
|
|
134
135
|
.PP
|
|
135
|
-
Then, in your outputs, bring Harmony into a package install list as
|
|
136
|
-
\f[CR]harmony.packages.<system>.harmony\f[R].
|
|
137
|
-
.PP
|
|
138
|
-
Harmony builds are cached in Cachix so you can take advantage of those
|
|
139
|
-
builds by adding \f[CR]https://gh\-harmony.cachix.org\f[R] to the list
|
|
140
|
-
of \f[CR]substituters\f[R] and
|
|
141
|
-
\f[CR]gh\-harmony.cachix.org\-1:KX5tTtEt3Y6an8pywe3Cy6jR9bUo+1Cl7hJmh+5eI4I=\f[R]
|
|
142
|
-
to the list of \f[CR]trusted\-public\-keys\f[R].
|
|
143
|
-
.SS From Source
|
|
144
|
-
The build script assumes a HEAD build of Idris 2 is installed on your
|
|
145
|
-
system.
|
|
146
|
-
For an alternative, see the Docker Build instructions below.
|
|
147
|
-
.PP
|
|
148
|
-
Build Harmony from source with a call to \f[CR]make\f[R].
|
|
149
|
-
Then install it globally with \f[CR]make install\f[R].
|
|
150
|
-
.SS Docker Build
|
|
151
|
-
If you want to build Harmony without installing Idris 2 on your system,
|
|
152
|
-
you can build Harmony within a Docker container and then install the
|
|
153
|
-
resulting Javascript onto your system.
|
|
154
|
-
.PP
|
|
155
|
-
First, download the latest nightly Docker image:
|
|
156
|
-
.IP
|
|
157
|
-
.EX
|
|
158
|
-
docker pull mattpolzin2/idris\-docker:nightly
|
|
159
|
-
.EE
|
|
160
|
-
.PP
|
|
161
|
-
Then, from a directory containing this Harmony git repository, build
|
|
162
|
-
Harmony:
|
|
163
|
-
.IP
|
|
164
|
-
.EX
|
|
165
|
-
docker run \-\-rm \-v \(dq$(pwd):/build\(dq \(rs
|
|
166
|
-
mattpolzin2/idris\-docker:nightly \(rs
|
|
167
|
-
bash \-c \(dqapt\-get update && apt\-get install \-y git && cd /build && make\(dq
|
|
168
|
-
.EE
|
|
169
|
-
.PP
|
|
170
|
-
At this point you are done with Docker.
|
|
171
|
-
From the same directory, install Harmony globally:
|
|
172
|
-
.IP
|
|
173
|
-
.EX
|
|
174
|
-
npm install \-\-global
|
|
175
|
-
.EE
|
|
176
|
-
.SS Bash completion
|
|
177
|
-
Set up Bash completion by adding the following to your Bash resource
|
|
178
|
-
file or profile:
|
|
179
|
-
.IP
|
|
180
|
-
.EX
|
|
181
|
-
eval \(dq$(harmony \-\-bash\-completion\-script)\(dq
|
|
182
|
-
.EE
|
|
183
|
-
.SS Zsh completion
|
|
184
|
-
Zsh completion is supported via \f[CR]bashcompinit\f[R] and can be
|
|
185
|
-
loaded by adding the following to your Zsh resource file or profile:
|
|
186
|
-
.IP
|
|
187
|
-
.EX
|
|
188
|
-
eval \(dq$(harmony \-\-zsh\-completion\-script)\(dq
|
|
189
|
-
.EE
|
|
190
|
-
.SS Usage
|
|
191
136
|
The first time you start Harmony in any particular folder, you will be
|
|
192
137
|
asked to provide some information about the GitHub repository you are
|
|
193
138
|
working with.
|
|
@@ -223,13 +168,13 @@ Would you like harmony to comment when it requests reviewers? [Y/n]
|
|
|
223
168
|
Would you like harmony to request team reviews in addition to individuals when it requests reviewers? [Y/n]
|
|
224
169
|
Creating config...
|
|
225
170
|
.EE
|
|
226
|
-
.
|
|
227
|
-
Once configured, Harmony supports the following commands
|
|
228
|
-
\f[CR]config\f[R], \f[CR]branch\f[R], \f[CR]pr\f[R],
|
|
229
|
-
\f[CR]
|
|
230
|
-
\f[CR]
|
|
231
|
-
\f[CR]
|
|
232
|
-
\f[CR]sync\f[R].
|
|
171
|
+
.SS Usage
|
|
172
|
+
Once configured, Harmony supports the following commands that are
|
|
173
|
+
documented below: \f[CR]config\f[R], \f[CR]branch\f[R], \f[CR]pr\f[R],
|
|
174
|
+
\f[CR]quick\f[R], \f[CR]label\f[R], \f[CR]request\f[R] (also aliased to
|
|
175
|
+
\f[CR]rq\f[R]), \f[CR]contribute\f[R], \f[CR]whoami\f[R],
|
|
176
|
+
\f[CR]reflect\f[R], \f[CR]list\f[R], \f[CR]graph\f[R],
|
|
177
|
+
\f[CR]health\f[R], and \f[CR]sync\f[R].
|
|
233
178
|
.PP
|
|
234
179
|
\f[B]Note on color output:\f[R] Harmony uses colored output for some
|
|
235
180
|
commands.
|
|
@@ -388,14 +333,16 @@ configured GitHub organization.
|
|
|
388
333
|
.PP
|
|
389
334
|
Running \f[CR]harmony list <team>\f[R] will list the members of the
|
|
390
335
|
given GitHub Team.
|
|
391
|
-
.SS \f[CR]pr [\-\-draft] [\-i/\-\-into {<branch\-name>}] [#label, ...]\f[R]
|
|
336
|
+
.SS \f[CR]pr [\-\-draft | \-\-ready] [\-i/\-\-into {<branch\-name>}] [#label, ...]\f[R]
|
|
392
337
|
With a branch checked out will reach out to GitHub to determine if there
|
|
393
338
|
is an open PR for that branch.
|
|
394
339
|
If there is a PR, Harmony will print a URI that can be used to view the
|
|
395
340
|
PR.
|
|
396
341
|
If there is not a PR, Harmony will help you create one.
|
|
397
342
|
New and existing PRs can be marked as drafts by specifying the
|
|
398
|
-
\f[CR]\-\-draft\f[R] flag with the \f[CR]pr\f[R] command
|
|
343
|
+
\f[CR]\-\-draft\f[R] flag with the \f[CR]pr\f[R] command or they can be
|
|
344
|
+
marked as ready for review with the \f[CR]\-\-ready\f[R] flag.
|
|
345
|
+
The default behavior for new PRs is to mark them ready.
|
|
399
346
|
.PP
|
|
400
347
|
If you need to create a PR still, you will be prompted for a branch to
|
|
401
348
|
open the PR against (merge into, eventually), a title for the PR, and a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mattpolzin/harmony",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=18.0.0"
|
|
6
6
|
},
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"author": "Mathew Polzin",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"octokit": "^3.1"
|
|
32
|
-
"simple-git": "^3.15"
|
|
31
|
+
"octokit": "^3.1"
|
|
33
32
|
}
|
|
34
33
|
}
|