mirror of
https://github.com/AtlasMediaGroup/Scissors-Website.git
synced 2024-11-05 09:06:07 +00:00
swap to paperlink direct link
This commit is contained in:
parent
ed45e29823
commit
d8bd1efdd7
@ -48,7 +48,7 @@ const DownloadPage = () => {
|
||||
<ul className={"builds"}>
|
||||
{jobs.get(Array.from(jobs.keys()).filter(value => value.name === version)[0])?.map(value => {
|
||||
return <li>
|
||||
<Button href={value.url}>#{value.number}</Button>
|
||||
<Button href={value.artifact ? `${value.url}/artifact/${value.artifact}` : value.url}>#{value.number}</Button>
|
||||
<ul className={`changes-${value.number}`}>
|
||||
{value.changes?.map(value1 => {
|
||||
return <li>[<a href={`https://github.com/AtlasMediaGroup/Scissors/commit/${value1.id}`}>{value1.id}</a>] {value1.comment}</li>
|
||||
|
@ -12,7 +12,8 @@ export type Build = {
|
||||
number: number,
|
||||
url: string,
|
||||
changes?: BuildChange[],
|
||||
timestamp?: number
|
||||
timestamp?: number,
|
||||
artifact?: string
|
||||
}
|
||||
|
||||
export type BuildChange = {
|
||||
@ -49,6 +50,13 @@ export function getBuilds(version: string): Promise<Build[]> {
|
||||
change.id = change.id.substring(0, 7)
|
||||
}
|
||||
build.changes = changes
|
||||
if (value1.data.artifacts) {
|
||||
let artifacts: any[] = value1.data.artifacts
|
||||
if (artifacts.length > 0) {
|
||||
build.artifact = value1.data.artifacts[0].relativePath
|
||||
}
|
||||
}
|
||||
|
||||
count++;
|
||||
if (count === builds.length - 1) {
|
||||
resolve(builds)
|
||||
|
Loading…
Reference in New Issue
Block a user