fixfmt
This commit is contained in:
parent
531cec1c54
commit
8c86c45f27
|
@ -61,7 +61,7 @@ const formatCommit = (commit, repoUrl) => {
|
||||||
*/
|
*/
|
||||||
const formatMessage = (data, commits) => {
|
const formatMessage = (data, commits) => {
|
||||||
const repoUrl = data.repository.html_url || data.repository.url
|
const repoUrl = data.repository.html_url || data.repository.url
|
||||||
const repoName = data.repository.name.split('/').pop()
|
const repoName =(data.repository.name || data.repository.full_name || '').split('/').pop()
|
||||||
const branch = data.ref.split('/').pop()
|
const branch = data.ref.split('/').pop()
|
||||||
const branchUrl = `${repoUrl}/tree/${branch}`
|
const branchUrl = `${repoUrl}/tree/${branch}`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user