remove parenthesis around returned objects in pipelines.js.es6
This commit is contained in:
parent
7eca523e20
commit
0e6d3c14a6
1 changed files with 3 additions and 3 deletions
|
@ -44,15 +44,15 @@
|
||||||
author(pipeline) {
|
author(pipeline) {
|
||||||
if (!pipeline.commit) return ({ avatar_url: '', web_url: '', username: '' });
|
if (!pipeline.commit) return ({ avatar_url: '', web_url: '', username: '' });
|
||||||
if (pipeline.commit.author) return pipeline.commit.author;
|
if (pipeline.commit.author) return pipeline.commit.author;
|
||||||
return ({
|
return {
|
||||||
avatar_url: pipeline.commit.author_gravatar_url,
|
avatar_url: pipeline.commit.author_gravatar_url,
|
||||||
web_url: `mailto:${pipeline.commit.author_email}`,
|
web_url: `mailto:${pipeline.commit.author_email}`,
|
||||||
username: pipeline.commit.author_name,
|
username: pipeline.commit.author_name,
|
||||||
});
|
};
|
||||||
},
|
},
|
||||||
ref(pipeline) {
|
ref(pipeline) {
|
||||||
const { ref } = pipeline;
|
const { ref } = pipeline;
|
||||||
return ({ name: ref.name, tag: ref.tag, ref_url: ref.path });
|
return { name: ref.name, tag: ref.tag, ref_url: ref.path };
|
||||||
},
|
},
|
||||||
commitTitle(pipeline) {
|
commitTitle(pipeline) {
|
||||||
return pipeline.commit ? pipeline.commit.title : '';
|
return pipeline.commit ? pipeline.commit.title : '';
|
||||||
|
|
Loading…
Reference in a new issue