Skip to content

Commit

Permalink
feat(repo): switch to bun and esm (#611)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: danadajian <[email protected]>
  • Loading branch information
danadajian and danadajian committed May 13, 2024
1 parent c2e2936 commit 1431fc1
Show file tree
Hide file tree
Showing 133 changed files with 3,538 additions and 13,147 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

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

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/add-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Add Labels

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/add-labels.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/add-late-review-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Add Late Review Label

on:
pull_request_review:
types: [ submitted ]
types: [submitted]
paths:
- 'src/helpers/add-late-review-label.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/add-pr-approval-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Add PR Approval Label

on:
pull_request_review:
types: [ submitted ]
types: [submitted]
paths:
- 'src/helpers/add-pr-approval-label.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/approvals-satisfied.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Approvals Satisfied

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/approvals-satisfied.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/approve-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Auto Approve PR

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/approve-pr.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/are-reviewers-required.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Are Reviewers Requested

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/are-reviewers-required.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/assign-pr-reviewers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Assign PR Reviewer

on:
pull_request_review:
types: [ submitted ]
types: [submitted]
paths:
- 'src/helpers/assign-pr-reviewers.ts'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-merge-safety.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Check Merge Safety

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/check-merge-safety.ts'

Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/check-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Check PR Title

on:
pull_request:
branches: [ main ]
types: [ edited, opened, reopened, synchronize ]
branches: [main]
types: [edited, opened, reopened, synchronize]

jobs:
test:
Expand All @@ -16,12 +16,16 @@ jobs:
- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies
run: bun install

- name: Validate PR Title Contains Valid Descriptor
run: bun ./scripts/verify-pr-title-has-valid-descriptor.ts
env:
TITLE: ${{ github.event.pull_request.title }}

- uses: ./
with:
helper: check-pr-title
# pattern: 'my-regex-pattern' (optional: pattern must be wrapped in single quotes)
helper:
check-pr-title
# pattern: 'my-regex-pattern' (optional: pattern must be wrapped in single quotes)
4 changes: 2 additions & 2 deletions .github/workflows/close-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Close Pr

on:
pull_request:
branches: [ main ]
types: [ opened, reopened ]
branches: [main]
types: [opened, reopened]
paths:
- 'src/helpers/close-pr.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Create PR Comment

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/create-pr-comment.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-project-card.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Create Project Card

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/create-project-card.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/delete-stale-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Delete Stale Branches

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/delete-stale-branches.ts'

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deployments

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/delete-deployment.ts'
- 'src/helpers/initiate-deployment.ts'
Expand All @@ -25,7 +25,7 @@ jobs:

set-deployment-status:
name: Set Deployment Status
needs: [ initiate-deployment ]
needs: [initiate-deployment]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -42,7 +42,7 @@ jobs:

delete-deployment:
name: Delete Deployment
needs: [ initiate-deployment, set-deployment-status ]
needs: [initiate-deployment, set-deployment-status]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/filter-paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Filter Paths

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/filter-paths.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Generate Matrix

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/generate-matrix.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-path-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Generate Path Matrix

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/generate-path-matrix.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/get-changed-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Get Changed Files

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/get-changed-files.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/is-user-in-team.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Is User In Team

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/is-user-in-team.ts'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manage-merge-queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Manage Merge Queue

on:
pull_request:
branches: [ main ]
types: [ labeled, unlabeled, closed ]
branches: [main]
types: [labeled, unlabeled, closed]

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/move-project-card.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Move Project Card

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/move-project-card.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notify-pipeline-complete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Notify Pipeline Complete

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/notify-pipeline-complete.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prepare-queued-pr-for-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Prepare Queued PR For Merge

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/prepare-queued-pr-for-merge.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish

on:
release:
types: [ edited, published ]
types: [edited, published]

jobs:
publish:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

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

jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/remove-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Remove Label

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/remove-label.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/remove-pr-from-merge-queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Remove Pr From Merge Queue

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/remove-pr-from-merge-queue.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rerun-pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Rerun PR Checks

on:
pull_request:
types: [ labeled ]
types: [labeled]

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/set-commit-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Set Commit Status

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/set-commit-status.ts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/set-latest-pipeline-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Set Latest Pipeline Status

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src/helpers/set-latest-pipeline-status.ts'

Expand Down
Loading

0 comments on commit 1431fc1

Please sign in to comment.