@mattpolzin/harmony 4.4.0 → 5.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.
Files changed (3) hide show
  1. package/README.md +16 -3
  2. package/harmony +1343 -1074
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -47,7 +47,7 @@ You can add Harmony to your Flake inputs as follows:
47
47
  Then, in your outputs, bring Harmony into a package install list as `harmony.packages.<system>.harmony`.
48
48
 
49
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
50
+ adding `https://gh-harmony.cachix.org` to the list of `substituters` and
51
51
  `gh-harmony.cachix.org-1:KX5tTtEt3Y6an8pywe3Cy6jR9bUo+1Cl7hJmh+5eI4I=` to the
52
52
  list of `trusted-public-keys`.
53
53
 
@@ -124,7 +124,7 @@ Not all configuration properties can be read/set with this command.
124
124
  #### Properties
125
125
  - `requestTeams` (`true`/`false`) -- When picking a reviewer from a team, request the team as a reviewer as well.
126
126
  - `requestUsers` (`true`/`false`) -- When requesting a team as a reviewer, pick a user to review as well.
127
- - `commentOnRequest` (`true`/`false`) -- When requesting a reviewer chosen by Harmony, comment on the pull request.
127
+ - `commentOnRequest` (`none`/`name`/`at-mention`) -- When requesting a reviewer chosen by Harmony, comment on the pull request or not.
128
128
  - `defaultRemote` (optional string) -- When pushing new branches, what remote destination should be used.
129
129
  - `mainBranch` (optional string) -- When creating a PR, this is the default base branch.
130
130
  - `theme` (`dark`/`light`) -- Use colors suited better for either a dark or light Terminal background.
@@ -136,7 +136,7 @@ Running `harmony branch` will print the URI for accessing the currently checked
136
136
  Many operating systems have an `open` command (though the name "open" is not ubiquitous); this means you can run something like `open $(harmony branch)` to open a web browser to the current branch on GitHub.
137
137
 
138
138
  ### PR
139
- Running `harmony pr [--draft] [#<label>, ...]` 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. New PRs can be created as drafts by specifying the `--draft` flag with the `pr` command.
139
+ Running `harmony pr [--draft] [#<label>, ...]` 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. New and existing PRs can be marked as drafts by specifying the `--draft` flag with the `pr` command.
140
140
 
141
141
  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.
142
142
 
@@ -144,6 +144,17 @@ You can also specify any number of labels to apply by prefixing them with '#'. F
144
144
 
145
145
  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.
146
146
 
147
+ #### Examples
148
+ Create a draft pull request for the current branch:
149
+ ```shell
150
+ harmony pr --draft
151
+ ```
152
+
153
+ Create a PR for the current branch and add the `urgent` label:
154
+ ```shell
155
+ harmony pr #urgent
156
+ ```
157
+
147
158
  ### Label
148
159
  Running `harmony label {<label>} [...]` will help you create a PR if one does not exist yet and then it will apply the given labels to the PR. This is essentially an alias for the `harmony pr` command but without support for creating draft PRs.
149
160
 
@@ -195,6 +206,8 @@ You can simultaneously get the URI for a PR to review and checkout the branch ne
195
206
 
196
207
  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.
197
208
 
209
+ You can also run `harmony contribute --list` if you want to list out a few PRs to consider reviewing them instead of choosing just one PR to look into and printing that PRs URI.
210
+
198
211
  #### Examples
199
212
  Retrieve a URI for the oldest unreviewed and open PR (prioritizing PRs for which you are a requested reviewer):
200
213
  ```shell