-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHubRepositories: Add Output Type Views #205
GitHubRepositories: Add Output Type Views #205
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty awesome. Thanks so much for tackling this!
I've left some minor feedback for you to consider.
Aside
WinDbg has this really neat feature where some of the command output is hyperlinked, and clicking it results in WinDbg executing another debug command that was embedded in the hyperlink. Does the PowerShell formatter have any type of support for something like that? I quick search seems to say no, but I thought I'd ask you as well. I could just imagine having the values in the 'login' column being clickable, which would cause it to executeGet-GitHubUser -Name $_.login
to get additional information on that user.
One other thought I had...we might want to have a sub-directory for |
I've moved the |
Thanks -- will give a final pass at this tomorrow, and then hopefully get it merged in. |
I'm holding off on this one for another couple days as I'm examining a consistent approach to pipelining and type definitions across the entire module. We'll definitely be taking this formatter change soon. It's just that the work you're doing to add the type information in this PR may be superseded by that larger effort (which is definitely influenced by what you're doing here). If interested, you can take a look at my early thoughts on that larger approach: HowardWolosky/PowerShellForGitHub@e6b5ef6 |
No problem @HowardWolosky. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one should be easy to update after the pipeline change.. just dropping the changes to GitHubRepositories.ps1
. It's not clear to me though why the .wiki submodule is part of this change though.
@HowardWolosky, just looking at finishing this PR. The current output types of Are you OK with |
Nice catch. That was an oversight on my part. I didn't look carefully enough.
I'm feeling a bit torn. Those make complete sense to me on the one hand. On the other, I'd say move forward with your suggestion. If it feels unnatural after we start using it, we can look at changing it. Thanks again. I really appreciate all of your contributions to this project. |
OK, code updated. I've changed the |
@HowardWolosky, can we trigger the CI for this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great. Thanks for catching the mistake with the output types of contributor/collaborator.
Minor formatting change request for variable names, and then we can get this merged in.
You may have a merge conflict to address in #233 once this goes in.
…uardian/PowerShellForGitHub into GitHubRepositories-TypeViews
/azp run PowerShellForGitHub-CI |
Azure Pipelines successfully started running 1 pipeline(s). |
Pull Request description
This PR adds output type views for the following resources in the
GitHubRepositories
module:GitHub.Repository
GitHub.RepositoryTopic
GitHub.RepositoryContributor
GitHub.RepositoryContributorStatistics
GitHub.RepositoryCollaborator
GitHub.RepositoryTag
Example Views
GitHub.Repository
GitHub.RepositoryTopic
GitHub.RepositoryContributor
GitHub.RepositoryContributorStatistics
GitHub.RepositoryCollaborator
GitHub.RepositoryTag