This repository has been archived by the owner on Jan 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from Redot-Engine/develop
Merge develop into main
- Loading branch information
Showing
13 changed files
with
1,532 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Lint | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.18.0 | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Validate current commit (last commit) with commitlint | ||
run: npx commitlint --last --verbose | ||
|
||
- name: Typecheck | ||
run: yarn typecheck | ||
|
||
- name: Lint | ||
run: yarn lint | ||
|
||
- name: Format check | ||
run: yarn format-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
npm run lint | ||
npm run typecheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default { extends: ["@commitlint/config-conventional"] }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
export async function onRequest(context) | ||
{ | ||
if (!context.params.mirrorlist.includes(".json")) | ||
{ | ||
return new Response(JSON.stringify({ error: "Bad request: Expected .json format" }), { | ||
status: 400, | ||
headers: { "Content-Type": "application/json" }, | ||
}); | ||
} | ||
|
||
const version = context.params.mirrorlist.replace(".json", ""); | ||
|
||
const downloadPathVersion = version.replace(".mono", ""); | ||
|
||
const mirrorlist = { | ||
mirrors: [ | ||
{ | ||
name: "Official GitHub Releases mirror", | ||
url: `https://github.com/Redot-Engine/redot-engine/releases/download/redot-${ downloadPathVersion }/Redot_v${ version }_export_templates.tpz`, | ||
}, | ||
], | ||
}; | ||
|
||
return new Response(JSON.stringify(mirrorlist), { | ||
headers: { "Content-Type": "application/json" }, | ||
}); | ||
} |
Oops, something went wrong.