Skip to content

Conversation

@martincostello
Copy link
Contributor

Add support for just owner: rather than needing either repo: or org:.

This allows reports to be run against all the repositories owned by a single maintainer's personal GitHub account.

For example: owner:martincostello is:issue created:2023-07-01..2023-07-30 -reason:"not planned" (results)

Add support for just `owner:` rather than needing `repo:`.
@martincostello martincostello requested a review from zkoppert as a code owner July 24, 2023 15:46
@zkoppert
Copy link
Member

Hi @martincostello! Thanks for taking the time to submit this pull request! I really appreciate it.

Yeah, I believe this is a great way to do it and just look at owner (user or org) and not require a repository. I'll take a look more tomorrow at test coverage for this.

- Add support for just `user:`.
- Remove the special case for `org:` and capture all four use cases in the same function.
@martincostello martincostello changed the title Support just "owner" in search queries Support "owner" and "user" in search queries Jul 25, 2023
@martincostello
Copy link
Contributor Author

I hadn't thought about user: 😄

I've updated the PR to include that too and remove dedicated function for handling org.

martincostello and others added 2 commits July 25, 2023 11:44
Copy link
Member

@zkoppert zkoppert left a comment

Choose a reason for hiding this comment

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

Thanks for contributing and building this out! This works really nicely for the use cases where I want to know about things across all the repos I work on or all my assignments!

@zkoppert zkoppert added the enhancement New feature or request label Jul 25, 2023
@zkoppert zkoppert merged commit cf3dda2 into github:main Jul 25, 2023
@zkoppert
Copy link
Member

Will work on cutting a new release that includes this later today.

@martincostello martincostello deleted the support-owner branch July 25, 2023 17:09
@martincostello
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants