Редактирование:
Getting Your Pull Accepted
(раздел)
Перейти к навигации
Перейти к поиску
Внимание:
Вы не вошли в систему. Ваш IP-адрес будет общедоступен, если вы запишете какие-либо изменения. Если вы
войдёте
или
создадите учётную запись
, её имя будет использоваться вместо IP-адреса, наряду с другими преимуществами.
Анти-спам проверка.
Не
заполняйте это!
= Pull Request Requirements = === 1. You must follow the coding standards === Please read through these [https://github.com/tgstation/tgstation/blob/master/.github/CONTRIBUTING.md Coding Standards]. The standards will change over time. Hopefully you already read through and made sure your code adhered to them before opening your pull request! === 2. Your code must compile. === This is a given. While your pull request will not be closed over this, it will not be accepted until it does compile cleanly. The [https://travis-ci.org/tgstation/-tg-station Travis] bot will check for this automatically, but you should check before you even commit. Warnings should also be cleared. Sometimes Travis is a silly bot and something unrelated to your code causes his compile to fail. If this happens you can force a rebuild by closing and reopening your pull request. Alternatively, you can ask a maintainer to force a rebuild from the Travis page (must be logged in). If you change an object's path, you must update any maps that have that item placed on it. Travis checks all maps, including Ministation and Metastation. If Travis is failing you after a path change and you don't know why, check the other maps! === 3. Do not automatically add FILE_DIR. === A recurring problem is people adding commits that needlessly spam changes to the DME due to having "Automatically add FILE_DIR" set in their project settings. You'll know if you have this problem if you see this in your commit (as seen through github): [[Image:Fucking_FILE_DIR.png|600px|center]] PRs that add things to FILE_DIR will be rejected. To fix this problem: # Open up DreamMaker # Build > Preferences for tgstation.dme... # '''Uncheck''' "Automatically set FILE_DIR for sub-directories" # Check compile. # Close DreamMaker and commit again. === 4. Pull requests must be atomic === Pull requests must add, remove, or change only ONE feature or related group of features. Do not "bundle" together a bunch of things, as each change may be controversial and hold up everything else. In addition, it's simply neater. Bugfix-only PRs are granted some leniency, however not all bugfixes are made equal. It's possible to have a change that technically fixes a bug, but does so in a way that's hacky or otherwise undesirable. === 5. Make explicit commit logs === Be clear in exactly what each of your commits do. Esoteric or jokey commit logs are hard for future coders to interpret which makes tracing changes harder. Don't make it too long however since an actual description of your changes goes into your pull request's comment. Ideally the first line should be a short summary, then you have a more fleshed out commentary below that. Make sure you also add a changelog entry if you're making a big player facing change. The guide to adding changelogs can be found in the [[Guide_to_Changelogs]] === 6. Clearly state what your pull request does === Don't withhold information about your pull request. This will get your pull request delayed, and if it happens too often your pull request will be closed. Suppose you fixed bug #1234 and changed the name and description of an item as a gag. '''Bad:''' <pre> In this PR I fixed bug #1234. </pre> '''Acceptable:''' <pre> In this PR I fixed bug #1234 and also modified the baton's name and description. </pre> == How to Deal with Merge Conflicts == Most of the time, Git is pretty smart about merging code files. However, if one PR is merged before yours that edits the same file, your PR will be in a state of conflict and will not be able to be automatically merged via GREEN BUTTON. Because there are more contributors than there are maintainers, most of the time resolving these conflicts falls to the maker of the PR. An easy way to fix merge conflicts is to make a new branch (you should especially do this if your PR is just a small one): # Switch to your master branch: Right-click your working folder, go '''TortoiseGit''' --> '''Git Switch/Checkout...''' # Look at the '''Branch'''-list and select '''master''' # Close the window that pops up (assuming it changed successfully) # Right-click your working folder, go '''TortoiseGit''' --> '''Git Pull...''' # On the top, from the '''Remote'''-list, select '''upstream''' and from the '''Remote Branch''' -list select '''master'''. # Close the window that pops up (assuming it updated successfully) # Make the same exact changes to the code which you have on your PR # Commit and MAKE A NEW BRANCH # Push your new branch to your PR branch, and tick '''Force: unknown changes''' If it's a map file that's conflicted, remember to start the [[Map Merger]] before you pull from upstream. {{Contribution guides}}
Описание изменений:
Пожалуйста, учтите, что любой ваш вклад в проект «MassMeta» может быть отредактирован или удалён другими участниками. Если вы не хотите, чтобы кто-либо изменял ваши тексты, не помещайте их сюда.
Вы также подтверждаете, что являетесь автором вносимых дополнений, или скопировали их из источника, допускающего свободное распространение и изменение своего содержимого (см.
MassMeta:Авторские права
).
НЕ РАЗМЕЩАЙТЕ БЕЗ РАЗРЕШЕНИЯ ОХРАНЯЕМЫЕ АВТОРСКИМ ПРАВОМ МАТЕРИАЛЫ!
Отменить
Справка по редактированию
(в новом окне)
Навигация
Персональные инструменты
Вы не представились системе
Обсуждение
Вклад
Создать учётную запись
Войти
Пространства имён
Статья
Обсуждение
русский
Просмотры
Читать
Править
Править код
История
Ещё
Поиск
/tg/station 13
Главная страница
Новым игрокам
Правила
Профессии
Гайды
Предметы
Локации
Карты
Игровые режимы
Вклад
Руководство по участию в разработке билда
Маппинг
Спрайтинг
Руководство по пониманию кода
Разработка
Wiki
Свежие правки
Случайная страница
Инструменты
Ссылки сюда
Связанные правки
Служебные страницы
Сведения о странице