5.3 KiB

Contributing to Mastodon Glitch+Treehouse Edition

Thank you for your interest in contributing to the Treehouse Mastodon project! Here are some guidelines, and ways you can help.

(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!)


If your username is kouhai, or you're otherwise merging from upstream glitch-soc for some reason, the following snippets may be useful:

git fetch glitch && git merge glitch/main && git checkout glitch/main -- yarn.lock
export RAILS_ENV=production NODE_ENV=production
export OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder
bundle install \
&& yarn install \
&& bundle exec rake assets:clobber \
&& bundle exec rake webpacker:compile | tee /tmp/out.log


You can submit glitch-soc-specific translations via Crowdin. They are periodically merged into the codebase.



Right now a lot of the planning for this project takes place in the #fediverse channel of the Treehouse Discord, or through Gitea Issues.

We're working on ways to improve the planning structure and better solicit feedback, and if you feel like you can help in this respect, feel free to give us a holler.


The upstream Glitch documentation for this repository is available at glitch-soc/docs (online at


For a some-batteries-required guide to setting up a development environment for this repository, read Rin's excellent

Frontend Development

Check out the documentation here for more information.

Backend Development

See the guidelines below.

You should also try to follow the guidelines set out in the original from mastodon/mastodon, reproduced below.


Thank you for considering contributing to Mastodon 🐘

You can contribute in the following ways:

  • 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.

API Changes and Additions

Please note that any changes or additions made to the API should have an accompanying pull request on our documentation repository.

Bug reports

Bug reports and feature suggestions must use descriptive and concise titles and be submitted to GitHub 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.


You can submit translations via Crowdin. They are periodically merged into the codebase.


Pull requests

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 categories, 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).


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.

Pull requests that do not pass automated checks may not be reviewed. In particular, you need to keep in mind:

  • Unit and integration tests (rspec, jest)
  • Code style rules (rubocop, eslint)
  • Normalization of locale files (i18n-tasks)


The Mastodon documentation is a statically generated site. You can submit merge requests to mastodon/documentation.