Skip to content

Commit

Permalink
fmt: all (#3398)
Browse files Browse the repository at this point in the history
* fmt: all

* fmt: rest

* fmt: missing
  • Loading branch information
DaniPopes authored Sep 28, 2022
1 parent 39bb5b2 commit 860d083
Show file tree
Hide file tree
Showing 51 changed files with 1,454 additions and 1,468 deletions.
14 changes: 8 additions & 6 deletions .cargo/config.toml
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",
]
98 changes: 48 additions & 50 deletions .github/ISSUE_TEMPLATE/BUG-FORM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,52 @@ name: Bug report
description: File a bug report
labels: ["T-bug"]
body:
- type: markdown
attributes:
value: |
Please ensure that the bug has not already been filed in the issue tracker.
- type: markdown
attributes:
value: |
Please ensure that the bug has not already been filed in the issue tracker.
Thanks for taking the time to report this bug!
- type: dropdown
attributes:
label: Component
description: What component is the bug in?
multiple: true
options:
- Forge
- Cast
- Anvil
- Foundryup
- Other (please describe)
validations:
required: true
- type: checkboxes
attributes:
label: Have you ensured that all of these are up to date?
options:
- label: Foundry
- label: Foundryup
validations:
required: true
- type: input
attributes:
label: What version of Foundry are you on?
placeholder: "Run forge --version and paste the output here"
- type: input
attributes:
label: What command(s) is the bug in?
description: Leave empty if not relevant
placeholder: "For example: forge test"
- type: dropdown
attributes:
label: Operating System
description: What operating system are you on?
options:
- Windows
- macOS (Intel)
- macOS (Apple Silicon)
- Linux
- type: textarea
attributes:
label: Describe the bug
description: Please include relevant Solidity snippets as well if relevant.
validations:
required: true
Thanks for taking the time to report this bug!
- type: dropdown
attributes:
label: Component
description: What component is the bug in?
multiple: true
options:
- Forge
- Cast
- Anvil
- Foundryup
- Other (please describe)
validations:
required: true
- type: checkboxes
attributes:
label: Have you ensured that all of these are up to date?
options:
- label: Foundry
- label: Foundryup
- type: input
attributes:
label: What version of Foundry are you on?
placeholder: "Run forge --version and paste the output here"
- type: input
attributes:
label: What command(s) is the bug in?
description: Leave empty if not relevant
placeholder: "For example: forge test"
- type: dropdown
attributes:
label: Operating System
description: What operating system are you on?
options:
- Windows
- macOS (Intel)
- macOS (Apple Silicon)
- Linux
- type: textarea
attributes:
label: Describe the bug
description: Please include relevant Solidity snippets as well if relevant.
validations:
required: true
56 changes: 28 additions & 28 deletions .github/ISSUE_TEMPLATE/FEATURE-FORM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@ name: Feature request
description: Suggest a feature
labels: ["T-feature"]
body:
- type: markdown
attributes:
value: |
Please ensure that the feature has not already been requested in the issue tracker.
- type: markdown
attributes:
value: |
Please ensure that the feature has not already been requested in the issue tracker.
Thanks for helping us improve Foundry!
- type: dropdown
attributes:
label: Component
description: What component is the feature for?
multiple: true
options:
- Forge
- Cast
- Anvil
- Foundryup
- Other (please describe)
validations:
required: true
- type: textarea
attributes:
label: Describe the feature you would like
description: Please also describe what the feature is aiming to solve, if relevant.
validations:
required: true
- type: textarea
attributes:
label: Additional context
description: Add any other context to the feature (like screenshots, resources)
Thanks for helping us improve Foundry!
- type: dropdown
attributes:
label: Component
description: What component is the feature for?
multiple: true
options:
- Forge
- Cast
- Anvil
- Foundryup
- Other (please describe)
validations:
required: true
- type: textarea
attributes:
label: Describe the feature you would like
description: Please also describe what the feature is aiming to solve, if relevant.
validations:
required: true
- type: textarea
attributes:
label: Additional context
description: Add any other context to the feature (like screenshots, resources)
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
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!
27 changes: 14 additions & 13 deletions .github/changelog.json
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"
}
28 changes: 14 additions & 14 deletions .github/scripts/create-tag.js
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);
}
};
30 changes: 15 additions & 15 deletions .github/scripts/move-tag.js
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);
}
};
56 changes: 28 additions & 28 deletions .github/scripts/prune-prereleases.js
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.");
};
Loading

0 comments on commit 860d083

Please sign in to comment.