Skip to content

Project repository links to Paper-Archive when version is >26.1 #219

@tjalp

Description

@tjalp

On the software download page for experimental builds of Paper 26.1(.1), the commit hashes link to the Paper-Archive repository, instead of the Paper repository. Minor issue.

export const getProjectRepository = (project: string, version: string): string => {
if (project !== "paper") return `https://github.com/PaperMC/${project}`;
if (project === "paper" && version === "1.7.10") return "https://github.com/PaperMC/Paper-1.7";
const baseVersion = [21, 4]; // 1.21.4 is after the hardfork
const isBelowBaseVersion = version
.replace(/^1\./, "")
.split(".")
.map(Number)
.some((v, i) => v < (baseVersion[i] || 0));
return isBelowBaseVersion ? "https://github.com/PaperMC/Paper-Archive" : "https://github.com/PaperMC/Paper";
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions