Files
renovate/lib/modules
Emanuel Besliu 2d431ea7a7 fix(platform/azure): don't create Dependency Dashboard for projects without an Issue type (#44592)
* fix(platform/azure): guard against null work item on issue creation

The Azure DevOps REST client resolves createWorkItem to null (instead of
throwing) on a 404 or any 2xx response with an empty/non-JSON body, such
as a 203 sign-in page returned by an expired token or an SSO/proxy in
front of the instance. ensureIssue then dereferenced newWorkItem.id
unconditionally, crashing the dependency dashboard run with
"Cannot read properties of null (reading 'id')".

Guard the result and skip the issue with a warning instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* feat(platform/azure): detect missing Issue work item type

Check that the project's process defines the 'Issue' work item type
before attempting to create one. Processes such as Scrum do not define
it, so createWorkItem returned a 404 that the REST client surfaces as
null, producing a cryptic crash. Log an actionable warning instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test(platform/azure): mock getWorkItemTypes in ensureIssue create test

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-15 09:57:02 +00:00
..