Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into merge-upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dzianishchyts committed Dec 11, 2024
2 parents 92c663e + 8a503af commit 0cc9bd4
Show file tree
Hide file tree
Showing 1,965 changed files with 1,320,478 additions and 14,395 deletions.
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#DOCS
#https://docs.github.com/en/github-ae@latest/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
#
blank_issues_enabled: false
blank_issues_enabled: true
contact_links:
- name: Feature Request
url: https://www.paradisestation.org/forum/60-suggestions/
about: Please place all feature requests at the following link. (Paradise Station Forums)
url: https://discord.com/channels/1097181193939730453/1181261198096875670
about: Запросы новых фич следует оставлять на форуме ss13-трекер в дискорде.
- name: Exploit Reports
url: https://www.paradisestation.org/forum/179-exploit-reports/
about: If your issue is an ingame exploit that allows players to gain an unfair advantage, or an issue which could affect server stability or security, please file it here so that it is safe from prying eyes. (Paradise Station Forums)
url: https://github.com/ss220club/Paradise-SS220/security
about: Критические баги, которые могут быть использованы со злыми намерениями, следует оставлять по ссылке.
64 changes: 28 additions & 36 deletions .github/ISSUE_TEMPLATE/issue_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,90 +10,82 @@
# label: | Box title |
# description: | Box small text - Description |
#
name: "Issue Report"
name: 'Issue Report'
#title: "[Bug]: " | if you want to have a have it automatically say [Bug] when they start the form
description: "File an issue report to make us aware of a bug or issue."
#labels: [Bug] | Auto labels the post, as we do not use this, commenting out, purely as reference
description: 'Доложите о проблемах или багах, что бы мы могли их исправить.'
#labels: "Баг"

body:
- type: markdown
attributes:
value: Thanks for taking the time to fill out this issue report! Don't forget to give it a meaningful title so users can find the report easily.
- type: checkboxes
id: not_an_exploit
attributes:
label: Exploit Reports
description: "[If your issue is an ingame exploit that allows players to gain an unfair advantage, or an issue which could affect server stability or security, please file it at this link so that it is safe from prying eyes.](https://www.paradisestation.org/forum/179-exploit-reports/)"
options:
- label: I confirm this issue is not an exploit. (Required)
required: true
value: Спасибо за оставленный отчёт! Не забудьте дать ему соответствующее проблеме название для упрощения работы другим.

- type: input
id: version
attributes:
label: BYOND Version
description: "What BYOND version were you using when the issue occurred? (Find this by pressing the cog in the top-right of the main BYOND menu, then 'About BYOND...') (Required)"
description: 'На какой версии BYOND встретился баг. (Если уверены, что не связано, можно пропустить)'
validations:
required: true

- type: textarea
id: description
attributes:
label: Issue Description
description: What is the problem? (Required)
placeholder: I tried buckling myself to a chair but ended up on lavaland!
label: Описание проблемы
description: В чем состоит суть проблемы? (Обязательное поле)
placeholder: Я сел на стул, от чего взорвался, а мой мозг оказался в душе на ЦК!
validations:
required: true

- type: textarea
id: what-expected
attributes:
label: What did you expect to happen?
description: Why do you think this is an issue?
placeholder: I expected to be strapped to a chair.
label: Что должно было произойти?
description: Почему вы считаете это проблемой?
placeholder: Я ожидал, что я просто сяду на стул и буду сидеть.

- type: textarea
id: what-happened
attributes:
label: What happened instead?
description: How is what happened different from what you expected?
placeholder: I got sent to lavaland and died.
label: Что случилось вместо этого?
description: Как произошедшее отличается от ваших ожиданий?
placeholder: Я умер и оказался на ЦК.

- type: textarea
id: why-bad
attributes:
label: Why is this bad/What are the consequences?
description: Why do you think this is an important issue?
placeholder: People sitting in chairs on the station should not end up being devoured by drakes.
label: Почему это плохо/Какие последствия?
description: Почему вы считаете эту проблему значительной?
placeholder: Игроки должны иметь возможность сидеть на стульях, не взрываясь.

- type: textarea
id: how-to-reproduce
attributes:
label: Steps to reproduce the issue.
description: The most important section. Review everything you did leading up to causing the issue. (Required)
placeholder: Find a chair, buckle yourself into it, be eaten by dragon.
label: Шаги для повторения проблемы.
description: Самая важная часть. Опишите ВСЁ, что вы делали, что бы встретиться с проблемой. (Обязательное поле)
placeholder: Нашел стул, сел, взорвался.
validations:
required: true

