Support filtering PRs authored by GitHub Apps by joshmgross · Pull Request #5180 · cli/cli · GitHub
Skip to content

Support filtering PRs authored by GitHub Apps#5180

Merged
mislav merged 4 commits into
cli:trunkfrom
joshmgross:joshmgross/pr-list-apps
Feb 15, 2022
Merged

Support filtering PRs authored by GitHub Apps#5180
mislav merged 4 commits into
cli:trunkfrom
joshmgross:joshmgross/pr-list-apps

Conversation

@joshmgross

Copy link
Copy Markdown
Contributor

Supports #4045

This pull request adds an --app option to gh pr list to allow filtering pull requests authored by GitHub Apps.

gh pr list --app dependabot

This is the same filter as author, but GitHub App bot users require the app/ prefix.

gh pr list --author app/dependabot

Equivalent command using --author

Example output:

❯ ./bin/gh pr list --repo cli/cli --state merged --limit 3 --app dependabot
Showing 3 of 14 pull requests in cli/cli that match your search

#5070  Bump github.com/google/go-cmp from 0.5.6 to 0.5.7         dependabot/go_modules/github.com/google/go-cmp-0.5.7
#4832  Bump github.com/itchyny/gojq from 0.12.5 to 0.12.6        dependabot/go_modules/github.com/itchyny/gojq-0.12.6
#4804  Bump github.com/mattn/go-colorable from 0.1.11 to 0.1.12  dependabot/go_modules/github.com/mattn/go-colorable-0.1.12

@joshmgross joshmgross requested a review from a team as a code owner February 8, 2022 01:02
@joshmgross joshmgross requested review from vilmibm and removed request for a team February 8, 2022 01:02
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Feb 8, 2022

@mislav mislav left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Almost there

Comment thread pkg/cmd/pr/list/list.go Outdated
Comment thread pkg/cmd/pr/list/list.go Outdated
Comment thread pkg/cmd/pr/list/list.go Outdated
@joshmgross joshmgross requested a review from mislav February 9, 2022 00:41

@mislav mislav left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates!

To be released in tandem with #5049

@mislav mislav merged commit c2a9c5a into cli:trunk Feb 15, 2022
@joshmgross joshmgross deleted the joshmgross/pr-list-apps branch February 15, 2022 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants