From 06d522df02410c2a043ec3a8c109909913654f5e Mon Sep 17 00:00:00 2001 From: Devin Date: Sat, 7 Nov 2026 12:54:40 +0100 Subject: [PATCH 1/7] =?UTF-8?q?ci:=20move=20lanes=20to=20self-hosted=20run?= =?UTF-8?q?ners=20=E2=80=94=20never=20use=20GitHub-hosted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/ployz-build.yml | 4 ++-- .github/workflows/release.yml | 6 +++--- .github/workflows/tag-release.yml | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2600422..30dab24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: jobs: backend: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] services: postgres: image: postgres:17 @@ -38,7 +38,7 @@ jobs: RELAY_TEST_DATABASE_URL: postgres://relay:relay@127.0.0.1:5432/relay_e2e?sslmode=disable web: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] steps: - uses: actions/checkout@v7 - uses: actions/setup-node@v7 @@ -52,7 +52,7 @@ jobs: - run: npm run build --prefix apps/web openapi: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] steps: - uses: actions/checkout@v7 - uses: actions/setup-node@v7 @@ -66,7 +66,7 @@ jobs: diff -u packages/api-client/src/generated/schema.ts /tmp/schema.ts docker: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] permissions: packages: write contents: read @@ -93,7 +93,7 @@ jobs: docker push ghcr.io/dvorinka/relay:sha-${GITHUB_SHA:0:7} desktop: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] steps: - uses: actions/checkout@v7 - uses: actions/setup-go@v7 @@ -137,7 +137,7 @@ jobs: path: apps/desktop/build/bin/relay-desktop security: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] steps: - uses: actions/checkout@v7 - uses: aquasecurity/trivy-action@master diff --git a/.github/workflows/ployz-build.yml b/.github/workflows/ployz-build.yml index 14f7de9..3641a3a 100644 --- a/.github/workflows/ployz-build.yml +++ b/.github/workflows/ployz-build.yml @@ -4,13 +4,13 @@ on: inputs: build: { required: true, type: string } cloud: { required: true, type: string } - runner: { required: false, type: string, default: ubuntu-latest } + runner: { required: false, type: string, default: self-hosted } permissions: contents: read id-token: write jobs: build: - runs-on: ${{ inputs.runner }} + runs-on: [self-hosted, linux, x64] steps: - uses: getployz/build@v1 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e833e1b..2b4c89b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ permissions: jobs: build: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] steps: - uses: actions/checkout@v7 - uses: actions/setup-go@v7 @@ -146,7 +146,7 @@ jobs: # always set the secrets). apk: needs: build - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] env: ANDROID_KEYSTORE_B64: ${{ secrets.ANDROID_KEYSTORE_B64 }} steps: @@ -194,7 +194,7 @@ jobs: # Publish the runtime image to GHCR: ghcr.io/dvorinka/relay: + :latest image: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] steps: - uses: actions/checkout@v7 - uses: docker/setup-buildx-action@v4 diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml index af4738e..6a2b7d3 100644 --- a/.github/workflows/tag-release.yml +++ b/.github/workflows/tag-release.yml @@ -19,7 +19,7 @@ concurrency: jobs: tag: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64] steps: - uses: actions/checkout@v7 with: From 4914f8c46d02b73183043a87818e18fc71bc9722 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Sat, 7 Nov 2026 16:02:00 +0100 Subject: [PATCH 2/7] fix: bump dompurify to 3.4.17 (GHSA-cg2g-xh64-v4q7, GHSA-mrv2-3pqr-j5jr) --- apps/web/package.json | 2 +- package-lock.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/web/package.json b/apps/web/package.json index 0593367..a38d76b 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -17,7 +17,7 @@ "@excalidraw/excalidraw": "0.18.1", "@relay/api-client": "0.0.0", "@solidjs/router": "1.0.0", - "dompurify": "^3.4.16", + "dompurify": "^3.4.17", "marked": "^18.0.13", "react": "19.3.0", "react-dom": "19.3.0", diff --git a/package-lock.json b/package-lock.json index 67efb94..8a95ad3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@excalidraw/excalidraw": "0.18.1", "@relay/api-client": "0.0.0", "@solidjs/router": "1.0.0", - "dompurify": "^3.4.16", + "dompurify": "^3.4.17", "marked": "^18.0.13", "react": "19.3.0", "react-dom": "19.3.0", @@ -5203,9 +5203,9 @@ "license": "MIT" }, "node_modules/dompurify": { - "version": "3.4.16", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.16.tgz", - "integrity": "sha512-sqo+pNp3qRhCIpbgRi1y8Tgk27Bo2Ry7w0dC1NBeNTdZChWjz9Xb/KOoZbRP/R6pQZ80Qw8YhXw13hWWBbMRnQ==", + "version": "3.4.17", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.17.tgz", + "integrity": "sha512-B/pSlYVHQ58kqISD/yDjuJ1yfzI34m1gF4lAod2bwSRhiN4K5Cl3H8Af7hqB2PmTL911tdEudnnXn5FnhRoz0w==", "license": "(MPL-2.0 OR Apache-2.0)", "optionalDependencies": { "@types/trusted-types": "^2.0.7" From aa592f02264b59f474154d6d74d87f46cd42ba27 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Sat, 7 Nov 2026 16:04:39 +0100 Subject: [PATCH 3/7] ci: publish postgres on unique host port 15432 (self-hosted port collisions) --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30dab24..9f95934 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: POSTGRES_USER: relay POSTGRES_PASSWORD: relay POSTGRES_DB: relay_e2e - ports: ["5432:5432"] + ports: ["15432:5432"] options: >- --health-cmd pg_isready --health-interval 5s @@ -35,7 +35,7 @@ jobs: - run: go build ./... - run: go test ./... env: - RELAY_TEST_DATABASE_URL: postgres://relay:relay@127.0.0.1:5432/relay_e2e?sslmode=disable + RELAY_TEST_DATABASE_URL: postgres://relay:relay@127.0.0.1:15432/relay_e2e?sslmode=disable web: runs-on: [self-hosted, linux, x64] From 0806215781aea7fccad7e8232c54920c11389d3c Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Sat, 7 Nov 2026 16:06:04 +0100 Subject: [PATCH 4/7] ci: drop unused runner dispatch input (runs-on is fixed self-hosted) --- .github/workflows/ployz-build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ployz-build.yml b/.github/workflows/ployz-build.yml index 3641a3a..12f916e 100644 --- a/.github/workflows/ployz-build.yml +++ b/.github/workflows/ployz-build.yml @@ -4,7 +4,6 @@ on: inputs: build: { required: true, type: string } cloud: { required: true, type: string } - runner: { required: false, type: string, default: self-hosted } permissions: contents: read id-token: write From c74c491bf5639865f3b6f098be2756d8bed2529f Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Sat, 7 Nov 2026 16:37:23 +0100 Subject: [PATCH 5/7] =?UTF-8?q?fix:=20bump=20vulnerable=20deps=20=E2=80=94?= =?UTF-8?q?=20echo=204.16.1,=20x/net=200.62.0,=20node-forge=201.4.3,=20dec?= =?UTF-8?q?ode-uri-component=200.5.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/desktop/go.mod | 6 ++--- apps/desktop/go.sum | 12 +++++----- apps/mobile/package-lock.json | 42 ++++++----------------------------- apps/mobile/package.json | 6 ++++- go.mod | 2 +- go.sum | 4 ++-- 6 files changed, 24 insertions(+), 48 deletions(-) diff --git a/apps/desktop/go.mod b/apps/desktop/go.mod index 9fcf213..046fcbd 100644 --- a/apps/desktop/go.mod +++ b/apps/desktop/go.mod @@ -18,13 +18,13 @@ require ( github.com/google/uuid v1.6.0 // indirect github.com/gorilla/websocket v1.5.3 // indirect github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e // indirect - github.com/labstack/echo/v4 v4.15.3 // indirect + github.com/labstack/echo/v4 v4.16.1 // indirect github.com/labstack/gommon v0.5.0 // indirect github.com/leaanthony/go-ansi-parser v1.6.1 // indirect github.com/leaanthony/gosod v1.0.4 // indirect github.com/leaanthony/slicer v1.6.0 // indirect github.com/leaanthony/u v1.1.1 // indirect - github.com/mattn/go-colorable v0.1.14 // indirect + github.com/mattn/go-colorable v0.1.15 // indirect github.com/mattn/go-isatty v0.0.22 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pkg/errors v0.9.1 // indirect @@ -36,6 +36,6 @@ require ( github.com/wailsapp/go-webview2 v1.0.22 // indirect github.com/wailsapp/mimetype v1.4.1 // indirect golang.org/x/crypto v0.58.0 // indirect - golang.org/x/net v0.61.0 // indirect + golang.org/x/net v0.62.0 // indirect golang.org/x/text v0.43.0 // indirect ) diff --git a/apps/desktop/go.sum b/apps/desktop/go.sum index 1e16a79..6897b95 100644 --- a/apps/desktop/go.sum +++ b/apps/desktop/go.sum @@ -16,8 +16,8 @@ github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aN github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e h1:Q3+PugElBCf4PFpxhErSzU3/PY5sFL5Z6rfv4AbGAck= github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e/go.mod h1:alcuEEnZsY1WQsagKhZDsoPCRoOijYqhZvPwLG0kzVs= -github.com/labstack/echo/v4 v4.15.3 h1:lIdG4kK5RdMyhwCwSc4AmSQsLBb3AVwok6S8PX/9kwQ= -github.com/labstack/echo/v4 v4.15.3/go.mod h1:Xzp1Ns1RA2c9fY7nSgUJkpkUZGNbEIVHZbtbOMPktBI= +github.com/labstack/echo/v4 v4.16.1 h1:h05NuF1GvNu6jSAZxOv++AdjD/NJK+mZdGy0thiiuns= +github.com/labstack/echo/v4 v4.16.1/go.mod h1:V/EQaTVHYJH92QhbQe7kFQ4mjgcjxLQQUQtAN87zZdw= github.com/labstack/gommon v0.5.0 h1:6VSQ2NOzsnEJ5W6+84E0RbcaDDmgB6NIAzWCczTEe6c= github.com/labstack/gommon v0.5.0/go.mod h1:Rzlg7HHy1maLfzBYGg9NZcVuz1sA68HHhLjhcEllYE0= github.com/leaanthony/debme v1.2.1 h1:9Tgwf+kjcrbMQ4WnPcEIUcQuIZYqdWftzZkBr+i/oOc= @@ -33,8 +33,8 @@ github.com/leaanthony/u v1.1.1/go.mod h1:9+o6hejoRljvZ3BzdYlVL0JYCwtnAsVuN9pVTQc github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= github.com/matryer/is v1.4.1 h1:55ehd8zaGABKLXQUe2awZ99BD/PTc2ls+KV/dXphgEQ= github.com/matryer/is v1.4.1/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= -github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= -github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= +github.com/mattn/go-colorable v0.1.15 h1:+u9SLTRGnXv73cEsnsmoZBom+dMU88B2M0aDcWy0/jY= +github.com/mattn/go-colorable v0.1.15/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= github.com/mattn/go-isatty v0.0.22 h1:j8l17JJ9i6VGPUFUYoTUKPSgKe/83EYU2zBC7YNKMw4= github.com/mattn/go-isatty v0.0.22/go.mod h1:ZXfXG4SQHsB/w3ZeOYbR0PrPwLy+n6xiMrJlRFqopa4= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= @@ -65,8 +65,8 @@ github.com/wailsapp/wails/v2 v2.16.0/go.mod h1:scxrgwfsv6yR6fE6cCF+Flfl+JeU+SR87 golang.org/x/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54= golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w= golang.org/x/net v0.0.0-20210505024714-0287a6fb4125/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.61.0 h1:RR+6j/BTBCrggOLugxa+66R8FvoN6MHlzDlZIbN9YFw= -golang.org/x/net v0.61.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= +golang.org/x/net v0.62.0 h1:18ELalfM5+XNRwzM2nYqXsZQ9ByS1uhj2O/U7+5jqRY= +golang.org/x/net v0.62.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= golang.org/x/sys v0.0.0-20200810151505-1b9f1253b3ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/apps/mobile/package-lock.json b/apps/mobile/package-lock.json index 9ae6c10..98962cf 100644 --- a/apps/mobile/package-lock.json +++ b/apps/mobile/package-lock.json @@ -4390,12 +4390,12 @@ } }, "node_modules/decode-uri-component": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", - "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.5.1.tgz", + "integrity": "sha512-vWHQkXgg2cE3BB4rR0c+PYw9BCQzLoNIRMI7AunIkZst74tw/vpPp7VLoYtsR/cy1f55g3XDWUslfeCZjiZJyA==", "license": "MIT", "engines": { - "node": ">=0.10" + "node": ">=14.16" } }, "node_modules/deep-is": { @@ -6131,34 +6131,6 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/expo/node_modules/react-native-worklets": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/react-native-worklets/-/react-native-worklets-0.10.4.tgz", - "integrity": "sha512-gbk0CxMrGywEp3SJAHO+2JVaCWtl4WyAYBIxLZy6Y113+mHHuq3FuT6iV+VcaBuJzuuN34mtdZ4j5JIlBDzmeA==", - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@babel/plugin-transform-arrow-functions": "^7.27.1", - "@babel/plugin-transform-class-properties": "^7.28.6", - "@babel/plugin-transform-classes": "^7.28.6", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.28.6", - "@babel/plugin-transform-optional-chaining": "^7.28.6", - "@babel/plugin-transform-shorthand-properties": "^7.27.1", - "@babel/plugin-transform-template-literals": "^7.27.1", - "@babel/plugin-transform-unicode-regex": "^7.27.1", - "@babel/preset-typescript": "^7.28.5", - "@babel/types": "^7.27.1", - "convert-source-map": "^2.0.0", - "semver": "^7.7.4" - }, - "peerDependencies": { - "@babel/core": "*", - "@react-native/metro-config": "*", - "react": "*", - "react-native": "0.83 - 0.86" - } - }, "node_modules/expo/node_modules/ws": { "version": "8.22.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.0.tgz", @@ -8533,9 +8505,9 @@ } }, "node_modules/node-forge": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.0.tgz", - "integrity": "sha512-LarFH0+6VfriEhqMMcLX2F7SwSXeWwnEAJEsYm5QKWchiVYVvJyV9v7UDvUv+w5HO23ZpQTXDv/GxdDdMyOuoQ==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.3.tgz", + "integrity": "sha512-P6wzfh6t70avmV8FrVEAd/36sOPJQ+hkaJVX1Laap9J/77m7M0eyozDvc8SwnDf4P7MP94gwbAAo0rg3YVXT+g==", "license": "(BSD-3-Clause OR GPL-2.0)", "engines": { "node": ">= 6.13.0" diff --git a/apps/mobile/package.json b/apps/mobile/package.json index 3dfe7d2..4efdba5 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -37,5 +37,9 @@ "lint": "expo lint", "bundle": "npm run build:bundle --prefix ../web" }, - "private": true + "private": true, + "overrides": { + "decode-uri-component": "^0.5.1", + "node-forge": "^1.4.1" + } } diff --git a/go.mod b/go.mod index aa85534..13f0816 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/pressly/goose/v3 v3.29.0 go.uber.org/zap v1.28.0 golang.org/x/crypto v0.58.0 - golang.org/x/net v0.61.0 + golang.org/x/net v0.62.0 ) require ( diff --git a/go.sum b/go.sum index 5193358..eb3f54f 100644 --- a/go.sum +++ b/go.sum @@ -174,8 +174,8 @@ golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= -golang.org/x/net v0.61.0 h1:RR+6j/BTBCrggOLugxa+66R8FvoN6MHlzDlZIbN9YFw= -golang.org/x/net v0.61.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= +golang.org/x/net v0.62.0 h1:18ELalfM5+XNRwzM2nYqXsZQ9ByS1uhj2O/U7+5jqRY= +golang.org/x/net v0.62.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= From 4fbfd2756126e08f042ca49b3fe2b3782bc2e1c2 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Sat, 7 Nov 2026 16:39:54 +0100 Subject: [PATCH 6/7] =?UTF-8?q?fix:=20echo=20v4.16.3=20=E2=80=94=20clears?= =?UTF-8?q?=20GHSA-246p-cpwv-v3jq,=20GHSA-99jh-6h7p-pp36?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/desktop/go.mod | 2 +- apps/desktop/go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/desktop/go.mod b/apps/desktop/go.mod index 046fcbd..25d5b5a 100644 --- a/apps/desktop/go.mod +++ b/apps/desktop/go.mod @@ -18,7 +18,7 @@ require ( github.com/google/uuid v1.6.0 // indirect github.com/gorilla/websocket v1.5.3 // indirect github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e // indirect - github.com/labstack/echo/v4 v4.16.1 // indirect + github.com/labstack/echo/v4 v4.16.3 // indirect github.com/labstack/gommon v0.5.0 // indirect github.com/leaanthony/go-ansi-parser v1.6.1 // indirect github.com/leaanthony/gosod v1.0.4 // indirect diff --git a/apps/desktop/go.sum b/apps/desktop/go.sum index 6897b95..0c39c56 100644 --- a/apps/desktop/go.sum +++ b/apps/desktop/go.sum @@ -18,6 +18,8 @@ github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e h1:Q3+PugElBCf4P github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e/go.mod h1:alcuEEnZsY1WQsagKhZDsoPCRoOijYqhZvPwLG0kzVs= github.com/labstack/echo/v4 v4.16.1 h1:h05NuF1GvNu6jSAZxOv++AdjD/NJK+mZdGy0thiiuns= github.com/labstack/echo/v4 v4.16.1/go.mod h1:V/EQaTVHYJH92QhbQe7kFQ4mjgcjxLQQUQtAN87zZdw= +github.com/labstack/echo/v4 v4.16.3 h1:wAzM49wiBxHpZJQ621lminvdxbwfd1Cn6KwRThKV6nA= +github.com/labstack/echo/v4 v4.16.3/go.mod h1:V/EQaTVHYJH92QhbQe7kFQ4mjgcjxLQQUQtAN87zZdw= github.com/labstack/gommon v0.5.0 h1:6VSQ2NOzsnEJ5W6+84E0RbcaDDmgB6NIAzWCczTEe6c= github.com/labstack/gommon v0.5.0/go.mod h1:Rzlg7HHy1maLfzBYGg9NZcVuz1sA68HHhLjhcEllYE0= github.com/leaanthony/debme v1.2.1 h1:9Tgwf+kjcrbMQ4WnPcEIUcQuIZYqdWftzZkBr+i/oOc= From 3db47da432571d6be75c389bf60e066886d2a0c1 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Thu, 12 Nov 2026 08:59:23 +0100 Subject: [PATCH 7/7] feat(github): workspace Issues page, author identity, review state, and issue editing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - GET /workspaces/:id/github/issues — fan-out aggregation mirroring pulls, open/closed/all state filter, per-repo failure reporting, 60s cache - Issues page in the rail with live open-count badge; Pulls gains the same - Author avatars + login highlighting on every issue/PR surface; bot badges driven by GitHub's real user.type - Mirrored issues persist github_author/github_avatar_url (migration 0054), backfilled by webhook, bulk import, and reconcile - In-app GitHub issue detail modal: body, comment thread, composer, close/reopen, deep-linkable via /app/p/:id?gh=owner/name:N - Label/assignee editing on issues and PRs (PATCH issues/{n}), inline label creation, and title/body editing in the issue modal - PR review decisions: latest-state-per-reviewer reduction, decision chip, reviewer/assignee/team-requested avatar stacks, merged_by, comment counts - users.github_login (migration 0055) + Settings binding with existence check; unlocks "filed by me / assigned to me / my review requested" filters on the workspace pages Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- api/openapi.yaml | 226 +++++++- apps/web/src/App.tsx | 2 + apps/web/src/components/Rail.tsx | 32 ++ apps/web/src/components/icons.tsx | 18 + apps/web/src/features/github/GitHub.tsx | 368 +++++++++++- .../src/features/github/GitHubIssueModal.tsx | 378 ++++++++++++ .../src/features/github/PullRequestDetail.tsx | 108 +++- .../src/features/github/PullRequestList.tsx | 14 +- apps/web/src/features/issues/meta.tsx | 13 +- .../web/src/features/projects/ProjectPage.tsx | 15 + apps/web/src/features/workspaces/Settings.tsx | 51 ++ apps/web/src/main.tsx | 2 + apps/web/src/pages/Issues.tsx | 343 +++++++++++ apps/web/src/pages/Pulls.tsx | 252 ++++++-- db/migrations/0054_github_author.sql | 9 + db/migrations/0055_github_login.sql | 5 + db/queries/github.sql | 8 +- db/queries/users.sql | 14 +- internal/auth/handlers.go | 105 +++- internal/auth/service.go | 2 +- internal/db/github.sql.go | 30 +- internal/db/issues.sql.go | 26 +- internal/db/mcp.sql.go | 100 ++-- internal/db/models.go | 41 +- internal/db/users.sql.go | 99 +++- internal/github/client.go | 226 +++++++- internal/github/github.go | 538 +++++++++++++++++- internal/issues/issues.go | 9 + packages/api-client/src/generated/schema.ts | 406 ++++++++++++- packages/api-client/src/index.ts | 153 ++++- 30 files changed, 3340 insertions(+), 253 deletions(-) create mode 100644 apps/web/src/features/github/GitHubIssueModal.tsx create mode 100644 apps/web/src/pages/Issues.tsx create mode 100644 db/migrations/0054_github_author.sql create mode 100644 db/migrations/0055_github_login.sql diff --git a/api/openapi.yaml b/api/openapi.yaml index 52a192d..695d88a 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -127,7 +127,7 @@ paths: patch: operationId: updateMe tags: [auth] - summary: Update profile fields (chat name color) + summary: Update profile fields (chat name color, GitHub login) requestBody: required: true content: @@ -138,6 +138,9 @@ paths: name_color: type: string description: "#rrggbb, or empty string to clear" + github_login: + type: string + description: GitHub username bound for "mine" filters, or empty to clear responses: "200": description: Updated user @@ -2690,7 +2693,7 @@ paths: properties: pull: type: object - description: "number, title, state, draft, merged, mergeable, body, url, author, head, base, additions, deletions, changed_files, commit_count, labels, created_at, updated_at, repo" + description: "number, title, state, draft, merged, mergeable, body, url, author, head, base, additions, deletions, changed_files, commit_count, labels, assignees, reviewers, teams, merged_by, created_at, updated_at, repo" files: type: array items: { type: object } @@ -2700,6 +2703,42 @@ paths: checks: type: array items: { type: object } + reviews: + type: array + description: latest submitted review state per reviewer + items: { type: object } + review_decision: + type: string + description: approved | changes_requested | pending | "" + "400": { $ref: "#/components/responses/BadRequest" } + "404": { $ref: "#/components/responses/NotFound" } + "502": { description: "GitHub upstream error" } + + /api/projects/{projectId}/github/issue: + get: + operationId: issueDetail + summary: In-app GitHub issue detail — issue plus comment thread + tags: [github] + parameters: + - $ref: "#/components/parameters/ProjectId" + - { name: repo, in: query, schema: { type: string }, description: "owner/name or repo id; optional when only one repo is linked" } + - { name: number, in: query, required: true, schema: { type: integer } } + responses: + "200": + description: Issue detail bundle + content: + application/json: + schema: + type: object + properties: + issue: + type: object + description: "number, title, state, body, url, author, avatar_url, author_type, labels, assignees, comment_count, milestone, created_at, updated_at" + comments: + type: array + items: { type: object } + repo: + type: object "400": { $ref: "#/components/responses/BadRequest" } "404": { $ref: "#/components/responses/NotFound" } "502": { description: "GitHub upstream error" } @@ -2858,6 +2897,159 @@ paths: "400": { $ref: "#/components/responses/BadRequest" } "502": { description: "GitHub upstream error" } + /api/projects/{projectId}/github/labels: + get: + operationId: repoLabels + summary: Label catalog of a linked repository + tags: [github] + parameters: + - $ref: "#/components/parameters/ProjectId" + - { name: repo, in: query, schema: { type: string } } + responses: + "200": + description: Labels + content: + application/json: + schema: + type: object + properties: + labels: + type: array + items: + type: object + properties: + name: { type: string } + color: { type: string } + description: { type: string } + "400": { $ref: "#/components/responses/BadRequest" } + "502": { description: "GitHub upstream error" } + post: + operationId: createRepoLabel + summary: Create a label on a linked repository + tags: [github] + parameters: + - $ref: "#/components/parameters/ProjectId" + - { name: repo, in: query, schema: { type: string } } + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [name] + properties: + name: { type: string } + color: + type: string + description: 6-char hex, with or without '#' + description: { type: string } + responses: + "201": + description: Created label + content: + application/json: + schema: + type: object + properties: + name: { type: string } + color: { type: string } + description: { type: string } + "400": { $ref: "#/components/responses/BadRequest" } + "502": { description: "GitHub upstream error" } + + /api/projects/{projectId}/github/assignees: + get: + operationId: repoAssignees + summary: Assignable users of a linked repository + tags: [github] + parameters: + - $ref: "#/components/parameters/ProjectId" + - { name: repo, in: query, schema: { type: string } } + responses: + "200": + description: Assignable users + content: + application/json: + schema: + type: object + properties: + users: + type: array + items: + type: object + properties: + login: { type: string } + avatar_url: { type: string } + type: { type: string } + "400": { $ref: "#/components/responses/BadRequest" } + "502": { description: "GitHub upstream error" } + + /api/projects/{projectId}/github/issues/update: + post: + operationId: updateGitHubIssue + summary: Update a GitHub issue's title, body, labels, or assignees + description: Each provided set replaces the whole list on GitHub. Works on PR numbers too — they share the issues endpoint upstream. + tags: [github] + parameters: + - $ref: "#/components/parameters/ProjectId" + - { name: repo, in: query, schema: { type: string } } + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [number] + properties: + number: { type: integer } + title: { type: string } + body: { type: string } + labels: { type: array, items: { type: string } } + assignees: { type: array, items: { type: string } } + responses: + "200": + description: Updated issue fields + content: + application/json: + schema: + type: object + properties: + title: { type: string } + body: { type: string } + labels: { type: array, items: { type: object } } + assignees: { type: array, items: { type: object } } + "400": { $ref: "#/components/responses/BadRequest" } + "502": { description: "GitHub upstream error" } + + /api/projects/{projectId}/github/issues/state: + post: + operationId: setIssueState + summary: Close or reopen a GitHub issue + tags: [github] + parameters: + - $ref: "#/components/parameters/ProjectId" + - { name: repo, in: query, schema: { type: string } } + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [number, state] + properties: + number: { type: integer } + state: { type: string, enum: [open, closed] } + responses: + "200": + description: New issue state + content: + application/json: + schema: + type: object + properties: { state: { type: string } } + "400": { $ref: "#/components/responses/BadRequest" } + "502": { description: "GitHub upstream error" } + /api/projects/{projectId}/github/pull/state: post: operationId: setPullState @@ -2975,10 +3167,11 @@ paths: /api/workspaces/{workspaceId}/github/pulls: get: operationId: workspacePulls - summary: Open pull requests across every linked repo in the workspace + summary: Pull requests across every linked repo in the workspace tags: [github] parameters: - { name: workspaceId, in: path, required: true, schema: { type: string, format: uuid } } + - { name: state, in: query, schema: { type: string, enum: [open, closed, all], default: open } } responses: "200": description: PR groups keyed by project+repo @@ -2993,6 +3186,28 @@ paths: "400": { $ref: "#/components/responses/BadRequest" } "403": { $ref: "#/components/responses/Forbidden" } + /api/workspaces/{workspaceId}/github/issues: + get: + operationId: workspaceIssues + summary: Issues across every linked repo in the workspace + tags: [github] + parameters: + - { name: workspaceId, in: path, required: true, schema: { type: string, format: uuid } } + - { name: state, in: query, schema: { type: string, enum: [open, closed, all], default: open } } + responses: + "200": + description: Issue groups keyed by project+repo; issue_id links mirrored Relay issues + content: + application/json: + schema: + type: object + properties: + groups: + type: array + items: { type: object } + "400": { $ref: "#/components/responses/BadRequest" } + "403": { $ref: "#/components/responses/Forbidden" } + /api/projects/{projectId}/github/commits: get: operationId: gitCommits @@ -4393,6 +4608,9 @@ components: name_color: type: ["string", "null"] description: Chat name color as #rrggbb; null = palette default. + github_login: + type: string + description: Bound GitHub username; empty = not linked. avatar_url: { type: ["string", "null"] } created_at: { type: string, format: date-time } @@ -4915,6 +5133,8 @@ components: kind: { type: string, enum: [issue, pr] } state: { type: string, enum: [open, closed, merged], description: "GitHub's raw state" } url: { type: string } + author: { type: string, description: "GitHub login of the issue/PR author" } + avatar_url: { type: string, description: "GitHub avatar URL of the author" } IssueActivity: type: object diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index 88d25b9..64466b8 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -5,6 +5,7 @@ import { ConfirmHost } from "./components/Confirm"; import { ProfileModalHost } from "./components/ProfileModal"; import { CommitModalHost } from "./features/github/CommitModal"; import { GitHubCreateModalHost } from "./features/github/CreateModals"; +import { GitHubIssueModalHost } from "./features/github/GitHubIssueModal"; import { Rail } from "./components/Rail"; import { ServerBanner } from "./components/ServerBanner"; import { LimitedBanner } from "./components/LimitedBanner"; @@ -55,6 +56,7 @@ export default function App(props: ParentProps) { + diff --git a/apps/web/src/components/Rail.tsx b/apps/web/src/components/Rail.tsx index a0fb412..5130c07 100644 --- a/apps/web/src/components/Rail.tsx +++ b/apps/web/src/components/Rail.tsx @@ -52,6 +52,7 @@ import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, + CircleDotIcon, GitPullRequestIcon, GripIcon, BookmarkIcon, @@ -753,6 +754,7 @@ export function Rail() { if (e.type === "review.created" || e.type === "review.responded") { void refreshUnread(); } + if (e.type.startsWith("issue.")) refetchGh(); }); onCleanup(unsub); createEffect(() => { @@ -764,6 +766,22 @@ export function Rail() { onCleanup(() => window.removeEventListener("keydown", onKey)); }); const active = activeWorkspace(session.workspaces); + // Open-issue/PR counts for the nav badges. Both endpoints cache 60s + // server-side; a missing GitHub app yields null and the badges hide. + const [ghCounts, { refetch: refetchGh }] = createResource( + () => active()?.id, + async (ws) => { + const [pulls, issues] = await Promise.all([ + api.workspacePulls(ws).catch(() => null), + api.workspaceIssues(ws).catch(() => null), + ]); + return { + pulls: pulls?.groups.reduce((n, g) => n + g.pulls.length, 0) ?? null, + issues: + issues?.groups.reduce((n, g) => n + g.issues.length, 0) ?? null, + }; + }, + ); // The rail shows one workspace at a time — workspaces are separate // namespaces, so switching swaps the whole project list. const list = () => @@ -912,6 +930,20 @@ export function Rail() { Pull requests + 0}> + + {ghCounts()?.pulls} + + + + + + Issues + 0}> + + {ghCounts()?.issues} + + diff --git a/apps/web/src/components/icons.tsx b/apps/web/src/components/icons.tsx index 2806dc5..25cb507 100644 --- a/apps/web/src/components/icons.tsx +++ b/apps/web/src/components/icons.tsx @@ -227,6 +227,24 @@ export function IssueIcon(props: IconProps): JSX.Element { ); } +export function CircleDotIcon(props: IconProps): JSX.Element { + return ( + + ); +} + export function GitPullRequestIcon(props: IconProps): JSX.Element { return ( + + {initials(props.author)} + + + + ); +} + +// GhLabelChip renders one GitHub label in its own color — the API returns +// bare hex (no #), absent for labels created outside GitHub's palette. +export function GhLabelChip(props: { + label: { name: string; color?: string }; +}) { + const c = () => (props.label.color ? `#${props.label.color}` : undefined); + return ( + + {props.label.name} + + ); +} + +// isGhBot spots GitHub App/bot authors — the API's `type` field says "Bot" +// reliably; the [bot] suffix stays as the fallback for older payloads. +export function isGhBot(login: string, type?: string): boolean { + return type === "Bot" || login.endsWith("[bot]"); +} + +// GhAuthor renders a GitHub login with avatar — the highlighted filer on +// every issue/PR row. Bots get a small badge instead of pretending human. +export function GhAuthor(props: { + author: string; + url?: string; + type?: string; + avatarClass?: string; +}) { + return ( + + + {props.author} + + + bot + + + + ); +} + +// GhIssueMeta renders labels + assignees with an inline editor — the +// catalogs lazy-load on first expand and the PATCH replaces each set +// wholesale. Shared by the issue modal and the PR detail. +export function GhIssueMeta(props: { + projectId: string; + repo: string; + number: number; + labels: { name: string; color?: string }[]; + assignees: { login: string; avatar_url?: string }[]; + onApplied: (r: { + labels: { name: string; color?: string }[]; + assignees: { login: string; avatar_url?: string }[]; + }) => void; +}) { + const [editing, setEditing] = createSignal(false); + const [busy, setBusy] = createSignal(false); + const [err, setErr] = createSignal(""); + // Draft selections seed from the live values each time editing opens. + const [draftLabels, setDraftLabels] = createSignal([]); + const [draftAssignees, setDraftAssignees] = createSignal([]); + const [catalogs, { mutate: mutateCatalogs }] = createResource( + () => (editing() ? `${props.repo}` : null), + () => + Promise.all([ + api.repoLabels(props.projectId, props.repo), + api.repoAssignees(props.projectId, props.repo), + ]), + ); + + // Inline label creation — POSTs to the repo's label list, then the new + // label lands in the catalog pre-checked. + const [creatingLabel, setCreatingLabel] = createSignal(false); + const [labelName, setLabelName] = createSignal(""); + const [labelColor, setLabelColor] = createSignal("#888888"); + const [labelBusy, setLabelBusy] = createSignal(false); + const createLabel = async () => { + const name = labelName().trim(); + if (!name || labelBusy()) return; + setLabelBusy(true); + setErr(""); + try { + const l = await api.createRepoLabel(props.projectId, props.repo, { + name, + color: labelColor().replace("#", ""), + }); + mutateCatalogs((c) => + c ? [{ labels: [...c[0].labels, { name: l.name, color: l.color ?? "", description: l.description ?? "" }] }, c[1]] : c, + ); + setDraftLabels((d) => (d.includes(l.name) ? d : [...d, l.name])); + setLabelName(""); + setCreatingLabel(false); + } catch { + setErr("Could not create the label"); + } finally { + setLabelBusy(false); + } + }; + + const toggle = (list: () => string[], set: (v: string[]) => void, v: string) => + set(list().includes(v) ? list().filter((x) => x !== v) : [...list(), v]); + + const open = () => { + setDraftLabels(props.labels.map((l) => l.name)); + setDraftAssignees(props.assignees.map((a) => a.login)); + setErr(""); + setEditing(true); + }; + + const apply = async () => { + setBusy(true); + setErr(""); + try { + const r = await api.updateGitHubIssue(props.projectId, props.repo, { + number: props.number, + labels: draftLabels(), + assignees: draftAssignees(), + }); + props.onApplied(r); + setEditing(false); + } catch { + setErr("Could not update — check permissions"); + } finally { + setBusy(false); + } + }; + + return ( + + + {(l) => } + 0}> + a.login).join(", ")}`} + > + + {(a) => ( + + )} + + + + + + +
+
+