- type: textarea
id: when-problem-start
attributes:
label: When did the problem start happening?
description: If your report is about something that used to work but no longer does, when was the last time you remember it working? (Required)
placeholder: I could sit fine last week, so sometime around then.
label: Когда проблема началась?
description: Если отчет связан с тем, что раньше работало иначе, опишите последний раз, когда механика работала корректно. (Обязательное поле)
placeholder: Я мог садиться на стулья без проблем неделю назад, так что примерно тогда.
validations:
required: true

- type: textarea
id: extra-information
attributes:
label: Extra information
description: Anything else you can tell us.
placeholder: "I think this issue was introduced in the following PR https://github.com/ParadiseSS13/Paradise/pull/18477"
label: Дополнительная информация
description: Всё, что вы считаете важным/относящимся к проблеме.
placeholder: Я думаю, что проблема начала появляться после этого PR https://github.com/ss220club/Paradise-SS220/pull/583

- type: textarea
id: logs
attributes:
label: Relevant log output/runtime error
description: Please copy and paste any relevant log output or runtime if you have access to this. Please censor any ckeys or IP addresses.
label: Связанные логи
description: Пожалуйста, предоставьте связанные логи или рантаймы, если имеете к ним доступ. (Лучше цензурить IP-адреса)
render: DM
63 changes: 26 additions & 37 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,40 @@
<!-- By ticking or leaving ticked the option "Allow edits and access to secrets by maintainers" you give permission for repository maintainers to push changes to your branch without explicitly asking. -->
<!-- Пишите **НИЖЕ** заголовков и **ВЫШЕ** комментариев, иначе что то может пойти не так. -->
<!-- Вы можете прочитать Contributing.MD, если хотите узнать больше. -->

<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull request process. -->
## Что этот PR делает

## What Does This PR Do
<!-- Вкратце опишите изменения, которые вносите. -->
<!-- Опишите **все** изменения, так как противное может сказаться на рассмотрении этого PR'а! -->
<!-- Если вы исправляете Issue, добавьте "Fixes #xxxx" (где xxxx - номер Issue) где-нибудь в описании PR'а. Это автоматически закроет Issue после принятия PR'а. -->

<!-- Include a small to medium description of what your PR changes. -->
<!-- Document all changes, as not doing this may delay reviews or even discourage maintainers from merging your PR! -->
<!-- If your PR fixes an issue, add "Fixes #1234" somewhere in the PR description. This will automatically close the bug upon PR submission. -->
## Почему это хорошо для игры

## Why It's Good For The Game
<!-- Опишите, почему, по вашему, следует добавить эти изменения в игру. -->

<!-- Add a short description of why you think these changes would benefit the game. If you can't justify it in words, it might not be worth adding. -->
## Изображения изменений

## Images of changes
<!-- Если вы не меняли карту или спрайты, можете опустить эту секцию. Если хотите, можете вставить видео. -->

<!-- If you did not make a map or sprite edit, you may delete this section. You may include a gif or mp4 of your feature if you want. -->
## Тестирование

## Testing

<!-- How did you test the PR, if at all? -->

<hr>

### Declaration

