Commit 8c328b15 authored by Jean-Marc Le Roux's avatar Jean-Marc Le Roux

Fix empty `author` field in amendment API endpoints.

parent 5bbb2e52
Pipeline #42194 passed with stages
in 43 seconds
......@@ -2,5 +2,5 @@
"id": {{ body.iid }},
"title": "{{ body.title }}",
"status": "{{ body.labels[0] }}",
"author": "{{ body.author.email }}"
"author": "{{ body.author.name }}"
}
......@@ -4,7 +4,7 @@
"id": {{ mergeRequest.iid }},
"title": "{{ mergeRequest.title }}",
"status": "{{ mergeRequest.labels[0] }}",
"author": "{{ mergeRequest.author.email }}"
"author": "{{ mergeRequest.author.name }}"
}{{ "," if not loop.last }}
{% endfor %}
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment