Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overrides for yaml/toml/json/ini to match blockchain #2304

Merged
merged 4 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Bug Report
description: File a bug report
title: '[Bug] '
labels: ['bug']
title: "[Bug] "
labels: ["bug"]
#assignees:
body:
- type: markdown
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ contact_links:
https://github.com/Chia-Network/chia-blockchain/discussions/new?category=ideas
- about: Get support on the Chia Discord chat channels.
name: Join the Discord support chat
url: 'https://discord.gg/chia'
url: "https://discord.gg/chia"
24 changes: 12 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@
version: 2
updates:
# Enable version updates for npm
- package-ecosystem: 'npm'
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: 'electron-react '
directory: "electron-react "
# Check the npm registry for updates every day (weekdays)
schedule:
interval: 'weekly'
day: 'monday'
target-branch: 'dev'
interval: "weekly"
day: "monday"
target-branch: "dev"
pull-request-branch-name:
# Separate sections of the branch name with a hyphen
# for example, `dependabot-npm_and_yarn-next_js-acorn-6.4.1`
separator: '-'
separator: "-"

# Maintain dependencies for GitHub Actions
- package-ecosystem: 'github-actions'
directory: '/'
- package-ecosystem: "github-actions"
directory: "/"
# Check for updates once a week
schedule:
interval: 'weekly'
day: 'monday'
target-branch: 'dev'
interval: "weekly"
day: "monday"
target-branch: "dev"
pull-request-branch-name:
# Separate sections of the branch name with a hyphen
# for example, `dependabot-npm_and_yarn-next_js-acorn-6.4.1`
separator: '-'
separator: "-"
6 changes: 3 additions & 3 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Check npm audit and locales
on:
push:
branches-ignore:
- 'main'
- "main"
pull_request:
branches-ignore:
- 'main'
- "main"

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}--${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }}
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Setup Node 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: "18.x"

- name: Check npm audit on ${{ matrix.os }}
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ on:
# We never push directly to 'main', so do not run on it
push:
branches-ignore:
- 'main'
- "main"
pull_request:
branches-ignore:
- 'main'
- "main"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
Expand All @@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-node@v3
with:
# Use node version from '.nvmrc' instead of hardcoding here
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: npm ci
run: npm ci
- name: npm run build:ci
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/crowdin-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
workflow_dispatch:
inputs:
pr_target:
description: 'PR Target Branch for Updated Translations'
description: "PR Target Branch for Updated Translations"
type: string
default: 'main'
default: "main"
schedule:
- cron: '0 0 * * 0'
- cron: "0 0 * * 0"

permissions:
id-token: write
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: '${{ inputs.pr_target || github.ref_name }}'
ref: "${{ inputs.pr_target || github.ref_name }}"

- name: Vault Login
uses: Chia-Network/actions/vault/login@main
Expand Down Expand Up @@ -64,14 +64,14 @@ jobs:
crowdin_branch_name: main
localization_branch_name: ${{ env.localization_branch_name }}
create_pull_request: true
pull_request_title: 'New Crowdin Translations'
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
pull_request_title: "New Crowdin Translations"
pull_request_body: "New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)"
pull_request_base_branch_name: "${{ inputs.pr_target || 'main' }}"
github_user_name: 'Chia Automation'
github_user_email: '[email protected]'
github_user_name: "Chia Automation"
github_user_email: "[email protected]"
gpg_private_key: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_KEY_RSA }}
gpg_passphrase: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_PASSPHRASE }}
skip_ref_checkout: 'true'
skip_ref_checkout: "true"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: '🚨 Dependency Review'
name: "🚨 Dependency Review"
on: [pull_request]

permissions:
Expand All @@ -15,10 +15,10 @@ jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
- name: "Checkout Repository"
uses: actions/checkout@v4

- name: 'Dependency Review'
- name: "Dependency Review"
uses: actions/dependency-review-action@v4
with:
deny-licenses: AGPL-1.0-only, AGPL-1.0-or-later, AGPL-1.0-or-later, AGPL-3.0-or-later, GPL-1.0-only, GPL-1.0-or-later, GPL-2.0-only, GPL-2.0-or-later, GPL-3.0-only, GPL-3.0-or-later
20 changes: 10 additions & 10 deletions .github/workflows/extract-strings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Extract Strings for Translation
on:
push:
branches:
- 'main'
- "main"
workflow_dispatch:

permissions:
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Setup Node 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: "18.x"

- name: Set up commit signing
uses: Chia-Network/actions/commit-sign/gpg@main
Expand All @@ -45,13 +45,13 @@ jobs:
uses: peter-evans/create-pull-request@v5
with:
base: main
body: 'Extracted latest strings from source'
body: "Extracted latest strings from source"
branch: string-updates
commit-message: 'Extracted latest strings from source'
commit-message: "Extracted latest strings from source"
delete-branch: true
reviewers: 'emlowe'
assignees: 'emlowe'
title: 'Latest Strings'
token: '${{ secrets.GITHUB_TOKEN }}'
committer: 'ChiaAutomation <[email protected]>'
author: 'ChiaAutomation <[email protected]>'
reviewers: "emlowe"
assignees: "emlowe"
title: "Latest Strings"
token: "${{ secrets.GITHUB_TOKEN }}"
committer: "ChiaAutomation <[email protected]>"
author: "ChiaAutomation <[email protected]>"
4 changes: 2 additions & 2 deletions .github/workflows/stale-issue.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: 'Close stale issues'
name: "Close stale issues"
on:
schedule:
- cron: '0 11 * * *'
- cron: "0 11 * * *"

jobs:
stale:
Expand Down
13 changes: 12 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
{
"printWidth": 120,
"singleQuote": true
"singleQuote": true,
"overrides": [
{
"files": ["*.yaml", "*.yml", "*.toml", "*.json", "*.ini"],
"options": {
"tabWidth": 2,
"singleQuote": false,
"experimentalTernaries": true,
"useTabs": false
}
}
]
}
4 changes: 2 additions & 2 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project_id: 1
api_token_env: CROWDIN_PERSONAL_TOKEN
base_path: '.'
base_url: 'https://chia.crowdin.com'
base_path: "."
base_url: "https://chia.crowdin.com"
preserve_hierarchy: true
files:
- source: /packages/core/src/locales/en-US/*.po
Expand Down
Loading