Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 40 additions & 40 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
name: "Bug Report"
description: "Сообщить об ошибке в работе приложения"
labels: ["bug", "triage"]
name: 'Bug Report'
description: 'Сообщить об ошибке в работе приложения'
labels: ['bug', 'triage']
body:
- type: markdown
attributes:
value: |
Спасибо, что решили помочь сделать проект лучше!
- type: input
id: version
attributes:
label: "Версия приложения"
description: "Какую версию вы используете? (например, 0.0.1)"
placeholder: "0.0.x"
validations:
required: true
- type: textarea
id: steps
attributes:
label: "Шаги воспроизведения"
description: "Как нам увидеть эту ошибку?"
placeholder: |
1. Запустить docker-compose
2. Отправить POST запрос на /api/v1/auth...
validations:
required: true
- type: dropdown
id: environment
attributes:
label: "Окружение"
options:
- Docker
- Local (pnpm)
- Production
validations:
required: true
- type: textarea
id: expected
attributes:
label: "Ожидаемое поведение"
placeholder: "Что должно было произойти?"
- type: markdown
attributes:
value: |
Спасибо, что решили помочь сделать проект лучше!
- type: input
id: version
attributes:
label: 'Версия приложения'
description: 'Какую версию вы используете? (например, 0.0.1)'
placeholder: '0.0.x'
validations:
required: true
- type: textarea
id: steps
attributes:
label: 'Шаги воспроизведения'
description: 'Как нам увидеть эту ошибку?'
placeholder: |
1. Запустить docker-compose
2. Отправить POST запрос на /api/v1/auth...
validations:
required: true
- type: dropdown
id: environment
attributes:
label: 'Окружение'
options:
- Docker
- Local (pnpm)
- Production
validations:
required: true
- type: textarea
id: expected
attributes:
label: 'Ожидаемое поведение'
placeholder: 'Что должно было произойти?'
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
blank_issues_enabled: false

contact_links:
- name: "❓ Вопросы по использованию"
url: "https://github.com/Task-Tracker-Lab/task-tracker-backend/discussions/new?category=q-a"
about: "Если вы не уверены, баг это или нет, или вам нужна помощь в настройке — спросите здесь."
- name: '❓ Вопросы по использованию'
url: 'https://github.com/Task-Tracker-Lab/task-tracker-backend/discussions/new?category=q-a'
about: 'Если вы не уверены, баг это или нет, или вам нужна помощь в настройке — спросите здесь.'

- name: "💡 Идеи и предложения"
url: "https://github.com/Task-Tracker-Lab/task-tracker-backend/discussions/new?category=ideas"
about: "Хотите обсудить новую крутую фичу перед тем, как заводить задачу? Вам сюда."
- name: '💡 Идеи и предложения'
url: 'https://github.com/Task-Tracker-Lab/task-tracker-backend/discussions/new?category=ideas'
about: 'Хотите обсудить новую крутую фичу перед тем, как заводить задачу? Вам сюда.'
34 changes: 17 additions & 17 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: "🚀 Feature Request"
description: "Предложить новую идею или улучшение"
labels: ["enhancement"]
name: '🚀 Feature Request'
description: 'Предложить новую идею или улучшение'
labels: ['enhancement']
body:
- type: textarea
id: problem
attributes:
label: "Какую проблему мы решаем?"
description: "Опишите, почему текущего функционала недостаточно."
validations:
required: true
- type: textarea
id: solution
attributes:
label: "Ваше предложение"
description: "Как именно вы видите реализацию этой фичи?"
validations:
required: true
- type: textarea
id: problem
attributes:
label: 'Какую проблему мы решаем?'
description: 'Опишите, почему текущего функционала недостаточно.'
validations:
required: true
- type: textarea
id: solution
attributes:
label: 'Ваше предложение'
description: 'Как именно вы видите реализацию этой фичи?'
validations:
required: true
50 changes: 25 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: CI

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

jobs:
quality-check:
name: Lint & Test
runs-on: ubuntu-latest
quality-check:
name: Lint & Test
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run Lint
run: pnpm run lint
- name: Run Lint
run: pnpm run lint

