Skip to content
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

Add support for returning work items in Get-VSTeamGitCommit #530

Open
halvarsson opened this issue May 22, 2023 · 0 comments
Open

Add support for returning work items in Get-VSTeamGitCommit #530

halvarsson opened this issue May 22, 2023 · 0 comments
Labels
enhancement Improvements that do not include new features feature request for new feature requests that do not just improve things

Comments

@halvarsson
Copy link

Proposal

When retrieving commits using Get-VSTeamGitCommit, there is currently no way to see which work items are linked to the returned commits

It would be nice if the work item ids could be returned when calling the cmdlet, so its possible to lookup which work items are related to the commit

I can raise a PR for this if I get some clarification on how the work items should be returned :-)

Solved Problem

I have updated the module locally to return the work items, and I am currently using it to generate release notes between two tags for my branch. But it would be nice if this was supported out of the box in the module

I then iterate the linked work items and add tags to them, this allows me to get a good overview of which work items have no code associated to them, allowing me to manually describe these in release notes etc.

Additional info / code snippets?

The data can be returned by the API call that is currently being made, by passing 'searchCriteria.includeWorkItems' = $True
This then returns the id + url

PS N:\> $commits[0].InternalObject.workItems

id   url                                                    
--   ---                                                    
1234 https://dev.azure.com/<org>/_apis/wit/workItems/1234
@halvarsson halvarsson added enhancement Improvements that do not include new features feature request for new feature requests that do not just improve things labels May 22, 2023
@halvarsson halvarsson changed the title Add support for returning work items for commits Add support for returning work items in Get-VSTeamGitCommit May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements that do not include new features feature request for new feature requests that do not just improve things
Projects
None yet
Development

No branches or pull requests

1 participant