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: 2023.11.0 #12177

Merged
merged 164 commits into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from 150 commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
101e5d6
Update CHANGELOG.md
syuilo Oct 21, 2023
2c0a139
feat: Avatar decoration (#12096)
syuilo Oct 21, 2023
12fe09c
プロフィールのURL認証をrel=meで可能に (#12100)
CyberRex0 Oct 21, 2023
722584b
すべてのフォロー中の人のwithRepliesを変える機能 (#12049)
anatawa12 Oct 21, 2023
f51bca4
Feat: 外部サイトからテーマ・プラグインのインストールができるように (#12034)
kakkokari-gtyih Oct 21, 2023
2697826
2023.11.0-beta.1
syuilo Oct 21, 2023
845713b
Update about-misskey.vue
syuilo Oct 22, 2023
fd8d253
:art:
syuilo Oct 22, 2023
7232771
fix(backend): リストTLに自分のフォロワー限定投稿が含まれない問題を修正
syuilo Oct 22, 2023
69795e7
Update CHANGELOG.md
syuilo Oct 22, 2023
4b29508
Update schemas.ts (#12103)
acid-chicken Oct 22, 2023
4eaa02d
enhance: improve avatar decoration
syuilo Oct 22, 2023
ce09a35
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Oct 22, 2023
983b1e6
fix(frontend): 投稿フォームでのユーザー変更がプレビューに反映されるように修正 (#12022)
zyoshoka Oct 22, 2023
18fb7a2
enhance(frontend): アイコンのデコレーションを非表示にできるように
syuilo Oct 22, 2023
7e80b3d
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Oct 22, 2023
5cd9880
:art:
syuilo Oct 22, 2023
1aeae62
chore(frontend): tweak settings ui
syuilo Oct 22, 2023
8091e8b
:art:
syuilo Oct 22, 2023
5dc0463
fix(backend): ローカルタイムラインに投稿者自身の投稿への返信が含まれない問題を修正
syuilo Oct 22, 2023
230b431
2023.11.0-beta.2
syuilo Oct 22, 2023
9221cbf
fix(backend): fix i/signin-history response
syuilo Oct 22, 2023
796265f
(fix) ページキャッシュが効く問題を修正 (#12105)
kakkokari-gtyih Oct 23, 2023
fdeee5d
update deps
syuilo Oct 23, 2023
805a2c0
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Oct 23, 2023
c9ae5d0
fix type
syuilo Oct 23, 2023
5a39c1a
fix type
syuilo Oct 23, 2023
e6c54de
enhance(backend): RedisへのTLのキャッシュをオフにできるように
syuilo Oct 23, 2023
9dcccbc
fix(backend): 自分のフォローしているユーザーの自分のフォローしていないユーザーの visibility: followers…
syuilo Oct 23, 2023
4a832e8
Replace deprecated `MediaQueryList.addListener()` (#12112)
woxtu Oct 23, 2023
c59973d
2023.11.0-beta.3
syuilo Oct 23, 2023
9c79f0b
Update CHANGELOG.md
syuilo Oct 23, 2023
9d0648e
enhance(server): Improve user block (Renote Part) (#12089)
atsu1125 Oct 23, 2023
9caae8a
feat: Facilitates the rollback of migration operations (#12109)
MomentQYC Oct 23, 2023
b22066b
ci: fix pull_req時にAPI diffの実行ができない (#12123)
anatawa12 Oct 23, 2023
7e15f71
ci: fix pullreq number may not get correctly (#12127)
anatawa12 Oct 24, 2023
0c73096
fix: RedisへのTLキャッシュが有効の場合にHTL/LTL/STL/リストが空になることがある問題を修正 (#12088) (#1…
hideki0403 Oct 24, 2023
afb37f0
:art:
syuilo Oct 24, 2023
4dd4a11
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Oct 24, 2023
0245462
feat(AiScript): Mk:nyaize() を追加 (#12136)
kakkokari-gtyih Oct 25, 2023
dc05827
Fix: STLでフォローしていないチャンネルが表示される問題を修正 (#12143)
ikasoba Oct 25, 2023
1d9b5ae
chore(frontend): 絵文字名のフィールドでautocapitalizeしないように (#12139)
7ka-Hiira Oct 25, 2023
5e76675
fix(frontend): ユーザーページの ノート > ファイル付き タブにリプライが表示されてしまう (#12148)
noridev Oct 27, 2023
a8ee67c
Fix: チャンネルのフォロー・アンフォローの反映速度を改善 (#12149)
samunohito Oct 27, 2023
8a2309b
fix(backend): ハッシュタグのランキングの問い合わせ結果がないときのエラー修正 (#12145)
tai-cha Oct 27, 2023
e5ff8d8
enhance: プラグイン削除時にアクセストークンも削除する (#12167)
kakkokari-gtyih Oct 27, 2023
c37616d
fix(frontend): Intlが対応していない言語の場合はフォールバックする (#12163)
kakkokari-gtyih Oct 27, 2023
aa31b6c
fix(frontend): MkGoogleのクエリを正しくエンコードできるように修正 (#12164)
kakkokari-gtyih Oct 27, 2023
abe78a2
enhance(frontend): データセーバー有効時はGIFアバターを停止 (#12165)
kakkokari-gtyih Oct 27, 2023
12ab905
Update CHANGELOG.md
syuilo Oct 28, 2023
a8dc6d0
update deps
syuilo Oct 28, 2023
481db8a
fix(frontend): MFMパース時に意図せずnyaizeされる問題を修正 (#12161)
kakkokari-gtyih Oct 28, 2023
e73e218
feat(frontend): プラグインを用いて疑似的にミュートできるようにする (#12135)
tai-cha Oct 28, 2023
a91d2ba
New Crowdin updates (#12101)
syuilo Oct 28, 2023
9ec667a
2023.11.0-beta.4
syuilo Oct 28, 2023
5887c5d
feat: チャンネルの作成・更新時にapiWithDialogを使うように (#12142)
yupix Oct 29, 2023
2a61a0c
Update .eslintrc.js
syuilo Oct 29, 2023
b627978
Update CHANGELOG.md
syuilo Oct 29, 2023
feedad7
enhance(frontend): tweak about-misskey page
syuilo Oct 29, 2023
1a8243f
MkCodeのパースエンジンをShikiに変更 (#12102)
kakkokari-gtyih Oct 29, 2023
a161a9c
Fix: notes/timelineにフォローしているチャンネルのノートを含める (#12179)
samunohito Oct 29, 2023
7436e0d
lint fixes
syuilo Oct 29, 2023
0fc36d1
fix(backend): STLにGTLの投稿が混ざる問題を修正
syuilo Oct 29, 2023
2da55f7
Feat: リモートユーザーの更新をできるように (#12172)
mattyatea Oct 29, 2023
aefc941
typo
syuilo Oct 29, 2023
59cc101
fix(backend): プロフィールの自己紹介欄のMFMを連合するように (#12184)
kakkokari-gtyih Oct 29, 2023
9ad48da
Update CHANGELOG.md
syuilo Oct 29, 2023
cb1449b
2023.11.0-beta.5
syuilo Oct 29, 2023
d9cfea8
fix: 個人カードのemojiがバッテリーになっている #12189 (#12190)
yupix Oct 29, 2023
8f01757
Update CHANGELOG.md
syuilo Oct 29, 2023
2de4d33
Fix: フォローしたユーザが、自分のフォローしていないチャンネルにノートを投稿した時、そのノートがHTLで見えてしまう (#12186)
samunohito Oct 29, 2023
117db08
fix(backend): プロフィールの自己紹介欄のMFMを連合するように(実装漏れ) (#12185)
kakkokari-gtyih Oct 29, 2023
c239058
feat(frontend): スワイプやボタンでタイムラインを再読込する機能 (#12113)
slofp Oct 30, 2023
20f70f1
2023.11.0-beta.6
syuilo Oct 30, 2023
38c163d
chore(deps): bump actions/setup-node from 3.8.1 to 4.0.0 (#12128)
dependabot[bot] Oct 30, 2023
183e5ce
Update CHANGELOG.md
syuilo Oct 30, 2023
e512f8c
fix(frontend): 標準テーマと同じIDを使用してインストールできてしまう問題を修正
syuilo Oct 30, 2023
50b16e3
enhance(frontend): URL入力フォームのtypeをurlに
syuilo Oct 30, 2023
7015cc9
fix(backend): We can renote pure renote (#12171)
anatawa12 Oct 30, 2023
52dbab5
tweak MkPullToRefresh
syuilo Oct 30, 2023
4f180ad
feat: アイコンデコレーションの管理をロールで設定できるように (#12173)
GrapeApple0 Oct 30, 2023
b4dd61a
Update .eslintrc.js
syuilo Oct 30, 2023
d45b2dd
lint fix
syuilo Oct 30, 2023
359f3d5
chore: Convert issue templates to YAML (#12194)
sorairolake Oct 30, 2023
4eab3c0
lint fixes
syuilo Oct 30, 2023
af779eb
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Oct 30, 2023
56c5da9
Update CHANGELOG.md
syuilo Oct 30, 2023
a35fe29
fix(backend): アクセストークンを削除すると、通知が取得できなくなる場合がある問題を修正
syuilo Oct 31, 2023
e6e5bf1
:art:
syuilo Oct 31, 2023
7c69228
fix(backend): 自身の宛先なしダイレクト投稿がストリーミングで流れてこない問題を修正 (#12203)
slofp Oct 31, 2023
e2f34e3
fix: headerActionにPC以外で空のボタンが出てしまうバグの修正 (#12202)
fruitriin Oct 31, 2023
cf026e4
feat: add tools to navbar (#12204)
anatawa12 Oct 31, 2023
735f22c
Update CHANGELOG.md
syuilo Oct 31, 2023
7d3721d
Update .eslintrc.js
syuilo Oct 31, 2023
bf01c1e
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Oct 31, 2023
d6fe897
perf(frontend): ノート表示時のMFMパース処理を減らす
syuilo Nov 1, 2023
e85b821
enhance(frontend): 「内容を隠す」でリアクションも隠れるように
syuilo Nov 1, 2023
5fb6847
Feat: 未読通知数を表示できるように (#11982)
kakkokari-gtyih Nov 1, 2023
7ed2a5f
perf(backend): remove needless query
syuilo Nov 1, 2023
e632a84
tweak default configuration
syuilo Nov 1, 2023
77db652
update deps
syuilo Nov 1, 2023
9b073e5
fix
syuilo Nov 1, 2023
821633f
:art:
syuilo Nov 1, 2023
5772de2
fix vitest
syuilo Nov 1, 2023
e88dbad
tweak test
syuilo Nov 1, 2023
c54baf8
2023.11.0-beta.7
syuilo Nov 1, 2023
6a73f7c
i/updateのレートリミットを緩和
syuilo Nov 1, 2023
c7129d5
fix(frontend): /about の連合タブのレイアウトが一部崩れているのを修正 (#12215)
camilla-ett Nov 2, 2023
f62ad3e
feat: notification grouping
syuilo Nov 2, 2023
3b272b4
Update locales/ja-JP.yml
syuilo Nov 2, 2023
cd0b6c1
2023.11.0-beta.8
syuilo Nov 2, 2023
d0d32e8
enhance(frontend): improve pull to refresh
syuilo Nov 2, 2023
ed699b4
Revert "enhance(frontend): 「内容を隠す」でリアクションも隠れるように"
syuilo Nov 2, 2023
e333e7c
docs: Remove forum references and use Github Discussions (#12158)
twocs Nov 2, 2023
d20f778
enhance(frontend): tweak MkNotification
syuilo Nov 2, 2023
3739b87
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Nov 2, 2023
f1903b2
fix 絵文字ピッカーでバッテリーの絵文字が複数表示される問題を修正 (#12212)
Srgr0 Nov 2, 2023
5f88880
clean up
syuilo Nov 2, 2023
7f5ad5b
enhance(frontend): tweak drive file component
syuilo Nov 2, 2023
82526ad
CWを使用する場合、注釈を空にすることを許可しない
syuilo Nov 2, 2023
7934627
feat: レジストリAPIをサードパーティから利用可能に (#12229)
syuilo Nov 3, 2023
0efacdf
fix cw test
syuilo Nov 3, 2023
3e00b32
build: port vite port configuration (#12223)
anatawa12 Nov 3, 2023
1729307
update deps
syuilo Nov 3, 2023
025ae43
enhance: アカウント登録時のメールアドレス認証に30分の有効期限を設定 (#12221)
hideki0403 Nov 3, 2023
24e629c
enhance: 初期設定とチュートリアルを統合 (#12141)
kakkokari-gtyih Nov 3, 2023
ee19116
enhance(frontend): tweak announcement manage ui
syuilo Nov 3, 2023
4631e6c
fix(frontend): In deck layout, replies option is not saved after refresh
syuilo Nov 3, 2023
39a3f4a
feat: チャンネル内→チャンネル外へのリノート制限機能追加 (#12230)
samunohito Nov 3, 2023
57d72c0
New Crowdin updates (#12180)
syuilo Nov 3, 2023
afd3b5d
2023.11.0-beta.9
syuilo Nov 3, 2023
470a1c3
enhance(frontend): federated instance icon with proxy (welcome entran…
caipira113 Nov 3, 2023
c31d2e2
fix(frontend): サイレンス状態で公開範囲のパブリックを選択できてしまう問題を修正 (#12224) (#12225)
ozelotdev Nov 3, 2023
8ddbe91
11以上されているリアクションにおいてツールチップで示されるリアクション数が本来よりも1多い問題を修正 (#12219)
Srgr0 Nov 3, 2023
8366984
fix: URLプレビューが表示されないのを修正 (#12222)
ikasoba Nov 3, 2023
4226657
Update CHANGELOG.md
syuilo Nov 3, 2023
fe90888
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Nov 3, 2023
e893494
Revert "fix: URLプレビューが表示されないのを修正 (#12222)"
syuilo Nov 3, 2023
a8e976d
Update CHANGELOG.md
syuilo Nov 3, 2023
a656447
enhance(frontend): improve pull to refresh
syuilo Nov 3, 2023
ef8a65e
Update about-misskey.vue
syuilo Nov 4, 2023
67414e0
perf(frontend): soundConfigStore を defaultStore に統合しAPIリクエストを削減
syuilo Nov 4, 2023
39f7318
tweak MkPullToRefresh
syuilo Nov 4, 2023
b92b704
fix control panel navigation
syuilo Nov 4, 2023
e88a970
Update CHANGELOG.md
syuilo Nov 4, 2023
ca1cda0
enhance(frontend): tweak settings page
syuilo Nov 4, 2023
5e9f6a9
enhance(frontend): ノート内のカスタム絵文字をクリックすることで、コピーおよびリアクションができるように
syuilo Nov 4, 2023
3642a2b
New Crowdin updates (#12231)
syuilo Nov 4, 2023
1e737db
fix(backend): GTLの「リノートを表示」オプションが機能しないのを修正 (#12234)
ozelotdev Nov 4, 2023
3733cbf
2023.11.0-beta.10
syuilo Nov 4, 2023
fc0ea0d
perf(frontend): improve nyaize performance
syuilo Nov 4, 2023
4785102
Update CHANGELOG.md
syuilo Nov 4, 2023
b7d3c5f
enhance of 5e9f6a90df
syuilo Nov 4, 2023
94a2020
(fix) チュートリアル中にPostFormにフォーカスが当たらないようにする (#12242)
kakkokari-gtyih Nov 4, 2023
8372e54
New Crowdin updates (#12241)
syuilo Nov 4, 2023
56401ed
:art:
syuilo Nov 4, 2023
bdbb326
fix(backend): アーカイブしたお知らせがコントロールパネルに表示される問題を修正
syuilo Nov 5, 2023
c2ddb64
enhance: 非通知なお知らせを作成できるように
syuilo Nov 5, 2023
2cce285
fix(backend): isBot not being set on `Application` type (#12248)
Mar0xy Nov 5, 2023
66cecfa
Update CHANGELOG.md
syuilo Nov 5, 2023
8f49c5c
New Crowdin updates (#12244)
syuilo Nov 5, 2023
2c836ba
enhance(build): フォールバック効かすためにlocaleの空文字は項目ごと消す
syuilo Nov 5, 2023
bb76ee2
enhance(frontend): 投稿内のunicode絵文字もメニューを出せるように
syuilo Nov 5, 2023
f72228f
2023.11.0
syuilo Nov 5, 2023
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
60 changes: 0 additions & 60 deletions .github/ISSUE_TEMPLATE/01_bug-report.md

This file was deleted.

91 changes: 91 additions & 0 deletions .github/ISSUE_TEMPLATE/01_bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: 🐛 Bug Report
description: Create a report to help us improve
labels: ["⚠️bug?"]

body:
- type: markdown
attributes:
value: |
Thanks for reporting!
First, in order to avoid duplicate Issues, please search to see if the problem you found has already been reported.
Also, If you are NOT owner/admin of server, PLEASE DONT REPORT SERVER SPECIFIC ISSUES TO HERE! (e.g. feature XXX is not working in misskey.example) Please try with another misskey servers, and if your issue is only reproducible with specific server, contact your server's owner/admin first.

- type: textarea
attributes:
label: 💡 Summary
description: Tell us what the bug is
validations:
required: true

- type: textarea
attributes:
label: 🥰 Expected Behavior
description: Tell us what should happen
validations:
required: true

- type: textarea
attributes:
label: 🤬 Actual Behavior
description: |
Tell us what happens instead of the expected behavior.
Please include errors from the developer console and/or server log files if you have access to them.
validations:
required: true

- type: textarea
attributes:
label: 📝 Steps to Reproduce
placeholder: |
1.
2.
3.
validations:
required: false

- type: textarea
attributes:
label: 💻 Frontend Environment
description: |
Tell us where on the platform it happens
DO NOT WRITE "latest". Please provide the specific version.

Examples:
* Model and OS of the device(s): MacBook Pro (14inch, 2021), macOS Ventura 13.4
* Browser: Chrome 113.0.5672.126
* Server URL: misskey.io
* Misskey: 13.x.x
value: |
* Model and OS of the device(s):
* Browser:
* Server URL:
* Misskey:
render: markdown
validations:
required: false

- type: textarea
attributes:
label: 🛰 Backend Environment (for server admin)
description: |
Tell us where on the platform it happens
DO NOT WRITE "latest". Please provide the specific version.
If you are using a managed service, put that after the version.

Examples:
* Installation Method or Hosting Service: docker compose, k8s/docker, systemd, "Misskey install shell script", development environment
* Misskey: 13.x.x
* Node: 20.x.x
* PostgreSQL: 15.x.x
* Redis: 7.x.x
* OS and Architecture: Ubuntu 22.04.2 LTS aarch64
value: |
* Installation Method or Hosting Service:
* Misskey:
* Node:
* PostgreSQL:
* Redis:
* OS and Architecture:
render: markdown
validations:
required: false
12 changes: 0 additions & 12 deletions .github/ISSUE_TEMPLATE/02_feature-request.md

This file was deleted.

11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/02_feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: ✨ Feature Request
description: Suggest an idea for this project
labels: ["✨Feature"]

body:
- type: textarea
attributes:
label: Summary
description: Tell us what the suggestion is
validations:
required: true
2 changes: 1 addition & 1 deletion .github/workflows/api-misskey-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- run: corepack enable

- name: Setup Node.js
uses: actions/setup-node@v3.8.1
uses: actions/setup-node@v4.0.0
with:
node-version-file: '.node-version'
cache: 'pnpm'
Expand Down
61 changes: 11 additions & 50 deletions .github/workflows/get-api-diff.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Report API Diff
# this name is used in report-api-diff.yml so be careful when change name
name: Get api.json from Misskey

on:
pull_request:
Expand Down Expand Up @@ -43,7 +44,7 @@ jobs:
version: 8
run_install: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.8.1
uses: actions/setup-node@v4.0.0
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
Expand Down Expand Up @@ -125,7 +126,7 @@ jobs:
version: 8
run_install: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.8.1
uses: actions/setup-node@v4.0.0
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
Expand Down Expand Up @@ -171,55 +172,15 @@ jobs:
- name: Kill Misskey Job
run: screen -S misskey -X quit

compare-diff:
save-pr-number:
runs-on: ubuntu-latest
if: success()
needs: [get-base, get-head]
permissions:
pull-requests: write

steps:
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: api-artifact
path: ./artifacts
- name: Output base
run: cat ./artifacts/api-base.json
- name: Output head
run: cat ./artifacts/api-head.json
- name: Arrange json files
- name: Save PR number
env:
PR_NUMBER: ${{ github.event.number }}
run: |
jq '.' ./artifacts/api-base.json > ./api-base.json
jq '.' ./artifacts/api-head.json > ./api-head.json
- name: Get diff of 2 files
run: diff -u --label=base --label=head ./api-base.json ./api-head.json | cat > api.json.diff
- name: Get full diff
run: diff --label=base --label=head --new-line-format='+%L' --old-line-format='-%L' --unchanged-line-format=' %L' ./api-base.json ./api-head.json | cat > api-full.json.diff
- name: Echo full diff
run: cat ./api-full.json.diff
- name: Upload full diff to Artifact
uses: actions/upload-artifact@v3
echo "$PR_NUMBER" > ./pr_number
- uses: actions/upload-artifact@v3
with:
name: api-artifact
path: api-full.json.diff
- id: out-diff
name: Build diff Comment
run: |
cat <<- EOF > ./output.md
このPRによるapi.jsonの差分
<details>
<summary>差分はこちら</summary>

\`\`\`diff
$(cat ./api.json.diff)
\`\`\`
</details>

[Get diff files from Workflow Page](https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID})
EOF
- name: Write diff comment
uses: thollander/actions-comment-pull-request@v2
with:
comment_tag: show_diff
filePath: ./output.md
path: pr_number
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
version: 8
run_install: false
- uses: actions/setup-node@v3.8.1
- uses: actions/setup-node@v4.0.0
with:
node-version-file: '.node-version'
cache: 'pnpm'
Expand All @@ -46,7 +46,7 @@ jobs:
with:
version: 7
run_install: false
- uses: actions/setup-node@v3.8.1
- uses: actions/setup-node@v4.0.0
with:
node-version-file: '.node-version'
cache: 'pnpm'
Expand All @@ -72,7 +72,7 @@ jobs:
with:
version: 7
run_install: false
- uses: actions/setup-node@v3.8.1
- uses: actions/setup-node@v4.0.0
with:
node-version-file: '.node-version'
cache: 'pnpm'
Expand Down
85 changes: 85 additions & 0 deletions .github/workflows/report-api-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Report API Diff

on:
workflow_run:
types: [completed]
workflows:
- Get api.json from Misskey # get-api-diff.yml

jobs:
compare-diff:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions:
pull-requests: write

# api-artifact
steps:
- name: Download artifact
uses: actions/github-script@v6
with:
script: |
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.payload.workflow_run.id,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "api-artifact"
})[0];
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
archive_format: 'zip',
});
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/api-artifact.zip`, Buffer.from(download.data));
- name: Extract artifact
run: unzip api-artifact.zip -d artifacts
- name: Load PR Number
id: load-pr-num
run: echo "pr-number=$(cat artifacts/pr_number)" >> "$GITHUB_OUTPUT"

- name: Output base
run: cat ./artifacts/api-base.json
- name: Output head
run: cat ./artifacts/api-head.json
- name: Arrange json files
run: |
jq '.' ./artifacts/api-base.json > ./api-base.json
jq '.' ./artifacts/api-head.json > ./api-head.json
- name: Get diff of 2 files
run: diff -u --label=base --label=head ./api-base.json ./api-head.json | cat > api.json.diff
- name: Get full diff
run: diff --label=base --label=head --new-line-format='+%L' --old-line-format='-%L' --unchanged-line-format=' %L' ./api-base.json ./api-head.json | cat > api-full.json.diff
- name: Echo full diff
run: cat ./api-full.json.diff
- name: Upload full diff to Artifact
uses: actions/upload-artifact@v3
with:
name: api-artifact
path: |
api-full.json.diff
api-base.json
api-head.json
- id: out-diff
name: Build diff Comment
run: |
cat <<- EOF > ./output.md
このPRによるapi.jsonの差分
<details>
<summary>差分はこちら</summary>

\`\`\`diff
$(cat ./api.json.diff)
\`\`\`
</details>

[Get diff files from Workflow Page](https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID})
EOF
- uses: thollander/actions-comment-pull-request@v2
with:
pr_number: ${{ steps.load-pr-num.outputs.pr-number }}
comment_tag: show_diff
filePath: ./output.md
2 changes: 1 addition & 1 deletion .github/workflows/test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
version: 8
run_install: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.8.1
uses: actions/setup-node@v4.0.0
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
Expand Down
Loading
Loading