Skip to content

Commit a82b807

Browse files
authored
Only show CI builds from the ftx1 branch
1 parent 8a38112 commit a82b807

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

src/pages/download.js

+16-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,24 @@ const IndexPage = () => {
2525
<div className="px-8 mx-auto md:py-18 max-w-page">
2626
{data === undefined ? (
2727
<div className="preloader-container">
28-
<Spinner/>
28+
<Spinner />
2929
</div>
3030
) : (
31-
data.map((build, idx) => {
32-
return <BuildCard key={idx} createdAt={build.createdAt} message={build.commit.message} download_url={`https://skyline-builds.alula.gay/cache/${build.id}/${build.apkName}`} github_url={`https://github.com/skyline-emu/skyline/commit/${build.commit.id}`} branch={build.branch} hash={build.commit.id} number={build.runNumber} />;
31+
data.flatMap((build, idx) => {
32+
if (build.branch === "ftx1") {
33+
return (
34+
<BuildCard
35+
key={idx}
36+
createdAt={build.createdAt}
37+
message={build.commit.message}
38+
download_url={`https://skyline-builds.alula.gay/cache/${build.id}/${build.apkName}`}
39+
github_url={`https://github.com/skyline-emu/skyline/commit/${build.commit.id}`}
40+
branch={build.branch}
41+
hash={build.commit.id}
42+
number={build.runNumber}
43+
/>
44+
);
45+
} else return [];
3346
})
3447
)}
3548
</div>

0 commit comments

Comments
 (0)