Compute trailers in changeset pre processing

Doing so, the trailers are available for other plugins inspecting
changesets, not only for the frontend.
This commit is contained in:
René Pfeuffer
2020-06-04 08:29:32 +02:00
parent 4fda6daaa0
commit 4d072675ad
4 changed files with 75 additions and 17 deletions

View File

@@ -53,7 +53,7 @@ class ChangesetAuthor extends React.Component<Props> {
}
getCoAuthorsFromChangeset() {
return this.props.changeset.trailerPersons.filter(p => p.trailerType === "Co-authored-by");
return this.props.changeset.trailers.filter(p => p.trailerType === "Co-authored-by").map(trailer => trailer.person);
}
renderCoAuthors() {