View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/394 Approved-by: Marie <marie@kaifa.ch> Approved-by: Amelia Yukii <amelia.yukii@shourai.de>
This commit is contained in:
commit
5988c5fa70
1 changed files with 45 additions and 29 deletions
|
@ -1,38 +1,36 @@
|
||||||
# Contribution guide
|
# Contribution guide
|
||||||
We're glad you're interested in contributing Misskey! In this document you will find the information you need to contribute to the project.
|
We're glad you're interested in contributing to Sharkey! In this document you will find the information you need to contribute to the project.
|
||||||
|
|
||||||
> **Note**
|
|
||||||
> This project uses Japanese as its major language, **but you do not need to translate and write the Issues/PRs in Japanese.**
|
|
||||||
> Also, you might receive comments on your Issue/PR in Japanese, but you do not need to reply to them in Japanese as well.\
|
|
||||||
> The accuracy of machine translation into Japanese is not high, so it will be easier for us to understand if you write it in the original language.
|
|
||||||
> It will also allow the reader to use the translation tool of their preference if necessary.
|
|
||||||
|
|
||||||
## Roadmap
|
## Roadmap
|
||||||
See [ROADMAP.md](./ROADMAP.md)
|
See [ROADMAP.md](./ROADMAP.md) for the upstream Misskey roadmap.
|
||||||
|
|
||||||
## Issues
|
## Issues
|
||||||
Before creating an issue, please check the following:
|
Before creating an issue, please check the following:
|
||||||
- To avoid duplication, please search for similar issues before creating a new issue.
|
- To avoid duplication, please search for similar issues before creating a new issue.
|
||||||
- Do not use Issues to ask questions or troubleshooting.
|
- Do not use Issues to ask questions or troubleshooting.
|
||||||
- Issues should only be used to feature requests, suggestions, and bug tracking.
|
- Issues should only be used to feature requests, suggestions, and bug tracking.
|
||||||
- Please ask questions or troubleshooting in [GitHub Discussions](https://github.com/misskey-dev/misskey/discussions) or [Discord](https://discord.gg/Wp8gVStHW3).
|
- Please ask questions or troubleshooting in [Discord](https://discord.gg/6VgKmEqHNk).
|
||||||
|
|
||||||
> **Warning**
|
> **Warning**
|
||||||
> Do not close issues that are about to be resolved. It should remain open until a commit that actually resolves it is merged.
|
> Do not close issues that are about to be resolved. It should remain open until a commit that actually resolves it is merged.
|
||||||
|
|
||||||
## Before implementation
|
## Before implementation
|
||||||
When you want to add a feature or fix a bug, **first have the design and policy reviewed in an Issue** (if it is not there, please make one). Without this step, there is a high possibility that the PR will not be merged even if it is implemented.
|
When you want to add a feature or fix a bug, *please open an issue*,
|
||||||
|
don't just start writing code. We may suggest different approaches, or
|
||||||
|
show that the "bug" is actually intended behaviour (and offer
|
||||||
|
work-arounds), or maybe we won't be able to merge your new feature
|
||||||
|
because it would make it too hard to incorporate future changes from
|
||||||
|
Misskey. Each of these examples have actually happened!
|
||||||
|
|
||||||
At this point, you also need to clarify the goals of the PR you will create, and make sure that the other members of the team are aware of them.
|
On the other hand, it's very likely that we'll tell you "go
|
||||||
PRs that do not have a clear set of do's and don'ts tend to be bloated and difficult to review.
|
ahead!". We try our best to incorporate improvements from our users!
|
||||||
|
|
||||||
Also, when you start implementation, assign yourself to the Issue (if you cannot do it yourself, ask another member to assign you). By expressing your intention to work the Issue, you can prevent conflicts in the work.
|
Also, when you start implementation, assign yourself to the Issue (if you cannot do it yourself, ask another member to assign you). By expressing your intention to work the Issue, you can prevent conflicts in the work.
|
||||||
|
|
||||||
## Well-known branches
|
## Well-known branches
|
||||||
- **`master`** branch is tracking the latest release and used for production purposes.
|
- **`stable`** branch is tracking the latest release and used for production purposes.
|
||||||
- **`develop`** branch is where we work for the next release.
|
- **`develop`** branch is where we work for the next release.
|
||||||
- When you create a PR, basically target it to this branch.
|
- When you create a PR, basically target it to this branch.
|
||||||
- **`l10n_develop`** branch is reserved for localization management.
|
|
||||||
|
|
||||||
## Creating a PR
|
## Creating a PR
|
||||||
Thank you for your PR! Before creating a PR, please check the following:
|
Thank you for your PR! Before creating a PR, please check the following:
|
||||||
|
@ -40,7 +38,7 @@ Thank you for your PR! Before creating a PR, please check the following:
|
||||||
- `fix` / `refactor` / `feat` / `enhance` / `perf` / `chore` etc
|
- `fix` / `refactor` / `feat` / `enhance` / `perf` / `chore` etc
|
||||||
- Also, make sure that the granularity of this PR is appropriate. Please do not include more than one type of change or interest in a single PR.
|
- Also, make sure that the granularity of this PR is appropriate. Please do not include more than one type of change or interest in a single PR.
|
||||||
- If there is an Issue which will be resolved by this PR, please include a reference to the Issue in the text.
|
- If there is an Issue which will be resolved by this PR, please include a reference to the Issue in the text.
|
||||||
- Please add the summary of the changes to [`CHANGELOG.md`](/CHANGELOG.md). However, this is not necessary for changes that do not affect the users, such as refactoring.
|
- Please add the summary of the changes to [`CHANGELOG.md`](CHANGELOG.md). However, this is not necessary for changes that do not affect the users, such as refactoring.
|
||||||
- Check if there are any documents that need to be created or updated due to this change.
|
- Check if there are any documents that need to be created or updated due to this change.
|
||||||
- If you have added a feature or fixed a bug, please add a test case if possible.
|
- If you have added a feature or fixed a bug, please add a test case if possible.
|
||||||
- Please make sure that tests and Lint are passed in advance.
|
- Please make sure that tests and Lint are passed in advance.
|
||||||
|
@ -66,26 +64,19 @@ Be willing to comment on the good points and not just the things you want fixed
|
||||||
- Are there any omissions or gaps?
|
- Are there any omissions or gaps?
|
||||||
- Does it check for anomalies?
|
- Does it check for anomalies?
|
||||||
|
|
||||||
## Deploy
|
|
||||||
The `/deploy` command by issue comment can be used to deploy the contents of a PR to the preview environment.
|
|
||||||
```
|
|
||||||
/deploy sha=<commit hash>
|
|
||||||
```
|
|
||||||
An actual domain will be assigned so you can test the federation.
|
|
||||||
|
|
||||||
## Merge
|
## Merge
|
||||||
|
|
||||||
## Release
|
## Release
|
||||||
### Release Instructions
|
### Release Instructions
|
||||||
1. Commit version changes in the `develop` branch ([package.json](https://github.com/misskey-dev/misskey/blob/develop/package.json))
|
1. Commit version changes in the `develop` branch ([package.json](https://activitypub.software/TransFem-org/Sharkey/-/blob/develop/package.json))
|
||||||
2. Create a release PR.
|
2. Create a release PR.
|
||||||
- Into `master` from `develop` branch.
|
- Into `stable` from `develop` branch.
|
||||||
- The title must be in the format `Release: x.y.z`.
|
- The title must be in the format `Release: x.y.z`.
|
||||||
- `x.y.z` is the new version you are trying to release.
|
- `x.y.z` is the new version you are trying to release.
|
||||||
3. Deploy and perform a simple QA check. Also verify that the tests passed.
|
3. Deploy and perform a simple QA check. Also verify that the tests passed.
|
||||||
4. Merge it. (Do not squash commit)
|
4. Merge it. (Do not squash commit)
|
||||||
5. Create a [release of GitHub](https://github.com/misskey-dev/misskey/releases)
|
5. Create a [release](https://activitypub.software/TransFem-org/Sharkey/-/releases)
|
||||||
- The target branch must be `master`
|
- The target branch must be `stable`
|
||||||
- The tag name must be the version
|
- The tag name must be the version
|
||||||
|
|
||||||
> **Note**
|
> **Note**
|
||||||
|
@ -156,7 +147,7 @@ pnpm dev
|
||||||
```
|
```
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
- Test codes are located in [`/packages/backend/test`](/packages/backend/test).
|
- Test codes are located in [`/packages/backend/test`](packages/backend/test).
|
||||||
|
|
||||||
### Run test
|
### Run test
|
||||||
Create a config file.
|
Create a config file.
|
||||||
|
@ -188,8 +179,8 @@ TODO
|
||||||
- `MISSKEY_WEBFINGER_USE_HTTP`: If it's set true, WebFinger requests will be http instead of https, useful for testing federation between servers in localhost. NEVER USE IN PRODUCTION.
|
- `MISSKEY_WEBFINGER_USE_HTTP`: If it's set true, WebFinger requests will be http instead of https, useful for testing federation between servers in localhost. NEVER USE IN PRODUCTION.
|
||||||
|
|
||||||
## Continuous integration
|
## Continuous integration
|
||||||
Misskey uses GitHub Actions for executing automated tests.
|
Sharkey uses GitLab CI for executing automated tests.
|
||||||
Configuration files are located in [`/.github/workflows`](/.github/workflows).
|
Configuration files are located in [`/.gitlab-ci.yml`](.gitlab-ci.yml).
|
||||||
|
|
||||||
## Vue
|
## Vue
|
||||||
Misskey uses Vue(v3) as its front-end framework.
|
Misskey uses Vue(v3) as its front-end framework.
|
||||||
|
@ -455,3 +446,28 @@ marginはそのコンポーネントを使う側が設定する
|
||||||
|
|
||||||
### indexというファイル名を使うな
|
### indexというファイル名を使うな
|
||||||
ESMではディレクトリインポートは廃止されているのと、ディレクトリインポートせずともファイル名が index だと何故か一部のライブラリ?でディレクトリインポートだと見做されてエラーになる
|
ESMではディレクトリインポートは廃止されているのと、ディレクトリインポートせずともファイル名が index だと何故か一部のライブラリ?でディレクトリインポートだと見做されてエラーになる
|
||||||
|
|
||||||
|
## Merging from Misskey into Sharkey
|
||||||
|
|
||||||
|
Make sure you have both remotes in the same clone (`git remote add misskey
|
||||||
|
https://github.com/misskey-dev/misskey.git`), then:
|
||||||
|
|
||||||
|
git remote update
|
||||||
|
git checkout develop # this is Sharkey's develop
|
||||||
|
git checkout -m merge/$(date +%Y-%m-%d) # or whatever
|
||||||
|
git merge --no-ff misskey/develop
|
||||||
|
|
||||||
|
fix conflicts and *commit*!
|
||||||
|
|
||||||
|
*after that commit*, do all the extra work, on the same branch:
|
||||||
|
|
||||||
|
* copy all changes:
|
||||||
|
* from `NoteCreateService` to `NoteEditService`
|
||||||
|
* from `ApNoteService.createNote` to `ApNoteService.updateNote`
|
||||||
|
* from `endoints/notes/create.ts` to `endoints/notes/edit.ts`
|
||||||
|
* from `MkNote*` to `SkNote*` (if sensible)
|
||||||
|
* run tests `pnpm test` and fix as much as you can
|
||||||
|
* run lint `pnpm --filter=backend lint` + `pnpm --filter=frontend
|
||||||
|
eslint` and fix as much as you can
|
||||||
|
|
||||||
|
Then push and open a Merge Request.
|
||||||
|
|
Loading…
Reference in a new issue