- name: Type Check
run: pnpm exec tsc --noEmit
- name: Type Check
run: pnpm exec tsc --noEmit

- name: Run Tests
run: pnpm run test
- name: Run Tests
run: pnpm run test
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [main, dev, feat/**, chore/**, build/**]
pull_request:
branches: [main]
schedule:
- cron: "15 13 * * 5"
- cron: '15 13 * * 5'

jobs:
analyze:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "Close stale issues and PRs"
name: 'Close stale issues and PRs'

on:
schedule:
- cron: "30 1 * * *"
- cron: '30 1 * * *'

jobs:
stale:
Expand All @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/stale@v9
with:
stale-issue-message: "Эта задача давно не обновлялась. Она будет закрыта через 5 дней, если не появится новой активности."
stale-pr-message: "Этот PR замер. Мы закроем его через 5 дней, чтобы не копить очередь, но вы всегда можете переоткрыть его позже."
stale-issue-message: 'Эта задача давно не обновлялась. Она будет закрыта через 5 дней, если не появится новой активности.'
stale-pr-message: 'Этот PR замер. Мы закроем его через 5 дней, чтобы не копить очередь, но вы всегда можете переоткрыть его позже.'
days-before-stale: 30
days-before-close: 5
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dist
node_modules
pnpm-lock.yaml

migrations

*.sql
Dockerfile*
.dockerignore
10 changes: 5 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"tabWidth": 4,
"semi": true
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"tabWidth": 4,
"semi": true
}
12 changes: 6 additions & 6 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { defineConfig } from 'drizzle-kit';

export default defineConfig({
schema: './src/shared/entities/index.ts',
out: './migrations',
dialect: 'postgresql',
dbCredentials: {
url: process.env.DATABASE_URL!,
},
schema: './src/shared/entities/index.ts',
out: './migrations',
dialect: 'postgresql',
dbCredentials: {
url: process.env.DATABASE_URL!,
},
});
90 changes: 45 additions & 45 deletions infra/compose.dev.yaml
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
version: "3.9"
version: '3.9'

name: task-tracker

services:
api:
hostname: api
container_name: api
build:
context: ../
dockerfile: Dockerfile.dev
restart: always
env_file:
- ../.env
ports:
- "3000:3000"
depends_on:
database:
condition: service_healthy
redis:
condition: service_started
networks:
- backend
api:
hostname: api
container_name: api
build:
context: ../
dockerfile: Dockerfile.dev
restart: always
env_file:
- ../.env
ports:
- '3000:3000'
depends_on:
database:
condition: service_healthy
redis:
condition: service_started
networks:
- backend

database:
hostname: database
container_name: database
image: postgres:16-alpine
restart: always
env_file:
- ../.env
environment:
POSTGRES_USER: ${DB_USERNAME:-admin}
POSTGRES_PASSWORD: ${DB_PASSWORD:-admin}
POSTGRES_DB: ${DB_DATABASE:-tracker}
ports:
- "6000:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- backend
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME} -d ${DB_DATABASE}"]
interval: 5s
timeout: 5s
retries: 5
profiles: ["infra"]
database:
hostname: database
container_name: database
image: postgres:16-alpine
restart: always
env_file:
- ../.env
environment:
POSTGRES_USER: ${DB_USERNAME:-admin}
POSTGRES_PASSWORD: ${DB_PASSWORD:-admin}
POSTGRES_DB: ${DB_DATABASE:-tracker}
ports:
- '6000:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- backend
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${DB_USERNAME} -d ${DB_DATABASE}']
interval: 5s
timeout: 5s
retries: 5
profiles: ['infra']

volumes:
postgres_data:
redis_data:
postgres_data:
redis_data:

networks:
backend:
backend:
6 changes: 3 additions & 3 deletions libs/bootstrap/src/configs/swagger.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SwaggerOptions } from '../interfaces/options.interface';

export const SWAGGER_DEFAULTS: SwaggerOptions = {
title: 'API',
description: 'API Documentation',
version: '1.0.0',
title: 'API',
description: 'API Documentation',
version: '1.0.0',
};
Loading
Loading