- [ ] I confirm that I either do not require [pre-approval](https://github.com/ParadiseSS13/Paradise/blob/master/docs/CODE_OF_CONDUCT.md#types-of-changes-that-need-approval) for this PR, or I have obtained such approval and have included a screenshot to demonstrate this below.
<!-- Replace the box with [x] to mark as complete. -->
<!-- Ensure there are no spaces between the x and the square brackets [] else this will not work properly. -->
<hr>
<!-- Как вы тестировали свой PR, если делали это вовсе? -->

## Changelog

:cl:
add: Added new things
del: Removed old things
tweak: Tweaked a few things
fix: Fixed a few things
wip: Added a few works in progress
soundadd: Added a new sound thingy
sounddel: Removed an old sound thingy
imageadd: Added some icons and images
imagedel: Deleted some icons and images
spellcheck: Fixed a few typos
experiment: Added an experimental thingy
add: Что-то добавил
del: Что-то удалил
tweak: Поменял что-то по мелочи
fix: Что-то починил
wip: Какие-либо наработки в процессе
soundadd: Добавил новый звук
sounddel: Удалил старый звук
imageadd: Добавил новую картинку
imagedel: Удалил старую картинку
spellcheck: Исправил опечатку
experiment: Добавил экспериментальную функцию
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put your name to the right of the first :cl: if you want to overwrite your GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. -->
<!-- If a PR has no impact on players (i.e. a code refactor that does not change functionality) then the entire Changelog heading and contents can be removed. -->
<!-- Оба :cl:'а должны быть на месте, что-бы чейнджлог работал! Вы можете написать свой ник справа от первого :cl:, если хотите. Иначе будет использован ваш ник на ГитХабе. -->
<!-- Вы можете использовать несколько записей с одинаковым префиксом (Они используются только для иконки в игре) и удалить ненужные. Помните, что чейнджлог должен быть понятен обычным игроком. -->
<!-- Если чейнджлог не влияет на игроков(например, это рефактор), вы можете исключить всю секцию. -->
82 changes: 82 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
'TGUI':
- changed-files:
- any-glob-to-any-file: ['tgui/**']

':sound: Звук':
- changed-files:
- any-glob-to-any-file: ['**/*.ogg']

':world_map: Изменение Карты':
- all:
- changed-files:
- any-glob-to-any-file: ['**/*.dmm']
- all-globs-to-all-files: ['!_maps/map_files220/stations/*.dmm']

'Кибериада':
- changed-files:
- any-glob-to-any-file: ['_maps/map_files220/stations/boxstation.dmm']

'Керберос':
- changed-files:
- any-glob-to-any-file: ['_maps/map_files220/stations/deltastation.dmm']

'Цереброн':
- changed-files:
- any-glob-to-any-file: ['_maps/map_files220/stations/metastation.dmm']

'Фаррагус':
- changed-files:
- any-glob-to-any-file: ['_maps/map_files220/stations/cerestation.dmm']

':paintbrush: Спрайты':
- changed-files:
- any-glob-to-any-file: ['**/*.dmi']

':guitar: Инструменты':
- changed-files:
- any-glob-to-any-file: ['.github/**', 'tools/**', '.vscode/**', '.bin/**']

':floppy_disk: Изменение конфига':
- changed-files:
- any-glob-to-any-file: ['config/**']

':neckbeard: Документация':
- changed-files:
- any-glob-to-any-file: ['**/*.md']

':cd: SQL':
- changed-files:
- any-glob-to-any-file: ['SQL/**']

':feelsgood: Частичная модульность':
- all:
- changed-files:
- any-glob-to-any-file: ['code/**', 'icons/**', 'sounds/**', '_maps/map_files/**', 'tgui/**']
- any-glob-to-any-file: [modular_ss220/**]
- base-branch: 'master'
- head-branch: '^(?!merge[-_]upstream$).*'

':finnadie: НЕ МОДУЛЬНО':
- all:
- changed-files:
- any-glob-to-any-file: ['code/**', 'icons/**', 'sounds/**', '_maps/map_files/**']
- all-globs-to-all-files: '!modular_ss220/**'
- base-branch: 'master'
- head-branch: '^(?!merge[-_]upstream$).*'

':pray: Слияние с восходящим потоком':
- all:
- base-branch: 'master'
- head-branch: 'merge[-_]upstream'

':pencil: Перевод':
- base-branch: 'translate'

':wrench: Фикс':
- head-branch: ['^fix', 'fix']

':trollface: Фича':
- head-branch: ['^feat', 'feat']

':shipit: Улучшение':
- head-branch: ['^tweak', 'tweak']
61 changes: 61 additions & 0 deletions .github/workflows/auto_translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Add new translation

on:
workflow_dispatch:
push:
branches: ['translate']

concurrency:
group: translation
cancel-in-progress: false

jobs:
add_translation:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
name: 'Add new translation'

steps:
- name: 'Update Branch'
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Installing Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Installing deps
run: |
python -m pip install --upgrade pip
pip install -r ./tools/translator/requirements.txt
- name: Git fetch
run: |
git fetch
- name: Create temporary branch
run: |
git checkout -b translate_tmp ${{ github.sha }}^
- name: Apply PR translation
run: |
git diff ${{ github.sha }}^..${{ github.sha }} | git apply
- name: 'Generate Translation'
run: |
python ./tools/translator/converter.py
git add ./tools/translator/ss220replace.json
git checkout -- .
- name: 'Push Translation'
run: |
git fetch origin translate
git checkout origin/translate
git config --local user.email "[email protected]"
git config --local user.name "ss220bot"
git commit -m "Generate translation file"
git push origin translate:translate
34 changes: 34 additions & 0 deletions .github/workflows/check_changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Changelog validation

permissions:
contents: read
pull-requests: write
issues: write

on:
pull_request_target:
types: [opened, reopened, edited, labeled, unlabeled, ready_for_review]

jobs:
CheckCL:
runs-on: ubuntu-latest
if: github.base_ref == 'master' && github.event.pull_request.draft == false

steps:
- name: Downloading scripts
run: |
wget https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/tools/changelog/changelog_utils.py
wget https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/tools/changelog/check_changelog.py
wget https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/tools/changelog/tags.yml
- name: Installing Python
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
with:
python-version: '3.x'
- name: Installing deps
run: |
python -m pip install --upgrade pip
pip install ruamel.yaml PyGithub
- name: Changelog validation
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
run: python check_changelog.py
Loading

0 comments on commit 0cc9bd4

Please sign in to comment.