Ghost
New
pippinmole
/
ghost
public
forked from
ghost/ghost
Source code of Ghost - On Ghost
Star
0
Fork
0
Code
Issues
0
Pull requests
0
main
76
branches
Go to file
t
Code
ghost
apps
api
src
lib
imports
attribution.ts
allow importing repos from github, including their end to end resources like issues, PRs, releases
78521fe
12 days ago
5 lines · 347 B
1
/**
Everything an import brings in is authored by the importer account, so the GitHub author is credited in the text itself.
*/
2
export
function
attributed
(
login
3
const
credit
=
4
return
body
?
5
}
:
string
,
action
:
string
,
body
:
string
|
null
)
{
`
_
${
action
}
by [@
${
login
}
](https://github.com/
${
login
}
) on GitHub._
`
;
`
${
credit
}
\n\n
${
body
}
`
:
credit
;