Skip to content

Commit

Permalink
Merge pull request #23 from zkSync-Community-Hub/staging
Browse files Browse the repository at this point in the history
chore: merge staging to main
  • Loading branch information
itsacoyote authored Jun 5, 2024
2 parents 6b3daa2 + aa9219f commit 06782b1
Show file tree
Hide file tree
Showing 164 changed files with 11,118 additions and 3,996 deletions.
3 changes: 0 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# Production license for @nuxt/ui-pro, get one at https://ui.nuxt.com/pro/purchase
NUXT_UI_PRO_LICENSE=

# Public URL, used for OG Image when running nuxt generate
NUXT_PUBLIC_SITE_URL=
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

22 changes: 0 additions & 22 deletions .eslintrc.json

This file was deleted.

3 changes: 2 additions & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"projects": {
"default": "community-cookbook-staging"
"default": "community-cookbook-staging",
"prod": "community-cookbook-59807"
}
}
44 changes: 0 additions & 44 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Bug Report
description: File a bug report.
title: "[Bug]: "
labels: ["bug", "triage"]
assignees:
- zkSync-Community-Hub/zksync-devrel
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! Please fill out as much as you can, the more details the better we can help to resolve the issue.
- type: input
id: guide
attributes:
label: Guide you're having trouble with
description: If this feature is related to a specific guide, please provide the link to the guide.
placeholder: https://code.community.com/guides/the-guide
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
validations:
required: true
- type: textarea
id: expected
attributes:
label: What did you expect to happen?
placeholder: Tell us what you expected!
- type: textarea
id: environment
attributes:
label: Environment
description: Please share any relevant information about your environment.
placeholder: |
- Operating System: [e.g. macOS]
- Node version: [e.g., v18.17.0]
- Other relevant environment details:
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/zkSync-Community-Hub/community-code/blob/main/CODE_OF_CONDUCT.md).
options:
- label: I agree to follow this project's Code of Conduct
required: true
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ blank_issues_enabled: true
contact_links:
- name: zksync-developers Discussion
url: https://github.com/zkSync-Community-Hub/zkync-developers/discussions
about: Please provide feedback, and ask questions here.
about: If you have any questions or need help beyond this project, please visit our Discussions page for zksync developers.
26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/feature_report.md

This file was deleted.

31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Feature Request
description: Is there a feature you would like to see in Code Community? Let us know!
title: "[Feature]: "
labels: ["feature", "triage"]
assignees:
- zkSync-Community-Hub/zksync-devrel
body:
- type: markdown
attributes:
value: |
We're constantly adding new features to the Code Community. If you have a feature you'd like to see, please fill out this form.
- type: textarea
id: description
attributes:
label: Description
description: Please provide a brief description of the feature you would like to see.
placeholder: Tell us what you would like to see!
- type: textarea
id: rationale
attributes:
label: Rationale
description: Why do you think this feature would be beneficial to the community?
placeholder: Tell us why you think this feature would be beneficial!
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/zkSync-Community-Hub/community-code/blob/main/CODE_OF_CONDUCT.md).
options:
- label: I agree to follow this project's Code of Conduct
required: true
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/new_guide_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: New Guide Request
description: Use this form to request a guide you would like to see in Code Community.
title: "[Guide]: "
labels: ["guide", "triage"]
assignees:
- zkSync-Community-Hub/zksync-devrel
body:
- type: markdown
attributes:
value: |
We're constantly adding new guides to the Code Community. If you have a guide you'd like to see, please fill out this form.
- type: textarea
id: description
attributes:
label: Description
description: Please provide a brief description of the guide you would like to see.
placeholder: Tell us what you would like to see!
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/zkSync-Community-Hub/community-code/blob/main/CODE_OF_CONDUCT.md).
options:
- label: I agree to follow this project's Code of Conduct
required: true
33 changes: 20 additions & 13 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
# What :computer:
* First thing updated with this PR
* Second thing updated with this PR
* Third thing updated with this PR
<!--
# Why :hand:
* Reason why first thing was added to PR
* Reason why second thing was added to PR
* Reason why third thing was added to PR
Thank you for contributing to the zkSync Code Community!
# Evidence :camera:
Include screenshots, screen recordings, or `console` output here demonstrating that your changes work as intended
Before submitting the PR, please make sure you do the following:
<!-- All sections below are optional. You can uncomment any section applicable to your Pull Request. -->
- Read the [Contributing Guide](https://github.com/zkSync-Community-Hub/community-code/blob/main/CONTRIBUTING.md).
- Understand our [Code of Conduct](https://github.com/zkSync-Community-Hub/community-code/blob/main/CODE_OF_CONDUCT.md)
<!-- # Notes :memo:
* Any notes/thoughts that the reviewers should know prior to reviewing the code? -->
-->

# Description

<!-- Please describe what are the changes and what they are solving for in this PR. -->

## Linked Issues

<!-- If you have any issues this PR is related to, link them here. -->
<!--
Check out https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
on how to automate linking a GitHub Issue to a PR.
-->

## Additional context
30 changes: 17 additions & 13 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: [main, staging]
workflow_dispatch:

env:
HUSKY: 0
CI: true

jobs:
format:
name: code_format
Expand All @@ -13,20 +17,20 @@ jobs:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install Dependencies
run: bun install
run: bun install --frozen-lockfile
- name: Runs Prettier Formatter
run: bun run lint:prettier

# spelling:
# name: spelling
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: oven-sh/setup-bun@v1
# - name: Install Dependencies
# run: bun install
# - name: Runs cSpell Spell Checker
# run: bun run lint:spelling
spelling:
name: spelling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install Dependencies
run: bun install --frozen-lockfile
- name: Runs cSpell Spell Checker
run: bun run lint:spelling

markdown-lint:
name: markdown_lint
Expand All @@ -35,7 +39,7 @@ jobs:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install Dependencies
run: bun install
run: bun install --frozen-lockfile
- name: Runs Markdown Linter
run: bun run lint:markdown

Expand All @@ -46,6 +50,6 @@ jobs:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install Dependencies
run: bun install
run: bun install --frozen-lockfile
- name: Runs ESLint
run: bun run lint:eslint
19 changes: 12 additions & 7 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@ on:
pull_request:
workflow_dispatch:

env:
NUXT_SITE_ENV: staging # used for NuxtSEO to disable things like indexing on staging
HUSKY: 0
CI: true

permissions:
checks: write
contents: read
pull-requests: write

jobs:
build_and_preview:
env:
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
NUXT_PUBLIC_SITE_URL: ${{ secrets.NUXT_PUBLIC_SITE_URL }}
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
outputs:
Expand All @@ -18,14 +27,10 @@ jobs:
- uses: oven-sh/setup-bun@v1

- name: "Install dependencies"
run: bun install
run: bun install --production --frozen-lockfile

- name: "Deploy target: preview"
run: bun run generate

- uses: untitaker/hyperlink@0.1.32
with:
args: .output/public/ --sources content/
run: bun run build

- name: "Deploy preview"
uses: matter-labs/action-hosting-deploy@main
Expand Down
Loading

0 comments on commit 06782b1

Please sign in to comment.