+ Labels +

+ } + > +
+ + {(l) => ( + + )} + +
+
+ + setLabelColor(e.currentTarget.value)} + class="h-5 w-6 cursor-pointer rounded border border-border bg-transparent p-0" + title="Label color" + /> + setLabelName(e.currentTarget.value)} + onKeyDown={(e) => { + if (e.key === "Enter") { + e.preventDefault(); + void createLabel(); + } + }} + class="min-w-0 flex-1 rounded border border-border bg-transparent px-1.5 py-0.5 text-[11.5px] text-fg outline-none focus:border-accent" + placeholder="label name" + /> + +
+ } + > + +
+
+ +
+
+

+ Assignees +

+ } + > +
+ + {(u) => ( + + )} + +
+
+
+
+ + + {err()} + +
+ +
+
+ ); +} + function RepoLinker(props: { projectId: string; workspaceId: string; @@ -195,27 +516,35 @@ function RepoLinker(props: { ); } -function IssueRow(props: { - number: number; - title: string; - url: string; - author: string; - updated_at: string; -}) { +function IssueRow( + props: DevRepoPanel["issues"][number] & { projectId: string; repo: string }, +) { return (
  • - - + #{props.number} + + + + 0}> + + + {props.comments} + + {timeAgo(props.updated_at)} @@ -254,6 +583,9 @@ function PrRow(props: DevRepoPanel["prs"][number] & { projectId: string; repo: s {props.head} → {props.base} + + +
  • ); } @@ -704,7 +1036,13 @@ export function DevelopmentPanel(props: { } > - {(i) => } + {(i) => ( + + )}
    (null); + +export function openGhIssue(projectId: string, repo: string, number: number) { + setTarget({ projectId, repo, number }); +} + +export function GitHubIssueModalHost() { + const onKey = (e: KeyboardEvent) => { + if (e.key === "Escape") setTarget(null); + }; + window.addEventListener("keydown", onKey); + onCleanup(() => window.removeEventListener("keydown", onKey)); + return ( + + {(t) => ( + setTarget(null)} + /> + )} + + ); +} + +function GitHubIssueModal(props: { + projectId: string; + repo: string; + number: number; + onClose: () => void; +}) { + const [detail, { refetch, mutate }] = createResource( + () => `${props.repo}#${props.number}`, + () => api.issueDetail(props.projectId, props.repo, props.number), + ); + const [body, setBody] = createSignal(""); + const [busy, setBusy] = createSignal<"comment" | "state" | null>(null); + const [error, setError] = createSignal(""); + const issue = () => detail()?.issue; + + // Inline title/body editor — PATCH issues/{n} upstream. + const [editing, setEditing] = createSignal(false); + const [editBusy, setEditBusy] = createSignal(false); + const [draftTitle, setDraftTitle] = createSignal(""); + const [draftBody, setDraftBody] = createSignal(""); + const startEdit = () => { + const iss = issue(); + if (!iss) return; + setDraftTitle(iss.title); + setDraftBody(iss.body); + setEditing(true); + }; + const saveEdit = async () => { + const iss = issue(); + if (!iss || editBusy() || !draftTitle().trim()) return; + setEditBusy(true); + setError(""); + try { + const r = await api.updateGitHubIssue(props.projectId, props.repo, { + number: iss.number, + title: draftTitle().trim(), + body: draftBody(), + }); + mutate((d) => + d + ? { ...d, issue: { ...d.issue, title: r.title, body: r.body } } + : d, + ); + setEditing(false); + } catch { + setError("Could not save the issue"); + } finally { + setEditBusy(false); + } + }; + + const postComment = async () => { + const text = body().trim(); + if (!text || busy()) return; + setBusy("comment"); + setError(""); + try { + await api.commentOnIssue(props.projectId, props.repo, props.number, text); + setBody(""); + refetch(); + } catch { + setError("Could not post the comment"); + } finally { + setBusy(null); + } + }; + + const toggleState = async () => { + const iss = issue(); + if (!iss || busy()) return; + const next = iss.state === "open" ? "closed" : "open"; + setBusy("state"); + setError(""); + try { + await api.setIssueState(props.projectId, props.repo, props.number, next); + mutate((d) => + d ? { ...d, issue: { ...d.issue, state: next } } : d, + ); + } catch { + setError(`Could not ${next === "closed" ? "close" : "reopen"} the issue`); + } finally { + setBusy(null); + } + }; + + return ( +
    { + if (e.target === e.currentTarget) props.onClose(); + }} + > +
    +
    + + + + {issue()?.title} + + {props.repo}#{props.number} + + + + + {(url) => ( + + + + )} + + +
    + +
    + + } + > +

    Could not load this issue

    +
    +
    + } + > + {(iss) => ( + <> +
    + + {iss().state} + + + opened {timeAgo(iss().created_at)} + 0}> + + + {iss().comment_count} + + + + + {iss().milestone} + + + +
    + +
    + + mutate((d) => + d + ? { + ...d, + issue: { + ...d.issue, + labels: r.labels, + assignees: r.assignees, + }, + } + : d, + ) + } + /> +
    + + + setDraftTitle(e.currentTarget.value)} + class="w-full rounded-lg border border-border bg-transparent px-3 py-2 text-[13px] text-fg outline-none focus:border-accent" + placeholder="Title" + /> +