Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
50181499
Commit
50181499
authored
May 09, 2017
by
winh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link to commit author user page from pipelines (!11100)
parent
b1645ab9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
app/assets/javascripts/vue_shared/components/pipelines_table_row.js
.../javascripts/vue_shared/components/pipelines_table_row.js
+7
-8
changelogs/unreleased/winh-pipeline-author-link.yml
changelogs/unreleased/winh-pipeline-author-link.yml
+4
-0
No files found.
app/assets/javascripts/vue_shared/components/pipelines_table_row.js
View file @
50181499
...
@@ -62,10 +62,12 @@ export default {
...
@@ -62,10 +62,12 @@ export default {
commitAuthor
()
{
commitAuthor
()
{
let
commitAuthorInformation
;
let
commitAuthorInformation
;
if
(
!
this
.
pipeline
||
!
this
.
pipeline
.
commit
)
{
return
null
;
}
// 1. person who is an author of a commit might be a GitLab user
// 1. person who is an author of a commit might be a GitLab user
if
(
this
.
pipeline
&&
if
(
this
.
pipeline
.
commit
.
author
)
{
this
.
pipeline
.
commit
&&
this
.
pipeline
.
commit
.
author
)
{
// 2. if person who is an author of a commit is a GitLab user
// 2. if person who is an author of a commit is a GitLab user
// he/she can have a GitLab avatar
// he/she can have a GitLab avatar
if
(
this
.
pipeline
.
commit
.
author
.
avatar_url
)
{
if
(
this
.
pipeline
.
commit
.
author
.
avatar_url
)
{
...
@@ -77,11 +79,8 @@ export default {
...
@@ -77,11 +79,8 @@ export default {
avatar_url
:
this
.
pipeline
.
commit
.
author_gravatar_url
,
avatar_url
:
this
.
pipeline
.
commit
.
author_gravatar_url
,
});
});
}
}
}
// 4. If committer is not a GitLab User he/she can have a Gravatar
}
else
{
// 4. If committer is not a GitLab User he/she can have a Gravatar
if
(
this
.
pipeline
&&
this
.
pipeline
.
commit
)
{
commitAuthorInformation
=
{
commitAuthorInformation
=
{
avatar_url
:
this
.
pipeline
.
commit
.
author_gravatar_url
,
avatar_url
:
this
.
pipeline
.
commit
.
author_gravatar_url
,
web_url
:
`mailto:
${
this
.
pipeline
.
commit
.
author_email
}
`
,
web_url
:
`mailto:
${
this
.
pipeline
.
commit
.
author_email
}
`
,
...
...
changelogs/unreleased/winh-pipeline-author-link.yml
0 → 100644
View file @
50181499
---
title
:
Link to commit author user page from pipelines
merge_request
:
11100
author
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment