MicrosoftPremier / VstsExtensions

Documentation and issue tracking for Microsoft Premier Services Visual Studio Team Services Extensions
MIT License
56 stars 14 forks source link

Create Work Item: Allow to link commits in Work Item #142

Closed SebastianSchuetze closed 2 years ago

SebastianSchuetze commented 3 years ago

I could not find on a link type that allows to link to specific commits in a repository. This would be nice. PR is possible, but not GIT commits.

ReneSchumacher commented 3 years ago

Hi @SebastianSchuetze,

can you provide more information on the use case? Are you looking for a way to specify a commit hash (or multiple) to link the work item to? Or would you like to link the work item to the commit that triggered the pipeline?

SebastianSchuetze commented 3 years ago

I would rather be able to define what exact commit I want to link to the work item. Meaning, give

And add this link to the "Development" section of the work item. If this is included then you can easily also link the current commit in your build by yourself. But I am more interested in linking the commit I like to choose.

ReneSchumacher commented 3 years ago

Got it.

I'm still wondering, though, what the use case behind linking an arbitrary commit is? While we could add options to specify target project, repo and commit hash (there's no need to provide the branch), the task's ability to link to that commit depends on your security settings for pipelines. (i.e., it'll always work for the current project, but might not work for other projects).

SebastianSchuetze commented 3 years ago

We have a use case. In our company as the team operating azure devops services we are required to scan all repositories of all projects for secrets once a week. When we have a find. We would like to create a bug in the users project which links directly to the commit containing the secret.

This makes it easier for users to spot it and working the a full tracible link in the created bug.

ReneSchumacher commented 3 years ago

Alright, that seems like a valuable use case. I've put that on the backlog and see how quickly we can get this done. We'll probably add a multiline parameter (similar to additional fields) that supports linking multiple commits and/or change sets.

SebastianSchuetze commented 3 years ago

Any update when you think this could be implemented?

ReneSchumacher commented 3 years ago

Sorry, I couldn't find the time prior to my vacation. I'm starting with the implementation (among other things) today.

ReneSchumacher commented 2 years ago

Hi @SebastianSchuetze,

sorry for the delay. Our internal review process took longer than I expected. The new version is being released right now and should be published to the marketplace within the hour. There is a new option to link the work item to code, which allows linking one or more commits and/or changesets. Let me know if it meets your needs.

ReneSchumacher commented 2 years ago

I'm closing this issue now as it should be resolved. If you believe there's more to do from our side, please add new comments or create a new issue.