Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Jul 14, 2024
1 parent af54d89 commit 855651a
Show file tree
Hide file tree
Showing 88 changed files with 2,840 additions and 1,366 deletions.
34 changes: 17 additions & 17 deletions .github/ISSUE_TEMPLATE/1-documentation_change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ name: Report Docs Issue
description: Suggest an addition or modification to the documentation
labels: ["documentation"]
body:
- type: dropdown
attributes:
label: Change Type
description: What type of change are you proposing?
options:
- Addition
- Correction
- Removal
- Cleanup (formatting, typos, etc.)
validations:
required: true
- type: dropdown
attributes:
label: Change Type
description: What type of change are you proposing?
options:
- Addition
- Correction
- Removal
- Cleanup (formatting, typos, etc.)
validations:
required: true

- type: textarea
attributes:
label: Proposed Changes
description: Describe the proposed changes and why they are necessary
validations:
required: true
- type: textarea
attributes:
label: Proposed Changes
description: Describe the proposed changes and why they are necessary
validations:
required: true
40 changes: 20 additions & 20 deletions .github/ISSUE_TEMPLATE/2-feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ name: 🛠️ Request New Feature
description: Let us know what you would like to see added.
labels: ["enhancement"]
body:
- type: textarea
id: description
attributes:
label: Describe the feature in detail (code, mocks, or screenshots encouraged)
validations:
required: true
- type: dropdown
id: category
attributes:
label: What type of pull request would this be?
options:
- "New Feature"
- "Enhancement"
- "Guide"
- "Docs"
- "Other"
- type: textarea
id: references
attributes:
label: Provide relevant links or additional information.
- type: textarea
id: description
attributes:
label: Describe the feature in detail (code, mocks, or screenshots encouraged)
validations:
required: true
- type: dropdown
id: category
attributes:
label: What type of pull request would this be?
options:
- "New Feature"
- "Enhancement"
- "Guide"
- "Docs"
- "Other"
- type: textarea
id: references
attributes:
label: Provide relevant links or additional information.
100 changes: 50 additions & 50 deletions .github/ISSUE_TEMPLATE/3-bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
name: "🐛 Bug report"
description: Report an issue with mode-watcher
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: bug-description
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us how in the description. Thanks!
placeholder: Bug description
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Reproduction
description: |
Please provide a link to a repo or Stackblitz that can reproduce the problem you ran into. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "needs reproduction" label. If no reproduction is provided within a reasonable time-frame, the issue will be closed.
To get started, you can use the following StackBlitz template:
https://mode-watcher.svecosystem.com/repro
placeholder: Reproduction
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs
description: "Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text."
render: bash
- type: textarea
id: system-info
attributes:
label: System Info
description: Output of `npx envinfo --system --npmPackages svelte,mode-watcher,@sveltejs/kit --binaries --browsers`
render: bash
placeholder: System, Binaries, Browsers
validations:
required: true
- type: dropdown
id: severity
attributes:
label: Severity
description: Select the severity of this issue
options:
- annoyance
- blocking an upgrade
- blocking all usage of mode-watcher
validations:
required: true
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: bug-description
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us how in the description. Thanks!
placeholder: Bug description
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Reproduction
description: |
Please provide a link to a repo or Stackblitz that can reproduce the problem you ran into. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "needs reproduction" label. If no reproduction is provided within a reasonable time-frame, the issue will be closed.
To get started, you can use the following StackBlitz template:
https://mode-watcher.svecosystem.com/repro
placeholder: Reproduction
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs
description: "Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text."
render: bash
- type: textarea
id: system-info
attributes:
label: System Info
description: Output of `npx envinfo --system --npmPackages svelte,mode-watcher,@sveltejs/kit --binaries --browsers`
render: bash
placeholder: System, Binaries, Browsers
validations:
required: true
- type: dropdown
id: severity
attributes:
label: Severity
description: Select the severity of this issue
options:
- annoyance
- blocking an upgrade
- blocking all usage of mode-watcher
validations:
required: true
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Get Help
url: https://github.com/huntabyte/mode-watcher/discussions/new?category=help
about: If you can't get something to work the way you expect, open a question in our discussion forums.
- name: Discord
url: https://discord.gg/rePvPCE9dh
about: If you need to have a back-and-forth conversation, join the Discord server.
- name: Get Help
url: https://github.com/huntabyte/mode-watcher/discussions/new?category=help
about: If you can't get something to work the way you expect, open a question in our discussion forums.
- name: Discord
url: https://discord.gg/rePvPCE9dh
about: If you need to have a back-and-forth conversation, join the Discord server.
102 changes: 51 additions & 51 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,63 +15,63 @@

name: Docs - Preview Deployment
on:
pull_request_target:
paths:
- sites/docs/**
- packages/mode-watcher/**
pull_request_target:
paths:
- sites/docs/**
- packages/mode-watcher/**

# cancel in-progress runs on new commits to same PR (github.event.number)
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
deploy-preview:
permissions:
contents: read
pull-requests: write
deployments: write
runs-on: ubuntu-latest
name: Deploy Preview to Cloudflare Pages (admin)
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20
deploy-preview:
permissions:
contents: read
pull-requests: write
deployments: write
runs-on: ubuntu-latest
name: Deploy Preview to Cloudflare Pages (admin)
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20

# PNPM Store cache setup
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
# PNPM Store cache setup
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Install dependencies
run: pnpm install

- name: Build site
run: pnpm build
- name: Build site
run: pnpm build

- name: Deploy to Cloudflare Pages
id: cloudflare-pages-deploy
uses: AdrianGonz97/refined-cf-pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: mode-watcher
directory: ./.svelte-kit/cloudflare
workingDirectory: sites/docs
deploymentName: Preview
- name: Deploy to Cloudflare Pages
id: cloudflare-pages-deploy
uses: AdrianGonz97/refined-cf-pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: mode-watcher
directory: ./.svelte-kit/cloudflare
workingDirectory: sites/docs
deploymentName: Preview
Loading

0 comments on commit 855651a

Please sign in to comment.