-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #391 from kokonect-link/develop
Release: 4.5.0
- Loading branch information
Showing
324 changed files
with
10,384 additions
and
4,050 deletions.
There are no files selected for viewing
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 cherrypick.example) Please try with another CherryPick 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: kokonect.link | ||
* CherryPick: 4.x.x (Misskey: 2023.x.x) | ||
value: | | ||
* Model and OS of the device(s): | ||
* Browser: | ||
* Server URL: | ||
* CherryPick: | ||
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, "CherryPick install shell script", development environment | ||
* CherryPick: 4.x.x (Misskey: 2023.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: | ||
* CherryPick: | ||
* 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
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,85 @@ | ||
name: Report API Diff | ||
|
||
on: | ||
workflow_run: | ||
types: [completed] | ||
workflows: | ||
- Get api.json from CherryPick # 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 |
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
Oops, something went wrong.