Skip to content

Commit

Permalink
reenter ci and take-issue.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Codehagen committed Apr 24, 2024
1 parent 6bcf913 commit ffa9d1c
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflow/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI

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

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

# You can leverage Vercel Remote Caching with Turbo to speed up your builds
# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds
# env:
# FORCE_COLOR: 3
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github/setup

- name: Copy env
shell: bash
run: cp .env.example .env.local

- name: Lint
run: pnpm lint && pnpm lint:ws

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github/setup

- name: Format
run: pnpm format

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github/setup

- name: Typecheck
run: pnpm typecheck
20 changes: 20 additions & 0 deletions .github/workflow/take-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# .github/workflows/take.yml
name: Assign issue to contributor
on:
issue_comment:

jobs:
assign:
name: Take an issue
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: take the issue
uses: bdougie/take-action@main
with:
message: Thanks for taking this issue! Let us know if you have any questions!
blockingLabels: in progress
blockingLabelsMessage: This issue is already taken by someone else and is in progress. You can find another one by surfing the issues page.
trigger: .take
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ffa9d1c

Please sign in to comment.