-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
200 changed files
with
5,645 additions
and
2,629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
name: "Release Manager [Dispatch]" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
## Specify the type of the next release. | ||
#version_increment_type: | ||
# type: choice | ||
# description: 'VERSION INCREMENT TYPE' | ||
# default: 'patch' | ||
# required: false | ||
# options: | ||
# - 'major' | ||
# - 'minor' | ||
# - 'patch' | ||
merge: | ||
type: boolean | ||
description: 'MERGE RELEASE BRANCH TO MAIN' | ||
default: false | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
get-pr: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
pr_number: ${{ steps.get_pr.outputs.pr_number }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# headがrelease/かつopenのPRを1つ取得 | ||
- name: Get PRs | ||
run: | | ||
echo "pr_number=$(gh pr list --limit 1 --search "head:release/ is:open" --json number --jq '.[] | .number')" >> $GITHUB_OUTPUT | ||
id: get_pr | ||
|
||
merge: | ||
uses: misskey-dev/release-manager-actions/.github/workflows/merge.yml@v1 | ||
needs: get-pr | ||
if: ${{ needs.get-pr.outputs.pr_number != '' && inputs.merge == true }} | ||
with: | ||
pr_number: ${{ needs.get-pr.outputs.pr_number }} | ||
package_jsons_to_rewrite: ${{ vars.PACKAGE_JSONS_TO_REWRITE }} | ||
# Text to prepend to the changelog | ||
# The first line must be `## Unreleased` | ||
changes_template: | | ||
## Unreleased | ||
### General | ||
- | ||
### Client | ||
- | ||
### Server | ||
- | ||
use_external_app_to_release: ${{ vars.USE_RELEASE_APP == 'true' }} | ||
secrets: | ||
RELEASE_APP_ID: ${{ secrets.RELEASE_APP_ID }} | ||
RELEASE_APP_PRIVATE_KEY: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} | ||
RULESET_EDIT_APP_ID: ${{ secrets.RULESET_EDIT_APP_ID }} | ||
RULESET_EDIT_APP_PRIVATE_KEY: ${{ secrets.RULESET_EDIT_APP_PRIVATE_KEY }} | ||
|
||
create-prerelease: | ||
uses: misskey-dev/release-manager-actions/.github/workflows/create-prerelease.yml@v1 | ||
needs: get-pr | ||
if: ${{ needs.get-pr.outputs.pr_number != '' && inputs.merge != true }} | ||
with: | ||
pr_number: ${{ needs.get-pr.outputs.pr_number }} | ||
package_jsons_to_rewrite: ${{ vars.PACKAGE_JSONS_TO_REWRITE }} | ||
use_external_app_to_release: ${{ vars.USE_RELEASE_APP == 'true' }} | ||
secrets: | ||
RELEASE_APP_ID: ${{ secrets.RELEASE_APP_ID }} | ||
RELEASE_APP_PRIVATE_KEY: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} | ||
|
||
create-target: | ||
uses: misskey-dev/release-manager-actions/.github/workflows/create-target.yml@v1 | ||
needs: get-pr | ||
if: ${{ needs.get-pr.outputs.pr_number == '' }} | ||
with: | ||
# The script for version increment. | ||
# process.env.CURRENT_VERSION: The current version. | ||
# | ||
# Misskey calender versioning (yyyy.MM.patch) example | ||
version_increment_script: | | ||
const now = new Date(); | ||
const year = now.toLocaleDateString('en-US', { year: 'numeric', timeZone: 'Asia/Tokyo' }); | ||
const month = now.toLocaleDateString('en-US', { month: 'numeric', timeZone: 'Asia/Tokyo' }); | ||
const [major, minor, _patch] = process.env.CURRENT_VERSION.split('.'); | ||
const patch = Number(_patch.split('-')[0]); | ||
if (Number.isNaN(patch)) { | ||
console.error('Invalid patch version', year, month, process.env.CURRENT_VERSION, major, minor, _patch); | ||
throw new Error('Invalid patch version'); | ||
} | ||
if (year !== major || month !== minor) { | ||
return `${year}.${month}.0`; | ||
} else { | ||
return `${major}.${minor}.${patch + 1}`; | ||
} | ||
##Semver example | ||
#version_increment_script: | | ||
# const [major, minor, patch] = process.env.CURRENT_VERSION.split('.'); | ||
# if ("${{ inputs.version_increment_type }}" === "major") { | ||
# return `${Number(major) + 1}.0.0`; | ||
# } else if ("${{ inputs.version_increment_type }}" === "minor") { | ||
# return `${major}.${Number(minor) + 1}.0`; | ||
# } else { | ||
# return `${major}.${minor}.${Number(patch) + 1}`; | ||
# } | ||
package_jsons_to_rewrite: ${{ vars.PACKAGE_JSONS_TO_REWRITE }} | ||
use_external_app_to_release: ${{ vars.USE_RELEASE_APP == 'true' }} | ||
secrets: | ||
RELEASE_APP_ID: ${{ secrets.RELEASE_APP_ID }} | ||
RELEASE_APP_PRIVATE_KEY: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} | ||
RULESET_EDIT_APP_ID: ${{ secrets.RULESET_EDIT_APP_ID }} | ||
RULESET_EDIT_APP_PRIVATE_KEY: ${{ secrets.RULESET_EDIT_APP_PRIVATE_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: "Release Manager: release RC when ready for review" | ||
|
||
on: | ||
pull_request: | ||
types: [ready_for_review] | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
ref: ${{ steps.get_pr.outputs.ref }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# PR情報を取得 | ||
- name: Get PR | ||
run: | | ||
pr_json=$(gh pr view ${{ github.event.pull_request.number }} --json isDraft,headRefName) | ||
echo "ref=$(echo $pr_json | jq -r '.headRefName')" >> $GITHUB_OUTPUT | ||
id: get_pr | ||
release: | ||
uses: misskey-dev/release-manager-actions/.github/workflows/create-prerelease.yml@v1 | ||
needs: check | ||
if: startsWith(needs.check.outputs.ref, 'release/') | ||
with: | ||
pr_number: ${{ github.event.pull_request.number }} | ||
package_jsons_to_rewrite: ${{ vars.PACKAGE_JSONS_TO_REWRITE }} | ||
use_external_app_to_release: ${{ vars.USE_RELEASE_APP == 'true' }} | ||
secrets: | ||
RELEASE_APP_ID: ${{ secrets.RELEASE_APP_ID }} | ||
RELEASE_APP_PRIVATE_KEY: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,8 @@ jobs: | |
with: | ||
version: 8 | ||
run_install: false | ||
- name: Install FFmpeg | ||
uses: FedericoCarboni/setup-ffmpeg@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,47 @@ | ||
<!-- | ||
## 202x.x.x (unreleased) | ||
## Unreleased | ||
|
||
### Note | ||
- コントロールパネル内にあるサマリープロキシの設定個所がセキュリティから全般へ変更となります。 | ||
|
||
### General | ||
- | ||
- Enhance: URLプレビューの有効化・無効化を設定できるように #13569 | ||
- Enhance: アンテナでBotによるノートを除外できるように | ||
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/545) | ||
- Fix: Play作成時に設定した公開範囲が機能していない問題を修正 | ||
|
||
### Client | ||
- | ||
- Enhance: 自分のノートの添付ファイルから直接ファイルの詳細ページに飛べるように | ||
- Enhance: 広告がMisskeyと同一ドメインの場合はRouterで遷移するように | ||
- Enhance: リアクション・いいねの総数を表示するように | ||
- Enhance: リアクション受け入れが「いいねのみ」の場合はリアクション絵文字一覧を表示しないように | ||
- Enhance: 設定>プラグインのページからプラグインの簡易的なログやエラーを見られるように | ||
- 実装の都合により、プラグインは1つエラーを起こした時に即時停止するようになりました | ||
- Enhance: ページのデザインを変更 | ||
- Enhance: 2要素認証(ワンタイムパスワード)の入力欄を改善 | ||
- Enhance: 「今日誕生日のフォロー中ユーザー」ウィジェットを手動でリロードできるように | ||
- Enhance: 映像・音声の再生にブラウザのネイティブプレイヤーを使用できるように | ||
- Enhance: 映像・音声の再生メニューに「再生速度」「ループ再生」「ピクチャインピクチャ」を追加 | ||
- Enhance: 映像・音声の再生にキーボードショートカットが使えるように | ||
- Enhance: ノートについているリアクションの「もっと!」から、リアクションの一覧を表示できるように | ||
- Fix: 一部のページ内リンクが正しく動作しない問題を修正 | ||
- Fix: 周年の実績が閏年を考慮しない問題を修正 | ||
- Fix: ローカルURLのプレビューポップアップが左上に表示される | ||
- Fix: WebGL2をサポートしないブラウザで「季節に応じた画面の演出」が有効になっているとき、Misskeyが起動できなくなる問題を修正 | ||
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/459) | ||
- Fix: ページタイトルでローカルユーザーとリモートユーザーの区別がつかない問題を修正 | ||
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/528) | ||
- Fix: コードブロックのシンタックスハイライトで使用される定義ファイルをCDNから取得するように #13177 | ||
- CDNから取得せずMisskey本体にバンドルする場合は`pacakges/frontend/vite.config.ts`を修正してください。 | ||
- Fix: タイムゾーンによっては、「今日誕生日のフォロー中ユーザー」ウィジェットが正しく動作しない問題を修正 | ||
|
||
### Server | ||
- | ||
--> | ||
- Enhance: エンドポイント`antennas/update`の必須項目を`antennaId`のみに | ||
- Enhance: misskey-dev/[email protected]の取り込み(プレビュー生成処理の効率化) | ||
- Fix: フォローリクエストを作成する際に既存のものは削除するように | ||
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/440) | ||
- Fix: エンドポイント`notes/translate`のエラーを改善 | ||
- Fix: CleanRemoteFilesProcessorService report progress from 100% (#13632) | ||
- Fix: 一部の音声ファイルが映像ファイルとして扱われる問題を修正 | ||
|
||
## 2024.3.1 | ||
|
||
|
Oops, something went wrong.