This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
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
548 changed files
with
14,810 additions
and
5,722 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 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,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 |
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,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 |
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,186 @@ | ||
# this name is used in report-api-diff.yml so be careful when change name | ||
name: Get api.json from Misskey | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
get-base: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.5.1] | ||
|
||
services: | ||
db: | ||
image: postgres:13 | ||
ports: | ||
- 5432:5432 | ||
env: | ||
POSTGRES_DB: misskey | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
POSTGRES_USER: example-misskey-user | ||
POSTGRESS_PASS: example-misskey-pass | ||
redis: | ||
image: redis:7 | ||
ports: | ||
- 6379:6379 | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
repository: ${{ github.event.pull_request.base.repo.full_name }} | ||
ref: ${{ github.base_ref }} | ||
submodules: true | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
- run: corepack enable | ||
- run: pnpm i --frozen-lockfile | ||
- name: Check pnpm-lock.yaml | ||
run: git diff --exit-code pnpm-lock.yaml | ||
- name: Copy Configure | ||
run: cp .config/example.yml .config/default.yml | ||
- name: Build | ||
run: pnpm build | ||
- name : Migrate | ||
run: pnpm migrate | ||
- name: Launch misskey | ||
run: | | ||
screen -S misskey -dm pnpm run dev | ||
sleep 30s | ||
- name: Wait for Misskey to be ready | ||
run: | | ||
MAX_RETRIES=12 | ||
RETRY_DELAY=5 | ||
count=0 | ||
until $(curl --output /dev/null --silent --head --fail http://localhost:3000) || [[ $count -eq $MAX_RETRIES ]]; do | ||
printf '.' | ||
sleep $RETRY_DELAY | ||
count=$((count + 1)) | ||
done | ||
if [[ $count -eq $MAX_RETRIES ]]; then | ||
echo "Failed to connect to Misskey after $MAX_RETRIES attempts." | ||
exit 1 | ||
fi | ||
- id: fetch | ||
name: Get api.json from Misskey | ||
run: | | ||
RESULT=$(curl --retry 5 --retry-delay 5 --retry-max-time 60 http://localhost:3000/api.json) | ||
echo $RESULT > api-base.json | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: api-artifact | ||
path: api-base.json | ||
- name: Kill Misskey Job | ||
run: screen -S misskey -X quit | ||
|
||
get-head: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.5.1] | ||
|
||
services: | ||
db: | ||
image: postgres:13 | ||
ports: | ||
- 5432:5432 | ||
env: | ||
POSTGRES_DB: misskey | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
POSTGRES_USER: example-misskey-user | ||
POSTGRESS_PASS: example-misskey-pass | ||
redis: | ||
image: redis:7 | ||
ports: | ||
- 6379:6379 | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.head_ref }} | ||
submodules: true | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
- run: corepack enable | ||
- run: pnpm i --frozen-lockfile | ||
- name: Check pnpm-lock.yaml | ||
run: git diff --exit-code pnpm-lock.yaml | ||
- name: Copy Configure | ||
run: cp .config/example.yml .config/default.yml | ||
- name: Build | ||
run: pnpm build | ||
- name : Migrate | ||
run: pnpm migrate | ||
- name: Launch misskey | ||
run: | | ||
screen -S misskey -dm pnpm run dev | ||
sleep 30s | ||
- name: Wait for Misskey to be ready | ||
run: | | ||
MAX_RETRIES=12 | ||
RETRY_DELAY=5 | ||
count=0 | ||
until $(curl --output /dev/null --silent --head --fail http://localhost:3000) || [[ $count -eq $MAX_RETRIES ]]; do | ||
printf '.' | ||
sleep $RETRY_DELAY | ||
count=$((count + 1)) | ||
done | ||
if [[ $count -eq $MAX_RETRIES ]]; then | ||
echo "Failed to connect to Misskey after $MAX_RETRIES attempts." | ||
exit 1 | ||
fi | ||
- id: fetch | ||
name: Get api.json from Misskey | ||
run: | | ||
RESULT=$(curl --retry 5 --retry-delay 5 --retry-max-time 60 http://localhost:3000/api.json) | ||
echo $RESULT > api-head.json | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: api-artifact | ||
path: api-head.json | ||
- name: Kill Misskey Job | ||
run: screen -S misskey -X quit | ||
|
||
save-pr-number: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Save PR number | ||
env: | ||
PR_NUMBER: ${{ github.event.number }} | ||
run: | | ||
echo "$PR_NUMBER" > ./pr_number | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: api-artifact | ||
path: pr_number |
Oops, something went wrong.