Skip to content

Commit

Permalink
chore(ops): initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoublejay committed Nov 1, 2023
1 parent f560767 commit cbb81e6
Show file tree
Hide file tree
Showing 43 changed files with 10,232 additions and 676 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{ts,tsx}]
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
8 changes: 8 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Define individuals that are responsible for code in a repository.
# More details are here: https://help.github.com/articles/about-codeowners/

.github @thedoublejay @kevzzsk @veralygit
packages @thedoublejay @kevzzsk @veralygit
package.json @thedoublejay @kevzzsk @veralygit
turbo.json @thedoublejay @kevzzsk @veralygit
README.md @thedoublejay @kevzzsk @veralygit
14 changes: 14 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- Thanks for sending a pull request! -->

#### What this PR does / why we need it:

#### Which issue(s) does this PR fixes?:

<!--
(Optional) Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

Fixes #

#### Additional comments?:
102 changes: 102 additions & 0 deletions .github/governance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
version: v1

issue:
labels:
- prefix: triage
list: ["accepted"]
multiple: false
author_association:
collaborator: true
member: true
owner: true
needs:
comment: |
@$AUTHOR: Thanks for opening an issue, it is currently awaiting triage.
The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.
- prefix: kind
list:
- feature
- bug
- question
- fix
- chore
- docs
- refactor
- dependencies
multiple: false
needs: true
author_association:
author: true
collaborator: true
member: true
owner: true

- prefix: area
list:
- workflow
- standard-web-linter
multiple: true
needs:
comment: |
@$AUTHOR: There are no 'area' labels on this issue. Adding an appropriate label will greatly expedite the process for us. You can add as many area as you see fit. **If you are unsure what to do you can ignore this!**
You can add area labels by leaving a `/area` comment.
author_association:
author: true
collaborator: true
member: true
owner: true

- prefix: priority
multiple: false
list: ["urgent-now", "important-soon"]
author_association:
collaborator: true
member: true
owner: true

chat_ops:
- cmd: /close
type: close
author_association:
author: true
collaborator: true
member: true
owner: true

- cmd: /duplicate
type: close
author_association:
collaborator: true
member: true
owner: true

- cmd: /duplicate
type: comment
comment: |
@$ISSUE_AUTHOR: This issue has been marked duplicate by @$AUTHOR, if you think this is a mistake, please reopen it!
author_association:
collaborator: true
member: true
owner: true

- cmd: /duplicate
type: label
label:
add: duplicate
author_association:
collaborator: true
member: true
owner: true

- cmd: /cc
type: none

- cmd: /assign
type: assign
author_association:
collaborator: true
member: true
owner: true
56 changes: 56 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
version: v1

labels:
- label: kind/feature
sync: true
matcher:
title: "^feat\\(.+\\): .+"

- label: kind/feature
sync: true
matcher:
title: "^feature\\(.+\\): .+"

- label: kind/fix
sync: true
matcher:
title: "^fix\\(.+\\): .+"

- label: kind/chore
sync: true
matcher:
title: "^chore\\(.+\\): .+"

- label: kind/refactor
sync: true
matcher:
title: "^refactor\\(.+\\): .+"

- label: kind/docs
sync: true
matcher:
title: "^docs\\(.+\\): .+"

- label: kind/dependencies
sync: true
matcher:
title: "^bump(\\(.+\\))?: .+"

- label: area/workflow
sync: true
matcher:
files: ".github/**"

checks:
- context: "Semantic Pull Request"
description:
success: Ready for review & merge.
failure: "Missing semantic title or label for merge [kind(directory): title]"
labels:
any:
- kind/feature
- kind/fix
- kind/chore
- kind/refactor
- kind/docs
- kind/dependencies
79 changes: 79 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# GitHub generic useful labels
- color: c4d471
name: duplicate
description: This issue or pull request already exists
- color: 7057ff
name: good first issue
description: Good for newcomers
- color: ffffff
name: wontfix
description: This will not be worked on

# Needs
- color: cc40d8
name: needs/kind
description: Needs kind label
- color: cc40d8
name: needs/area
description: Needs area label(s)
- color: cc40d8
name: needs/priority
description: Needs a priority label
- color: cc40d8
name: needs/triage
description: Waiting for triage to be accepted

# Kind
- color: e7e9eb
name: kind/bug
description: Something isn't working
- color: e7e9eb
name: kind/feature
description: New feature request
- color: e7e9eb
name: kind/question
description: Generic question
- color: e7e9eb
name: kind/chore
description: Non feature change
- color: e7e9eb
name: kind/fix
description: Fix a bug
- color: e7e9eb
name: kind/docs
description: Non feature documentation change
- color: e7e9eb
name: kind/refactor
description: Non feature refactor change
- color: e7e9eb
name: kind/dependencies
description: Pull requests that update a dependency file

# Area
- color: fbca04
name: area/workflow
- color: fbca04
name: area/sticky-jest
- color: fbca04
name: area/sticky-prettier
- color: fbca04
name: area/sticky-turbo
- color: fbca04
name: area/sticky-turbo-jest
- color: fbca04
name: area/sticky-typescript
- color: fbca04
name: area/eslint-config

# Priority
- color: d93f0b
name: priority/urgent-now
description: Urgent fix, as fast as possible
- color: d93f0b
name: priority/important-soon
description: Will be important soon

# Triage
- color: b1f488
name: triage/accepted
description: Triage has been accepted
27 changes: 27 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
categories:
- title: "Features"
labels:
- "kind/feature"
- title: "Fixes"
labels:
- "kind/fix"
- title: "Chore & Maintenance"
labels:
- "kind/refactor"
- "kind/chore"
- "kind/docs"
- title: "Dependencies"
labels:
- "kind/dependencies"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&'
version-resolver:
minor:
labels:
- "kind/feature"
default: patch
prerelease: false
template: |
$CHANGES
3 changes: 3 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["github>ordzaar/standard//renovate-config/web"]
}
77 changes: 77 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: CI

on:
pull_request:
branches: [main]
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- run: corepack enable pnpm

- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: ".nvmrc"
cache: pnpm

- run: pnpm install --frozen-lockfile

- run: pnpm build

Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- run: corepack enable pnpm

- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: ".nvmrc"
cache: pnpm

- run: pnpm install --frozen-lockfile
- run: pnpm test -- -- --maxWorkers=100% --coverage

lint_prettier:
name: Lint (prettier)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- run: corepack enable pnpm

- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: ".nvmrc"
cache: pnpm

- run: pnpm install --frozen-lockfile

- run: pnpm prettier --check .

lint_eslint:
name: Lint (eslint)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- run: corepack enable pnpm

- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: ".nvmrc"
cache: pnpm

- run: pnpm install --frozen-lockfile

- run: pnpm turbo run lint
Loading

0 comments on commit cbb81e6

Please sign in to comment.