-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Azure - Support linked work items #3395
Comments
I agree that it sounds best to have a single work item created out of band, which is then used in every create PR call. Sounds like we'd need a new configuration option, as it doesn't fit into any existing config I can think of. The remaining question is how it is passed around - e.g is it set once at the start of a repo run or is it passed through every call until it is eventually passed to the create PR function. |
I think it would be simpler to implement if this was just set once at the start of the repo run. |
I'm wondering if the Renovate "master issue" (currently undocumented and about to be released - see example here: #2958) could serve as the work item? Note that for Azure I don't think its markdown supports the checkboxes like GitHub and GitLab do, so it would not be a fully functional master issue on Azure DevOps. Alternatively we can just have a new config option |
Possibly, but I can only see how it would work if I think that having an azure specific configuration property, that is passed at |
@rarkins I'll go ahead and implement an |
After some investigation, it's currently not possible to link work items with the API. See https://developercommunity.visualstudio.com/content/idea/366535/link-pull-request-to-work-items-using-the-rest-api.html |
Closing until this is possible |
…3542) Looks like I was (happily) wrong about this. There is currently no API to add a work item to a PR as an individual action. Instead you have to link the work item when creating the PR, or by using the `updatePullRequest` API. I've tested with the default (0), a non-existent work item ID, and a real work item ID, and they all work with this implementation. Fixes #3395
🎉 This issue has been resolved in version 15.16.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What would you like Renovate to be able to do?
Azure DevOps supports branch protections, and one of these protections is that every pull request has to have a linked work item (See details here). I would like to have renovate link a work item to each PR that it opens
Describe the solution you'd like
I would like to have a work item id in the renovate config, that could be linked to each pull request that is opened against that repository. I think having renovate create a work item would be too much noise, and simply having a single work item that renovate can link all it's PRs against would be sufficient
Describe alternatives you've considered
An alternative would be for renovate to create individual work items, and link them to an individual PR. However, I think this would create too much noise. Additionally in my organisation there are restrictions on which fields need to be filled in when a work item is created, which would also add to the complexity of renovate creating work items.
The text was updated successfully, but these errors were encountered: