-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fmt: all * fmt: rest * fmt: missing
- Loading branch information
Showing
51 changed files
with
1,454 additions
and
1,468 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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
[target.x86_64-pc-windows-msvc] | ||
rustflags = [ | ||
# Increases the stack size to 10MB, which is | ||
# in line with Linux (whereas default for Windows is 1MB) | ||
"-C", "link-arg=/STACK:10000000" | ||
# Increases the stack size to 10MB, which is | ||
# in line with Linux (whereas default for Windows is 1MB) | ||
"-C", | ||
"link-arg=/STACK:10000000", | ||
] | ||
|
||
[target.i686-pc-windows-msvc] | ||
rustflags = [ | ||
# Increases the stack size to 10MB, which is | ||
# in line with Linux (whereas default for Windows is 1MB) | ||
"-C", "link-arg=/STACK:10000000" | ||
# Increases the stack size to 10MB, which is | ||
# in line with Linux (whereas default for Windows is 1MB) | ||
"-C", | ||
"link-arg=/STACK:10000000", | ||
] |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Support | ||
url: https://t.me/foundry_support | ||
about: This issue tracker is only for bugs and feature requests. Support is available on Telegram! | ||
- name: Support | ||
url: https://t.me/foundry_support | ||
about: This issue tracker is only for bugs and feature requests. Support is available on Telegram! |
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
{ | ||
"categories": [{ | ||
"title": "## Features", | ||
"labels": ["T-feature"] | ||
}, { | ||
"title": "## Fixes", | ||
"labels": ["T-bug", "T-fix"] | ||
}], | ||
"ignore_labels": [ | ||
"L-ignore" | ||
], | ||
"template": "${{CHANGELOG}}\n## Other\n\n${{UNCATEGORIZED}}", | ||
"pr_template": "- ${{TITLE}} (#${{NUMBER}})", | ||
"empty_template": "- No changes" | ||
"categories": [ | ||
{ | ||
"title": "## Features", | ||
"labels": ["T-feature"] | ||
}, | ||
{ | ||
"title": "## Fixes", | ||
"labels": ["T-bug", "T-fix"] | ||
} | ||
], | ||
"ignore_labels": ["L-ignore"], | ||
"template": "${{CHANGELOG}}\n## Other\n\n${{UNCATEGORIZED}}", | ||
"pr_template": "- ${{TITLE}} (#${{NUMBER}})", | ||
"empty_template": "- No changes" | ||
} |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
module.exports = async ({github, context}, tagName) => { | ||
try { | ||
await github.rest.git.createRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: `refs/tags/${tagName}`, | ||
sha: context.sha, | ||
force: true | ||
}) | ||
} catch (err) { | ||
console.error(`Failed to create tag: ${tagName}`) | ||
console.error(err) | ||
} | ||
} | ||
module.exports = async ({ github, context }, tagName) => { | ||
try { | ||
await github.rest.git.createRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: `refs/tags/${tagName}`, | ||
sha: context.sha, | ||
force: true, | ||
}); | ||
} catch (err) { | ||
console.error(`Failed to create tag: ${tagName}`); | ||
console.error(err); | ||
} | ||
}; |
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
module.exports = async ({github, context}, tagName) => { | ||
try { | ||
await github.rest.git.updateRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: `tags/${tagName}`, | ||
sha: context.sha, | ||
force: true | ||
}) | ||
} catch (err) { | ||
console.error(`Failed to move nightly tag.`) | ||
console.error(`This should only happen the first time.`) | ||
console.error(err) | ||
} | ||
} | ||
module.exports = async ({ github, context }, tagName) => { | ||
try { | ||
await github.rest.git.updateRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: `tags/${tagName}`, | ||
sha: context.sha, | ||
force: true, | ||
}); | ||
} catch (err) { | ||
console.error(`Failed to move nightly tag.`); | ||
console.error(`This should only happen the first time.`); | ||
console.error(err); | ||
} | ||
}; |
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 |
---|---|---|
@@ -1,33 +1,33 @@ | ||
module.exports = async ({github, context}) => { | ||
console.log('Pruning old prereleases') | ||
module.exports = async ({ github, context }) => { | ||
console.log("Pruning old prereleases"); | ||
|
||
const { data: releases } = await github.rest.repos.listReleases({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo | ||
}) | ||
const { data: releases } = await github.rest.repos.listReleases({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
}); | ||
|
||
// Only consider releases tagged `nightly-${SHA}` for deletion | ||
let nightlies = releases.filter( | ||
(release) => release.tag_name.includes('nightly') && release.tag_name !== 'nightly' | ||
) | ||
// Only consider releases tagged `nightly-${SHA}` for deletion | ||
let nightlies = releases.filter( | ||
release => release.tag_name.includes("nightly") && release.tag_name !== "nightly" | ||
); | ||
|
||
// Keep newest 3 nightlies | ||
nightlies = nightlies.slice(3) | ||
// Keep newest 3 nightlies | ||
nightlies = nightlies.slice(3); | ||
|
||
for (const nightly of nightlies) { | ||
console.log(`Deleting nightly: ${nightly.tag_name}`) | ||
await github.rest.repos.deleteRelease({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
release_id: nightly.id | ||
}) | ||
console.log(`Deleting nightly tag: ${nightly.tag_name}`) | ||
await github.rest.git.deleteRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: `tags/${nightly.tag_name}` | ||
}) | ||
} | ||
for (const nightly of nightlies) { | ||
console.log(`Deleting nightly: ${nightly.tag_name}`); | ||
await github.rest.repos.deleteRelease({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
release_id: nightly.id, | ||
}); | ||
console.log(`Deleting nightly tag: ${nightly.tag_name}`); | ||
await github.rest.git.deleteRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: `tags/${nightly.tag_name}`, | ||
}); | ||
} | ||
|
||
console.log('Done.') | ||
} | ||
console.log("Done."); | ||
}; |
Oops, something went wrong.