Mislav Marohnić
d21937391a
[pr] New format fields `%pS` and `%pC` for PR state and color
...
- `%pS`: "open", "draft", "merged", or "closed"
- `%pC`: green, gray, purple, or red
2019-02-18 15:26:06 +01:00
Mislav Marohnić
4b53546070
Support `hub pr list --state=merged`
...
This queries by `state=closed` and selects only PRs that have a merged date.
2018-12-17 17:08:26 +01:00
Mislav Marohnić
32aaacb67a
Include requested teams in `hub pr list -f %sr` view
2018-10-30 11:17:09 +01:00
Florian Thomas
ee0d675387
Add ability to list requested reviewers with `%rs`
...
Fixes #1913
2018-10-29 22:18:18 +00:00
Mislav Marohnić
b15d8de5e4
Ensure consistent sort direction when listing issues, PRs
...
The default direction when sorting by `created` date (the default) is
descending. However, the default on the API backend changes to ascending
when the sort key is something different than `created`:
https://developer.github.com/v3/pulls/#list-pull-requests
This ensures that the default `direction: "desc"` is always passed to
API queries, regardless of the sort key, unless `--sort-ascending` was used.
Ref. https://github.com/github/hub/issues/1815#issuecomment-433222344
2018-10-26 14:37:47 +02:00
Mislav Marohnić
3e89bfba95
Fix `hub pr list -h <BRANCH>` when owner isn't specified
...
Previously, when `:` wouldn't appear in the value for `head`, the GitHub
API would ignore the `head` parameter altogether. Now, ensure that
`<OWNER>:` syntax is always populated by adding the default from the
current repository.
2018-06-07 11:37:01 +02:00
Mislav Marohnić
3abe361efa
Add missing tests for `hub pr list`
2018-01-30 22:18:25 +01:00