API notify_release is not working, throws exception
API throws a cryptic exception if used
Dependabot-Gitlab Version:
Helm Chart: 0.7.0 Depedendabot: 0.19.0
How to reproduce:
curl https://dependabot.customdomain.tld/api/notify_release \
-H 'X-Gitlab-Token: <API TOKEN REDACTED>' \
-X POST \
-H 'Content-Type: application/json' \
-d '{"name": "@code/custom-package", "package_ecosystem":"npm"}'
An example is with the custom package, but essentially it fails for any package and any ecosystem.
Response:
{
"status": 500,
"error": "undefined method `entries' for nil:NilClass"
}
Expectations:
- It should schedule a NotifyReleaseJob
- It should not respond with HTTP 500 and a cryptic exception
Assumptions:
I think it has something to deal with this line