Skip to content

Commit 714f781

Browse files
authored
Merge branch 'master' into fix/scroller_bug
2 parents a663612 + 98d2ffb commit 714f781

File tree

216 files changed

+4969
-3010
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+4969
-3010
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Description
2+
3+
## Why do you want to merge this PR?
4+
5+
<!-- If there is a related issue, please write instead. -->
6+
7+
## Verification Steps
8+
9+
## ScreenShots of UI Changes
10+
11+
### Before
12+
13+
### After
14+
15+
## Pre-PR Check-List
16+
17+
- [ ] (If you want to add a feature) The team has agreed to the addition.
18+
- If not, just uncheck this and open the PR.
19+
- [ ] I have confirmed that it works.
20+
- [ ] I have looked over the code myself, and it seems fine.
21+
22+
## Questions / Memo

.github/dependabot.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ updates:
66
interval: monthly
77
open-pull-requests-limit: 10
88
groups:
9-
non-majors:
9+
types:
10+
patterns:
11+
- '@types/*'
12+
linters-and-formatters:
13+
patterns:
14+
- '*eslint*'
15+
- '*prettier*'
16+
patches:
1017
update-types:
1118
- 'patch'
12-
- 'minor'
1319
- package-ecosystem: docker
1420
directory: '/'
1521
schedule:

.github/pull_request_template.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## 概要
2+
3+
## なぜこの PR を入れたいのか
4+
5+
<!-- issue 番号だけでも OK / close: #123 とか fix: #123 の形で -->
6+
7+
## 動作確認の手順
8+
9+
## UI 変更部分のスクリーンショット
10+
11+
### before
12+
13+
### after
14+
15+
## PR を出す前の確認事項
16+
17+
- [ ] (機能の追加なら)追加することの合意がチームで取れている
18+
- 取れていない場合はチェックを外して PR にすれば OK
19+
- [ ] 動作確認ができている
20+
- [ ] 自分で一度コードを眺めて自分的に問題はなさそう
21+
22+
## 見てほしいところ・聞きたいことなど

.github/workflows/master.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,14 @@ jobs:
4040
cache-from: type=registry,ref=ghcr.io/traptitech/${{ env.IMAGE_NAME }}:buildcache
4141
cache-to: type=registry,ref=ghcr.io/traptitech/${{ env.IMAGE_NAME }}:buildcache,mode=max
4242

43-
deploy-staging:
44-
name: Deploy staging
43+
run-manifest-renovate:
44+
name: Run Renovate on manifest
4545
runs-on: ubuntu-latest
4646
needs: [image]
47+
permissions:
48+
contents: read
49+
actions: write
4750
steps:
48-
- name: Install SSH key
49-
uses: shimataro/ssh-key-action@v2
50-
with:
51-
key: ${{ secrets.STAGING_SSH_KEY }}
52-
known_hosts: ${{ secrets.STAGING_KNOWN_HOSTS }}
53-
- name: Deploy
54-
run: ssh -o LogLevel=QUIET -t ${{ secrets.STAGING_DEPLOY_USER }}@${{ secrets.STAGING_DEPLOY_HOST }} "sudo sh /srv/traq/deploy.sh traq-frontend"
51+
- run: 'gh api --method POST -H "Accept: application/vnd.github+json" /repos/traPtitech/manifest/actions/workflows/renovate.yaml/dispatches -f "ref=main"'
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,15 @@ jobs:
6868
ghcr.io/traptitech/${{ env.IMAGE_NAME }}:latest
6969
ghcr.io/traptitech/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
7070
cache-from: type=registry,ref=ghcr.io/traptitech/${{ env.IMAGE_NAME }}:buildcache
71+
72+
run-manifest-renovate:
73+
name: Run Renovate on manifest
74+
runs-on: ubuntu-latest
75+
needs: [image]
76+
permissions:
77+
contents: read
78+
actions: write
79+
steps:
80+
- run: 'gh api --method POST -H "Accept: application/vnd.github+json" /repos/traPtitech/manifest/actions/workflows/renovate.yaml/dispatches -f "ref=main"'
81+
env:
82+
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules
44
/patches
55
/src/assets/emoji_altname_table.json
66
/src/assets/unicode_emojis.json
7+
/public/new-relic.js

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$BUILDPLATFORM node:23.11.0-alpine AS build
1+
FROM --platform=$BUILDPLATFORM node:24.3.0-alpine AS build
22
WORKDIR /app
33

44
ENV CYPRESS_INSTALL_BINARY=0

build/docker/startup.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,23 @@ sed -i -e "s/\"name\":\"traQ\",\"short_name\":\"traQ\"/\"name\":\"$APP_NAME\",\"
3131
echo "Startup: set theme color to $THEME_COLOR"
3232
sed -i -e "s/#0D67EA/$THEME_COLOR/g" /usr/share/caddy/index.html
3333

34+
###
35+
# New Relic 設定
36+
###
37+
if [ -n "$NEW_RELIC_LICENSE_KEY" ] && [ -n "$NEW_RELIC_ACCOUNT_ID" ] && [ -n "$NEW_RELIC_TRUST_KEY" ] && [ -n "$NEW_RELIC_AGENT_ID" ] && [ -n "$NEW_RELIC_APPLICATION_ID" ]; then
38+
echo "Startup: set up New Relic"
39+
sed -i -e "s/LICENSE_KEY_PLACEHOLDER/$NEW_RELIC_LICENSE_KEY/g" /usr/share/caddy/new-relic.js
40+
sed -i -e "s/ACCOUNT_ID_PLACEHOLDER/$NEW_RELIC_ACCOUNT_ID/g" /usr/share/caddy/new-relic.js
41+
sed -i -e "s/TRUST_KEY_PLACEHOLDER/$NEW_RELIC_TRUST_KEY/g" /usr/share/caddy/new-relic.js
42+
sed -i -e "s/AGENT_ID_PLACEHOLDER/$NEW_RELIC_AGENT_ID/g" /usr/share/caddy/new-relic.js
43+
sed -i -e "s/APPLICATION_ID_PLACEHOLDER/$NEW_RELIC_APPLICATION_ID/g" /usr/share/caddy/new-relic.js
44+
CACHE_KEY=$(md5sum /usr/share/caddy/new-relic.js | cut -d ' ' -f 1)
45+
mv /usr/share/caddy/new-relic.js /usr/share/caddy/new-relic-$CACHE_KEY.js
46+
sed -i -e "s/<!-- <script src=\"\/new-relic-{hash}.js\"><\/script> -->/<script src=\"\/new-relic-$CACHE_KEY.js\"><\/script>/" /usr/share/caddy/index.html
47+
else
48+
echo "Startup: New Relic is not configured"
49+
fi
50+
3451
###
3552
# サーバー起動
3653
###

build/gen-mplus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const downloadAndtransform = async (url, filename) => {
9999
hinting: false
100100
})
101101
await fs.writeFile(path.join(rootPath, filename), writeBuffer)
102-
} catch (e) {
102+
} catch (_) {
103103
await fs.writeFile(path.join(rootPath, filename), readBuffer)
104104
console.warn(
105105
`Failed to remove font hinting. Outputted original. ${filename}`

codecov.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@ coverage:
33
project:
44
default:
55
informational: true
6+
patch:
7+
default:
8+
informational: true
9+
github_checks:
10+
annotations: false

0 commit comments

Comments
 (0)