Skip to content

Prototype: pr list as a plain list#42

Merged
mislav merged 7 commits intoprototypefrom
pr-status-list
Nov 1, 2019
Merged

Prototype: pr list as a plain list#42
mislav merged 7 commits intoprototypefrom
pr-status-list

Conversation

@mislav
Copy link
Copy Markdown
Contributor

@mislav mislav commented Oct 31, 2019

This renames the previous pr list command to pr status and adds a new pr list command that outputs, by default, 30 latest open pull requests in a line-based format suitable for machine-parsing.

When a --limit larger than 100 is used, API pagination will be performed until enough results are collected to fit the amount.

List pull requests

Usage:
  gh pr list [flags]

Flags:
  -h, --help           help for list
  -L, --limit int      maximum number of items to fetch (default 30)
  -s, --state string   pull request state to filter by (default "open")

Global Flags:
  -B, --current-branch string   current git branch
  -R, --repo string             current GitHub repository

TODO:

  • more filtering options
  • tests
  • color when outputting to a tty
  • experiment with table-based output

@probablycorey probablycorey mentioned this pull request Oct 31, 2019
11 tasks
@mislav mislav merged commit a9b309b into prototype Nov 1, 2019
@mislav mislav deleted the pr-status-list branch November 1, 2019 13:12
@mislav mislav mentioned this pull request Nov 6, 2019
vilmibm pushed a commit that referenced this pull request Jun 29, 2021
Refactored the output, and created more test functions / test cases
mislav pushed a commit that referenced this pull request Sep 28, 2021
Remove note about creating a custom SSH setup for dotcom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant