catstodon/CONTRIBUTING.md

91 lines
4.8 KiB
Markdown
Raw Normal View History

2022-05-18 22:18:14 +02:00
# Contributing to Catstodon #
2017-07-13 08:55:55 +02:00
2022-04-27 23:48:11 +02:00
Thank you for your interest in contributing to a fork of the `glitch-soc` project!
Before you do anything here, please check if you can contribute to either the [vanilla Mastodon project](https://github.com/mastodon/mastodon) or [glitch-soc](https://github.com/glitch-soc/mastodon) first.
If you still decide to contribute here instead, here are some guidelines, and ways you can help.
2017-07-13 08:55:55 +02:00
> (This document is a bit of a work-in-progress, so please bear with us.
> If you don't see what you're looking for here, please don't hesitate to reach out!)
## Translations
You can submit glitch-soc-specific translations via [Crowdin](https://crowdin.com/project/glitch-soc). They are periodically merged into the codebase.
[![Crowdin](https://badges.crowdin.net/glitch-soc/localized.svg)](https://crowdin.com/project/glitch-soc)
2017-07-13 08:55:55 +02:00
## Planning ##
2022-05-18 22:18:14 +02:00
Right now a lot of the planning for this project takes place... in my head. Actually, just contact me via Matrix - contact info can be found on [my personal website](https://kescher.at). You can also contribute via GitHub or kescherGit, if you have an account at either.
2017-07-13 08:55:55 +02:00
## Documentation ##
2022-04-27 23:48:11 +02:00
Unlike glitch-soc, which has [`glitch-soc/docs`](https://github.com/glitch-soc/docs) (online at [glitch-soc.github.io/docs/](https://glitch-soc.github.io/docs/)), this repo only documents things in a README. Sorry.
Right now, we've mostly focused on the features that make this fork different from upstream, which, may I remind you, is already a fork.
2017-07-13 08:55:55 +02:00
## Frontend Development ##
2022-04-27 23:48:11 +02:00
Check out [the documentation here](https://glitch-soc.github.io/docs/contributing/frontend/) for more information on this topic. We'll be following that a bit.
2017-07-13 08:55:55 +02:00
## Backend Development ##
See the guidelines below.
- - -
You should also try to follow the guidelines set out in the original `CONTRIBUTING.md` from `mastodon/mastodon`, reproduced below.
2017-07-13 08:55:55 +02:00
<blockquote>
2017-03-19 03:52:21 +01:00
CONTRIBUTING
=======
Contributing
2017-03-19 03:52:21 +01:00
Thank you for considering contributing to Mastodon 🐘
2017-03-19 03:52:21 +01:00
You can contribute in the following ways:
2017-03-19 03:52:21 +01:00
- Finding and reporting bugs
- Translating the Mastodon interface into various languages
- Contributing code to Mastodon by fixing bugs or implementing features
- Improving the documentation
If your contributions are accepted into Mastodon, you can request to be paid through [our OpenCollective](https://opencollective.com/mastodon).
## Bug reports
2017-03-19 03:52:21 +01:00
Bug reports and feature suggestions must use descriptive and concise titles and be submitted to [GitHub Issues](https://github.com/mastodon/mastodon/issues). Please use the search function to make sure that you are not submitting duplicates, and that a similar report or request has not already been resolved or rejected.
2017-03-19 03:52:21 +01:00
## Translations
2017-03-19 03:52:21 +01:00
You can submit translations via [Crowdin](https://crowdin.com/project/mastodon). They are periodically merged into the codebase.
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/mastodon/localized.svg)](https://crowdin.com/project/mastodon)
2017-03-19 03:52:21 +01:00
## Pull requests
2017-03-19 03:52:21 +01:00
**Please use clean, concise titles for your pull requests.** Unless the pull request is about refactoring code, updating dependencies or other internal tasks, assume that the person reading the pull request title is not a programmer or Mastodon developer, but instead a Mastodon user or server administrator, and **try to describe your change or fix from their perspective**. We use commit squashing, so the final commit in the main branch will carry the title of the pull request, and commits from the main branch are fed into the changelog. The changelog is separated into [keepachangelog.com categories](https://keepachangelog.com/en/1.0.0/), and while that spec does not prescribe how the entries ought to be named, for easier sorting, start your pull request titles using one of the verbs "Add", "Change", "Deprecate", "Remove", or "Fix" (present tense).
2017-03-19 03:52:21 +01:00
Example:
|Not ideal|Better|
|---|----|
|Fixed NoMethodError in RemovalWorker|Fix nil error when removing statuses caused by race condition|
It is not always possible to phrase every change in such a manner, but it is desired.
**The smaller the set of changes in the pull request is, the quicker it can be reviewed and merged.** Splitting tasks into multiple smaller pull requests is often preferable.
2017-03-19 03:52:21 +01:00
**Pull requests that do not pass automated checks may not be reviewed**. In particular, you need to keep in mind:
2017-03-19 03:52:21 +01:00
- Unit and integration tests (rspec, jest)
- Code style rules (rubocop, eslint)
- Normalization of locale files (i18n-tasks)
2017-07-13 08:55:55 +02:00
**Note**: You may need to log in and authorise the GitHub account your fork of this repository belongs to with CircleCI to enable some of the automated checks to run.
## Documentation
The [Mastodon documentation](https://docs.joinmastodon.org) is a statically generated site. You can [submit merge requests to mastodon/documentation](https://github.com/mastodon/documentation).
2017-07-13 08:55:55 +02:00
</blockquote>