Skip to content

Commit

Permalink
Merge pull request #139 from mattpolzin/add-pr-command-examples
Browse files Browse the repository at this point in the history
Add examples to PR command section of README
  • Loading branch information
mattpolzin authored Jul 5, 2024
2 parents 77f2aac + 5355c75 commit 7fafa56
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,17 @@ You can also specify any number of labels to apply by prefixing them with '#'. F

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.

#### Examples
Create a draft pull request for the current branch:
```shell
harmony pr --draft
```

Create a PR for the current branch and add the `urgent` label:
```shell
harmony pr #urgent
```

### Label
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.

Expand Down

0 comments on commit 7fafa56

Please sign in to comment.