forked from misskey-dev/misskey
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag '2024.5.0' into dev-kakurega
- Loading branch information
Showing
460 changed files
with
28,102 additions
and
17,318 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,7 +106,7 @@ redis: | |
# ┌───────────────────────────┐ | ||
#───┘ MeiliSearch configuration └───────────────────────────── | ||
|
||
# You can set scope to local (default value) or global | ||
# You can set scope to local (default value) or global | ||
# (include notes from remote). | ||
|
||
#meilisearch: | ||
|
@@ -136,6 +136,21 @@ redis: | |
|
||
id: 'aidx' | ||
|
||
# ┌────────────────┐ | ||
#───┘ Error tracking └────────────────────────────────────────── | ||
|
||
# Sentry is available for error tracking. | ||
# See the Sentry documentation for more details on options. | ||
|
||
#sentryForBackend: | ||
# enableNodeProfiling: true | ||
# options: | ||
# dsn: 'https://[email protected]/0' | ||
|
||
#sentryForFrontend: | ||
# options: | ||
# dsn: 'https://[email protected]/0' | ||
|
||
# ┌─────────────────────┐ | ||
#───┘ Other configuration └───────────────────────────────────── | ||
|
||
|
@@ -185,7 +200,7 @@ proxyRemoteFiles: true | |
signToActivityPubGet: true | ||
|
||
# For security reasons, uploading attachments from the intranet is prohibited, | ||
# but exceptions can be made from the following settings. Default value is "undefined". | ||
# but exceptions can be made from the following settings. Default value is "undefined". | ||
# Read changelog to learn more (Improvements of 12.90.0 (2021/09/04)). | ||
#allowedPrivateNetworks: [ | ||
# '127.0.0.1/32' | ||
|
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 |
---|---|---|
|
@@ -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 Misskey 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 | ||
|
@@ -205,6 +205,21 @@ redis: | |
|
||
id: 'aidx' | ||
|
||
# ┌────────────────┐ | ||
#───┘ Error tracking └────────────────────────────────────────── | ||
|
||
# Sentry is available for error tracking. | ||
# See the Sentry documentation for more details on options. | ||
|
||
#sentryForBackend: | ||
# enableNodeProfiling: true | ||
# options: | ||
# dsn: 'https://[email protected]/0' | ||
|
||
#sentryForFrontend: | ||
# options: | ||
# dsn: 'https://[email protected]/0' | ||
|
||
# ┌─────────────────────┐ | ||
#───┘ Other configuration └───────────────────────────────────── | ||
|
||
|
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 |
---|---|---|
|
@@ -132,6 +132,21 @@ redis: | |
|
||
id: 'aidx' | ||
|
||
# ┌────────────────┐ | ||
#───┘ Error tracking └────────────────────────────────────────── | ||
|
||
# Sentry is available for error tracking. | ||
# See the Sentry documentation for more details on options. | ||
|
||
#sentryForBackend: | ||
# enableNodeProfiling: true | ||
# options: | ||
# dsn: 'https://[email protected]/0' | ||
|
||
#sentryForFrontend: | ||
# options: | ||
# dsn: 'https://[email protected]/0' | ||
|
||
# ┌─────────────────────┐ | ||
#───┘ Other configuration └───────────────────────────────────── | ||
|
||
|
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
paths: | ||
- locales/** | ||
pull_request: | ||
paths: | ||
- locales/** | ||
|
||
jobs: | ||
locale_verify: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
- uses: pnpm/action-setup@v4 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'pnpm' | ||
- run: corepack enable | ||
- run: pnpm i --frozen-lockfile | ||
- run: cd locales && node verify.js |
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,43 @@ | ||
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 "$PR_NUMBER" --body "$CHANGELOG" | ||
env: | ||
CHANGELOG: ${{ steps.changelog.outputs.changelog }} | ||
PR_NUMBER: ${{ steps.get_pr.outputs.pr_number }} |
Oops, something went wrong.