Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: 4.8.0 #466

Merged
merged 203 commits into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
203 commits
Select commit Hold shift + click to select a range
96c7c85
Merge pull request #13045 from misskey-dev/develop
syuilo Feb 17, 2024
bbbb167
refactor(frontend): 不必要なconsole.logを除去・抑制 (#13400)
kakkokari-gtyih Feb 21, 2024
750d262
refactor(backend): `ReactionService.prototype.convertLegacyReactions`…
okayurisotto Feb 21, 2024
ae27085
fix: Bump sharp to 0.33.2 (#13391)
tamaina Feb 21, 2024
fb0eb5a
:art:
syuilo Feb 21, 2024
e10ce72
fix: MkUserPopupが表示されてる状態でv-user-previewがついた要素がdetachされるとMkUserPopupが…
anatawa12 Feb 21, 2024
b36e6b1
fix: 禁止キーワードを含むノートがDelayed Queueに追加されて再処理される問題 (#13428)
anatawa12 Feb 21, 2024
044c435
Lint: os.apiwithdialogを使わないように。
16439s Feb 22, 2024
69e8383
Update CHANGELOG_CHERRYPICK.md
16439s Feb 22, 2024
26c8b53
enhance: サーバーごとにモデレーションノートを残せるように
syuilo Feb 22, 2024
2bd9f05
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Feb 22, 2024
4d6fab0
refactor: Refactor NoteReadService.read (#13429)
tamaina Feb 22, 2024
bf5952f
flash/update で部分的に変更できるようにする (#13396)
FineArchs Feb 22, 2024
d20542c
enhance: `meta`をSSR HTMLに埋め込む (#13436)
kakkokari-gtyih Feb 23, 2024
080a3c2
fix: SSR時のmetaをエスケープするように (#13440)
kakkokari-gtyih Feb 23, 2024
64953fa
refactor(backend): `Array.prototype.filter`での非null確認では`isNotNull`関数を使…
okayurisotto Feb 23, 2024
30fe072
fix(test): Chromaticが落ちているのを一部修正? (#13435)
kakkokari-gtyih Feb 23, 2024
a85fcca
Fix(frontend): 絵文字オートコンプリートの優先順位がおかしいのを修正 (#13423)
1Step621 Feb 23, 2024
b8d8b35
fix: プッシュ通知の変更が1時間ほど反映されない問題を修正 (#13407)
tamaina Feb 23, 2024
a861f91
fix(backend): より多くの人に使われているハッシュタグが検索結果上位に来るように (#11498) (#13340)
okayurisotto Feb 23, 2024
600d91b
enhance: リモートのフォロワーから再度Followが来た場合、acceptを返してあげる (#13388)
tamaina Feb 23, 2024
d834232
enhance(games): 抜けている翻訳を追加・スタイル共通化 (#13434)
kakkokari-gtyih Feb 23, 2024
c0156b7
enhance?: DeleteAccountServiceでユーザーを削除する際にuserChangeDeletedStateを発行する…
tamaina Feb 23, 2024
e3dd3f6
Enhance(frontend): リアクションピッカーを調整 (#13354)
1Step621 Feb 24, 2024
41747b6
refactor
syuilo Feb 24, 2024
792168f
fix(frontend): `userActivation`がない環境において不具合が生じる問題を修正 (#13451)
zyoshoka Feb 24, 2024
2c6f25b
fix: 古いキャッシュを使うのを修正 (#13453)
tamaina Feb 25, 2024
dd48366
admin/emoji/updateの必須項目を減らす 等 (#13449)
FineArchs Feb 25, 2024
0a0af68
test(frontend): Chromaticテストが落ちるのを修正 (#13448)
zyoshoka Feb 25, 2024
0fb7b98
fix(backend): fix incorrect schemas (#13458)
zyoshoka Feb 26, 2024
f906ad6
Enhance: コンディショナルロールの条件に「マニュアルロールへのアサイン」を追加 (#13463)
zawa-ch Feb 27, 2024
0d47877
enhance(backend): フォロー・フォロワー関連の通知の受信設定の強化 (#13468)
zyoshoka Feb 28, 2024
b7d9d16
refactor(backend): ノートのエクスポート処理でStreams APIを使うように (#13465)
okayurisotto Feb 28, 2024
664aeb3
fix(backend): リノート時のHTLへのストリーミングの意図しない挙動を修正 (#13425)
zyoshoka Feb 28, 2024
29350c9
refactor(frontend): `os.ts`周りのリファクタリング (#13186)
zyoshoka Feb 28, 2024
5f43c2f
enhance(backend): 通知がミュート・凍結を考慮するようにする (#13412)
tai-cha Feb 28, 2024
797bb49
Update CHANGELOG.md
syuilo Feb 29, 2024
920c3be
update deps
syuilo Feb 29, 2024
98934b6
fix type
syuilo Feb 29, 2024
9d0fc96
fix test
syuilo Feb 29, 2024
ec18991
Update scroll.test.ts
syuilo Feb 29, 2024
39d6af1
enhance: 通知の履歴をリセットできるように (#13335)
kakkokari-gtyih Feb 29, 2024
16f16e6
fix(backend): ダイレクトなノートに対してはダイレクトでしか返信できないように (#13477)
zyoshoka Feb 29, 2024
1205d30
Update CHANGELOG.md
syuilo Feb 29, 2024
6365805
New Crowdin updates (#13359)
syuilo Feb 29, 2024
7565f7b
fix(client): use colorizeEmoji when unicodeEmojisMap.get
tamaina Feb 29, 2024
b9bcced
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
tamaina Feb 29, 2024
26d4c5f
メンションの最大数をロールごとに設定可能にする (#13343)
yuriha-chan Feb 29, 2024
01f55a9
Update CHANGELOG.md
syuilo Feb 29, 2024
bc30dc6
refactor: remove export of unicodeEmojisMap
tamaina Feb 29, 2024
593358e
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
tamaina Feb 29, 2024
a744066
fix packedRoleCondFormulaValueAssignedRoleSchema
syuilo Mar 1, 2024
59f80c0
New Crowdin updates (#13478)
syuilo Mar 1, 2024
b55b77c
update pnpm
syuilo Mar 1, 2024
033d71e
update deps
syuilo Mar 1, 2024
14a3af6
update deps
syuilo Mar 1, 2024
2f31606
update deps
syuilo Mar 1, 2024
16440d6
Update CHANGELOG.md
syuilo Mar 1, 2024
5befd66
Update CHANGELOG.md
syuilo Mar 1, 2024
ca63994
format
syuilo Mar 1, 2024
5904d98
Update packages/backend/test/e2e/mute.ts
syuilo Mar 1, 2024
6158ef1
format
syuilo Mar 1, 2024
4c6fc15
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Mar 1, 2024
d1bf432
add missing license headers
syuilo Mar 1, 2024
eb60460
enhance: 禁止ワードチェック強化 (#27)
tamaina Mar 1, 2024
ba9d47f
2024.3.0
syuilo Mar 1, 2024
fe5efd9
New translations ja-jp.yml (Chinese Traditional) (#13480)
syuilo Mar 1, 2024
7e706ea
Merge pull request #13447 from misskey-dev/develop
syuilo Mar 1, 2024
f704891
fix: emoji colorization
acid-chicken Mar 1, 2024
114d331
chore(client): 絵文字の画像読み込みに失敗した際はテキストではなくダミー画像を表示 (#13487)
tamaina Mar 2, 2024
32690f5
fix(frontend): ピン留め or 履歴に表示されるカスタム絵文字がサーバから削除されるとリアクションが出来なくなる (#13486)
samunohito Mar 2, 2024
ecc5dec
New Crowdin updates (#13489)
syuilo Mar 2, 2024
21e3a91
Update CHANGELOG.md
samunohito Mar 2, 2024
b83cbc6
Update CHANGELOG.md
samunohito Mar 2, 2024
2744cbd
fix(frontend): MkCustomEmojiでフォールバックをテキストか画像か選べるように
tamaina Mar 2, 2024
3afdafe
2024.3.1
syuilo Mar 2, 2024
78ff90f
Merge pull request #13493 from misskey-dev/develop
syuilo Mar 2, 2024
efda2e9
Update README.md
syuilo Mar 2, 2024
38837bd
test(backend): refactor tests (#13499)
zyoshoka Mar 3, 2024
9834801
chore: Automated release (#13075)
tamaina Mar 4, 2024
9542cb8
fix(backend): リモートサーバーの情報が更新できなくなっていた問題を修正 (#13507)
tamaina Mar 4, 2024
96ab1af
Update CHANGELOG.md
kakkokari-gtyih Mar 4, 2024
13f5faf
remove template txt
tamaina Mar 4, 2024
83a5bc0
doc: Nestで循環依存がある場合のCONTRIBUTING.mdに書く (#13522)
tamaina Mar 5, 2024
45672a7
fix(frontend): router遷移時にmatchAllに入った場合一度`location.href`を経由するように (#13…
kakkokari-gtyih Mar 5, 2024
08d618b
enhance(frontend): 自分のノートの添付ファイルから直接ファイルの詳細ページに飛べるようにする (#13520)
kakkokari-gtyih Mar 5, 2024
4457b02
fix(frontend)?: importAppScriptはimportをawaitするように
tamaina Mar 6, 2024
00c1e4e
perf: boot.jsの調整
tamaina Mar 6, 2024
6292235
Revert "perf: boot.jsの調整"
tamaina Mar 6, 2024
7ead98c
enhance(frontend): リアクションの総数を表示するように (#13532)
kakkokari-gtyih Mar 6, 2024
412e9f2
test(backend): enable typecheck by workflow (#13526)
zyoshoka Mar 7, 2024
c680e35
enhance(frontend): 広告が同一ドメインの場合はRouterで遷移するように (#13510)
kakkokari-gtyih Mar 7, 2024
f4a5740
fix(frontend): 周年の実績が閏年を考慮するように (#13525)
kakkokari-gtyih Mar 7, 2024
27f823e
enhance(frontend): リアクションの総数を表示するか設定で選べるように (#13539)
kakkokari-gtyih Mar 8, 2024
1b064d7
chore(backend): validateNoteの結果Errorはそのままthrowする
tamaina Mar 9, 2024
45d1af2
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
tamaina Mar 9, 2024
db29680
chore(dev): remove deprecated vscode plugins
syuilo Mar 9, 2024
dbc4fd3
Update about-misskey.vue
syuilo Mar 9, 2024
e4eaf12
Update example.yml (#13551)
FineArchs Mar 9, 2024
6b676a9
enhance(backend): antennas/updateの必須項目をantennaIdのみに (#13542)
yupix Mar 10, 2024
e23e2f4
Fix Changelog
kakkokari-gtyih Mar 12, 2024
b280faa
enhance(frontend): 各サーバーはMisskeyを利用したサービスであることを強調 (#13559)
kakkokari-gtyih Mar 12, 2024
6d9c234
fix: URL preview popup for local URL appears in the upper left corner…
anatawa12 Mar 12, 2024
5c1d86b
refactor(backend): UserEntityService.packMany()の高速化 (#13550)
samunohito Mar 12, 2024
29f6ba6
chore: add missing SPDX ID and workflow check (#13570)
zyoshoka Mar 13, 2024
88d47ab
プラグインの簡易的なログを表示する機能 (#13564)
FineArchs Mar 13, 2024
75fa43b
fix(dev): fix duplication in .vscode/extensions.json
tamaina Mar 14, 2024
8604bd9
fix(dev): vscode-jest: Deprecated: Please use jest.runMode instead.
tamaina Mar 14, 2024
71d0538
fix(frontend): update locales/index.d.ts
tamaina Mar 14, 2024
4b1ca9e
fix(general): `flash/create`でPlayの公開範囲を指定できない問題の修正と編集画面の調整 (#13574)
zyoshoka Mar 15, 2024
7e63ab0
refactor(backend): refactor chart engine
syuilo Mar 17, 2024
282cfae
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Mar 17, 2024
dcfab91
feat: send heartbeat right after visibility changed to 'visible' (#13…
backrunner Mar 17, 2024
b65203c
fix(frontend): WebGL2コンテキストの初期化に失敗するとMisskeyが起動できなくなる問題を修正 (#13587)
kakkokari-gtyih Mar 17, 2024
a38646b
fix(backend): フォローリクエストを作成する際に既存のものは削除するように (#13588)
kakkokari-gtyih Mar 18, 2024
067cdf3
enhance(frontend): ページのデザインを調整 (#13590)
kakkokari-gtyih Mar 18, 2024
0226a67
fix(backend): ユーザーやノートのOGPでローカルとリモートユーザーの見分けが付かない問題を修正 (#13586)
kakkokari-gtyih Mar 18, 2024
5f6863b
Add missing credit (for #13586)
kakkokari-gtyih Mar 18, 2024
115d918
fix(frontend): shikiの言語・テーマの定義ファイルをCDN(esm.sh)から取るようにする (#13598)
samunohito Mar 20, 2024
d7bb6c8
Cypress typescript (#13591)
dakkar Mar 20, 2024
ca2df14
fix(frontend): woodenPanelの配色を修正 (#13561)
kakkokari-gtyih Mar 20, 2024
d6c24cd
Merge remote-branch 'misskey/master'
noridev Mar 20, 2024
7795045
Update about-misskey.vue
syuilo Mar 20, 2024
2d618a1
Merge remote-branch 'misskey/develop'
noridev Mar 20, 2024
ebc1216
enhance: 디버깅을 보다 편하게 할 수 있도록 vite 생성 파일의 이름 개선
noridev Mar 20, 2024
34db61c
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
noridev Mar 20, 2024
a949fab
Merge pull request #421
noridev Mar 20, 2024
2fd8ecc
Merge branch 'develop' of https://github.com/kokonect-link/cherrypick…
noridev Mar 20, 2024
592c5aa
update CHANGELOG_CHERRYPICK.md
noridev Mar 20, 2024
9b5cf68
lint
noridev Mar 20, 2024
6f9b121
4.8.0-beta.1
noridev Mar 20, 2024
f4838e5
enhance(antenna): Botの投稿を除外できるように (#13603)
kakkokari-gtyih Mar 20, 2024
867451e
Merge remote-branch 'misskey/develop'
noridev Mar 21, 2024
831c74a
fix: URLプレビューの動作改善+動作設定を可能にする (#13579)
samunohito Mar 21, 2024
40bb606
fix(frontend): URLプレビューのto/hrefがない問題を修正
tamaina Mar 21, 2024
c9c6424
enhance(frontend): TOTPの入力ダイアログを改良 (#13607)
kakkokari-gtyih Mar 22, 2024
6bd7877
enhance(frontend): リアクション受け入れがいいねのみの場合はボタンホバーでツールチップが出るように (#13613)
kakkokari-gtyih Mar 22, 2024
3db26f2
fix(backend): fix openAPI operationId format
syuilo Mar 23, 2024
539718f
fix(misskey-js): fix ESLint error in generator due to `operationId` c…
zyoshoka Mar 24, 2024
a1bc8fa
test(backend): fix streaming test error when replying to followers-on…
zyoshoka Mar 24, 2024
8f415d6
fix(generator): APIクライアントのパスにoperationIdが使われる問題を修正 (#13622)
kakkokari-gtyih Mar 25, 2024
73fd06e
Merge remote-branch 'misskey/develop'
noridev Mar 25, 2024
9d2c565
fix(frontend): 채팅에서 이모지 선택기를 열 수 없던 문제
noridev Mar 25, 2024
f90be42
fix(frontend): 「今日誕生日のフォロー中ユーザー」ウィジェットが正しく動作しない問題を修正 (#12835)
kakkokari-gtyih Mar 25, 2024
6023452
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
noridev Mar 26, 2024
f3500ff
fix: report progress out of 100% in CleanRemoteFilesProcessorService …
nilathedragon Mar 30, 2024
b35ae97
fix(backend): better `notes/translate` error response (#13631)
zyoshoka Mar 30, 2024
2a85143
fix: misskey-js、bubble-game、reversiのビルドをesbuildに統合する (#13600)
samunohito Mar 30, 2024
50da7d2
enhance(frontend): 2要素認証セットアップウィザードにアプリを起動するボタンを新設 (#13636)
kakkokari-gtyih Mar 30, 2024
b96d9c6
fix/enhance(frontend): 映像・音声周りの改修 (#13206)
kakkokari-gtyih Mar 30, 2024
d4ca973
Enhance(frontend): もっと!ボタンでリアクション一覧が開けるように (#12935)
1Step621 Mar 30, 2024
0f2e651
fix(frontend): remove duplicate CSS declaration (#13640)
l2dy Mar 31, 2024
efafa02
enhance(backend): ビデオファイルにビデオトラックがあるかを確認するように (#13568)
kakkokari-gtyih Mar 31, 2024
61978cb
fix(frontend): ページデザインの修正 (#13642)
kakkokari-gtyih Mar 31, 2024
b4b47d8
refactor(frontend): use `scrollX` or `scrollY` (#13645)
kakkokari-gtyih Apr 1, 2024
22c8f9c
Merge remote-branch 'misskey/develop'
noridev Apr 2, 2024
c4fc582
Merge pull request from GHSA-fpvp-74wx-35p3
jorgectf Apr 3, 2024
ad8e36a
Merge remote-branch 'misskey/develop'
noridev Apr 3, 2024
d781bb6
enhance(frontend): 폰트 로드 방식 개선
noridev Apr 3, 2024
a98b06b
🎨
noridev Apr 3, 2024
be31980
lint
noridev Apr 3, 2024
319a537
fix(frontend): MkA 컴포넌트를 사용하는 항목이 작동하지 않을 수 있음(읽음 표시, 테스트 알림, 기본 업로드 …
noridev Apr 3, 2024
729daff
Update CHANGELOG_CHERRYPICK.md
noridev Apr 3, 2024
af5803d
fix(frontend): 코드 복사 버튼을 누르면 노트 상세 페이지가 표시될 수 있음
noridev Apr 3, 2024
026e101
fix(frontend): 창으로 제어판을 열었을 때 뒤로 가기 버튼이 잘못된 작동을 야기할 수 있음 #407
noridev Apr 3, 2024
a8ac736
Update CHANGELOG_CHERRYPICK.md
noridev Apr 3, 2024
fe47115
fix(frontend): 서버 이름이 매우 긴 경우, CherryPick에 대하여(MkSourceCodeAvailableP…
noridev Apr 3, 2024
4257ece
🎨
noridev Apr 3, 2024
f5e0d9e
4.8.0-beta.2
noridev Apr 3, 2024
efa42a1
fix(backend): バックエンドのpnpm devによるビルド後にbuild-assetsを行うようにする (#13659)
samunohito Apr 4, 2024
2f8fb10
fix(deps): aiscript-vscodeのインストール中にWARNが出るのを修正 (#13661)
kakkokari-gtyih Apr 5, 2024
959cc8f
refactor(general): use `Date.now()` instead of creating a new `Date` …
zyoshoka Apr 7, 2024
960c4df
enhance(frontend): better condition for posting and displaying Notes …
zyoshoka Apr 7, 2024
b5c82d4
Merge remote-branch 'misskey/develop'
noridev Apr 8, 2024
b322f55
dev: fix misskey-tga (#13312)
Srgr0 Apr 8, 2024
7586ef7
fix(frontend): MkDialogのinputで字数制限に違反していてもEnterキーが押せてしまうのを修正 (#13677)
1Step621 Apr 9, 2024
2f42a05
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
noridev Apr 9, 2024
eb1ef14
enhance(frontend): add link of 2fa guide
syuilo Apr 9, 2024
f5100cc
feat(frontend): アップロードするファイルの名前をランダム文字列にできるように (#13688)
kakkokari-gtyih Apr 13, 2024
5c7c44c
fix(backend): 登録にメール認証が必須になっている場合、登録されているメールアドレスを削除できないように (#13703)
kakkokari-gtyih Apr 13, 2024
48a7679
test: do not use indexedDB in cypress environment due to chrome bug (…
anatawa12 Apr 13, 2024
7cf0c18
fix(backend): FileServerServiceでレンジリクエストの場合に適切なレスポンスコードが返らない問題を修正 (#1…
kakkokari-gtyih Apr 14, 2024
8c5d9a6
fix(backend): incorrect logic for determining whether Quote or not (#…
zyoshoka Apr 14, 2024
bba3097
enhance: クリップのノート数を表示するように (#13686)
kakkokari-gtyih Apr 14, 2024
b4faa7c
chore: Use integrity for Redoc script (#13716)
mei23 Apr 15, 2024
c687b4e
fix(backend): nginx経由で/files/にRangeリクエストされた場合に正しく応答できないのを修正 (#13712)
mei23 Apr 15, 2024
ca0d148
ci: Check Misskey JS autogenを様々改善 (#13718)
anatawa12 Apr 15, 2024
e9e877f
fix: ダイレクト投稿の宛先が保存されない (#13717)
anatawa12 Apr 16, 2024
03bbd93
Merge remote-branch 'misskey/develop'
noridev Apr 16, 2024
646f21d
fix(backend): Mastodon 사용자에게 대화를 보낼 때 [#objectobject] 태그가 추가될 수 있음
noridev May 8, 2024
2e768ec
fix(frontend/friendly): 타임라인 헤더와 알림 위젯 헤더의 타이틀이 잘못 표시될 수 있음 (kokonect…
noridev May 13, 2024
11c2e56
Update CHANGELOG_CHERRYPICK.md
noridev May 13, 2024
3241db6
Merge pull request #462
mirielnet May 13, 2024
e54dd80
tweak 3241db64
noridev May 13, 2024
6059ea4
fix(frontend): '노트를 클릭하여 자세히 표시' 기능을 활성화하면 일부 기능이 올바르게 작동하지 않을 수 있음 (…
noridev May 14, 2024
f099487
fix chore
noridev May 14, 2024
ebc9666
fix(frontend/friendly): 윈도우 크기를 조정하면 타임라인 탭의 하이라이트가 잘못된 위치에 표시될 수 있음 …
noridev May 14, 2024
31b6830
fix(frontend/friendly): 일부 페이지에서 알림 영역의 디자인이 잘못 표시될 수 있음
noridev May 14, 2024
d61dc8b
Update CHANGELOG_CHERRYPICK.md
noridev May 14, 2024
b961207
4.8.0-beta.3
noridev May 14, 2024
03d04a1
change: '타임라인에 다른 사람에게 보내는 답글을 포함'의 기본값을 비활성으로 설정
noridev May 17, 2024
8c298fd
enhance(frontend): 노트 메뉴에 '새 탭에서 열기' 추가
noridev May 19, 2024
d2aea32
4.8.0
noridev May 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .config/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# Option 3: If neither of the above applies to you.
# (In this case, the source code should be published
# on the CherryPick interface. IT IS NOT ENOUGH TO
# DISCLOSE THE SOURCE CODE WEHN A USER REQUESTS IT BY
# DISCLOSE THE SOURCE CODE WHEN A USER REQUESTS IT BY
# E-MAIL OR OTHER MEANS. If you are not satisfied
# with this, it is recommended that you read the
# license again carefully. Anyway, enabling this
Expand Down
1 change: 0 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint",
"Vue.volar",
"Vue.vscode-typescript-vue-plugin",
"Orta.vscode-jest",
"dbaeumer.vscode-eslint",
"mrmlnc.vscode-json5"
Expand Down
143 changes: 72 additions & 71 deletions .github/workflows/check-cherrypick-js-autogen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,23 @@ on:
branches:
- master
- develop
- improve-cherrypick-js-autogen-check
paths:
- packages/backend/**

jobs:
check-cherrypick-js-autogen:
# pull_request_target safety: permissions: read-all, and there are no secrets used in this job
generate-cherrypick-js:
runs-on: ubuntu-latest
permissions:
pull-requests: write

env:
api_json_name: "api-head.json"

contents: read
if: ${{ github.event.pull_request.mergeable == null || github.event.pull_request.mergeable == true }}
steps:
- name: checkout
uses: actions/[email protected]
with:
submodules: true
ref: ${{ github.event.pull_request.head.sha }}
ref: refs/pull/${{ github.event.pull_request.number }}/merge

- name: setup pnpm
uses: pnpm/action-setup@v3
Expand All @@ -39,79 +38,81 @@ jobs:
- name: install dependencies
run: pnpm i --frozen-lockfile

- name: wait get-api-diff
uses: lewagon/[email protected]
# generate api.json
- name: Copy Config
run: cp .config/example.yml .config/default.yml
- name: Build
run: pnpm build
- name: Generate API JSON
run: pnpm --filter backend generate-api-json

# build cherrypick js
- name: Build cherrypick-js
run: |-
cp packages/backend/built/api.json packages/cherrypick-js/generator/api.json
pnpm run --filter cherrypick-js-type-generator generate

# packages/cherrypick-js/generator/built/autogen
- name: Upload Generated
uses: actions/upload-artifact@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
check-regexp: get-from-cherrypick .+
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
name: generated-cherrypick-js
path: packages/cherrypick-js/generator/built/autogen

- name: Download artifact
uses: actions/[email protected]
# pull_request_target safety: permissions: read-all, and there are no secrets used in this job
get-actual-cherrypick-js:
runs-on: ubuntu-latest
permissions:
contents: read
if: ${{ github.event.pull_request.mergeable == null || github.event.pull_request.mergeable == true }}
steps:
- name: checkout
uses: actions/[email protected]
with:
script: |
const fs = require('fs');

const workflows = await github.rest.actions.listWorkflowRunsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
head_sha: `${{ github.event.pull_request.head.sha }}`
}).then(x => x.data.workflow_runs);

console.log(workflows.map(x => ({name: x.name, title: x.display_title})));

const run_id = workflows.find(x => x.name.includes("Get api.json from CherryPick")).id;

let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: run_id,
});

let matchArtifacts = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name.startsWith("api-artifact-") || artifact.name == "api-artifact"
});

await Promise.all(matchArtifacts.map(async (artifact) => {
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: artifact.id,
archive_format: 'zip',
});
await fs.promises.writeFile(`${process.env.GITHUB_WORKSPACE}/${artifact.name}.zip`, Buffer.from(download.data));
}));

- name: unzip artifacts
run: |-
find . -mindepth 1 -maxdepth 1 -type f -name '*.zip' -exec unzip {} -d . ';'
ls -la
submodules: true
ref: refs/pull/${{ github.event.pull_request.number }}/merge

- name: get head checksum
run: |-
checksum=$(realpath head_checksum)
- name: Upload From Merged
uses: actions/upload-artifact@v4
with:
name: actual-cherrypick-js
path: packages/cherrypick-js/src/autogen

cd packages/cherrypick-js/src
find autogen -type f -exec sh -c 'echo $(sed -E "s/^\s+\*\s+generatedAt:.+$//" {} | sha256sum | cut -d" " -f 1) {}' \; > $checksum
cd ../../..
# pull_request_target safety: nothing is cloned from repository
comment-cherrypick-js-autogen:
runs-on: ubuntu-latest
needs: [generate-cherrypick-js, get-actual-cherrypick-js]
permissions:
pull-requests: write
steps:
- name: download generated-cherrypick-js
uses: actions/download-artifact@v4
with:
name: generated-cherrypick-js
path: cherrypick-js-generated

- name: build autogen
run: |-
checksum=$(realpath ${api_json_name}_checksum)
mv $api_json_name packages/cherrypick-js/generator/api.json
- name: download actual-cherrypick-js
uses: actions/download-artifact@v4
with:
name: actual-cherrypick-js
path: cherrypick-js-actual

- name: check cherrypick-js changes
id: check-changes
run: |
diff -r -u --label=generated --label=on-tree ./cherrypick-js-generated ./cherrypick-js-actual > cherrypick-js.diff || true

cd packages/cherrypick-js/generator
pnpm run generate
cd built
find autogen -type f -exec sh -c 'echo $(sed -E "s/^\s+\*\s+generatedAt:.+$//" {} | sha256sum | cut -d" " -f 1) {}' \; > $checksum
cd ../../../..
if [ -s cherrypick-js.diff ]; then
echo "changes=true" >> $GITHUB_OUTPUT
else
echo "changes=false" >> $GITHUB_OUTPUT
fi

- name: check update for type definitions
run: diff head_checksum ${api_json_name}_checksum
- name: Print full diff
run: cat ./cherrypick-js.diff

- name: send message
if: failure()
if: steps.check-changes.outputs.changes == 'true'
uses: thollander/actions-comment-pull-request@v2
with:
comment_tag: check-cherrypick-js-autogen
Expand All @@ -125,7 +126,7 @@ jobs:
```

- name: send message
if: success()
if: steps.check-changes.outputs.changes == 'false'
uses: thollander/actions-comment-pull-request@v2
with:
comment_tag: check-cherrypick-js-autogen
Expand Down
75 changes: 75 additions & 0 deletions .github/workflows/check-spdx-license-id.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Check SPDX-License-Identifier

on:
push:
branches:
- master
- develop
pull_request:

jobs:
check-spdx-license-id:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Check
run: |
counter=0

search() {
local directory="$1"
find "$directory" -type f \
'(' \
-name "*.cjs" -and -not -name '*.config.cjs' -o \
-name "*.html" -o \
-name "*.js" -and -not -name '*.config.js' -o \
-name "*.mjs" -and -not -name '*.config.mjs' -o \
-name "*.scss" -o \
-name "*.ts" -and -not -name '*.config.ts' -o \
-name "*.vue" \
')' -and \
-not -name '*eslint*'
}

check() {
local file="$1"
if ! (
grep -q "SPDX-FileCopyrightText: syuilo and misskey-project" "$file" ||
grep -q "SPDX-License-Identifier: AGPL-3.0-only" "$file"
); then
echo "Missing: $file"
((counter++))
fi
}

directories=(
"cypress/e2e"
"packages/backend/migration"
"packages/backend/src"
"packages/backend/test"
"packages/frontend/.storybook"
"packages/frontend/@types"
"packages/frontend/lib"
"packages/frontend/public"
"packages/frontend/src"
"packages/frontend/test"
"packages/misskey-bubble-game/src"
"packages/misskey-reversi/src"
"packages/sw/src"
"scripts"
)

for directory in "${directories[@]}"; do
for file in $(search $directory); do
check "$file"
done
done

if [ $counter -gt 0 ]; then
echo "SPDX-License-Identifier is missing in $counter files."
exit 1
else
echo "SPDX-License-Identifier is certainly described in all target files!"
exit 0
fi
7 changes: 2 additions & 5 deletions .github/workflows/deploy-test-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,9 @@ jobs:

- name: Get PR ref
id: get-ref
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_NUMBER=$(jq --raw-output .issue.number $GITHUB_EVENT_PATH)
PR_REF=$(gh pr view $PR_NUMBER --json headRefName -q '.headRefName')
echo "pr-ref=$PR_REF" > $GITHUB_OUTPUT
PR_REF="refs/pull/${{ github.event.issue.number }}/head"
echo "pr-ref=$PR_REF" >> $GITHUB_OUTPUT

- name: Extract wait time
id: get-wait-time
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ jobs:
- run: pnpm i --frozen-lockfile
- run: pnpm --filter cherrypick-js run build
if: ${{ matrix.workspace == 'backend' }}
- run: pnpm --filter misskey-reversi run build:tsc
- run: pnpm --filter misskey-reversi run build
if: ${{ matrix.workspace == 'backend' }}
- run: pnpm --filter ${{ matrix.workspace }} run typecheck
40 changes: 40 additions & 0 deletions .github/workflows/release-edit-with-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Release Manager: sync changelog with PR"

on:
push:
branches:
- release/**
paths:
- 'CHANGELOG.md'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

permissions:
contents: write
issues: write
pull-requests: write

jobs:
edit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# headがrelease/かつopenのPRを1つ取得
- name: Get PR
run: |
echo "pr_number=$(gh pr list --limit 1 --head "${{ github.ref_name }}" --json number --jq '.[] | .number')" >> $GITHUB_OUTPUT
id: get_pr
- name: Get target version
uses: misskey-dev/release-manager-actions/.github/actions/get-target-version@v1
id: v
# CHANGELOG.mdの内容を取得
- name: Get changelog
uses: misskey-dev/release-manager-actions/.github/actions/get-changelog@v1
with:
version: ${{ steps.v.outputs.target_version }}
id: changelog
# PRのnotesを更新
- name: Update PR
run: |
gh pr edit ${{ steps.get_pr.outputs.pr_number }} --body "${{ steps.changelog.outputs.changelog }}"
Loading
Loading